Further work on the support for PIC32

This commit is contained in:
Ivan Kravets
2016-04-26 23:29:45 +03:00
parent 3519cc1a75
commit eaf325b003
5 changed files with 625 additions and 2 deletions

View File

@ -36,6 +36,9 @@ Platforms
* - :ref:`platform_espressif`
- Espressif Systems is a privately held fabless semiconductor company. They provide wireless communications and Wi-Fi chips which are widely used in mobile devices and the Internet of Things applications.
* - :ref:`platform_microchippic32`
- Microchip's 32-bit portfolio with the MIPS microAptiv or M4K core offer high performance microcontrollers, and all the tools needed to develop your embedded projects. PIC32 MCUs gives your application the processing power, memory and peripherals your design needs!
* - :ref:`platform_nordicnrf51`
- The Nordic nRF51 Series is a family of highly flexible, multi-protocol, system-on-chip (SoC) devices for ultra-low power wireless applications. nRF51 Series devices support a range of protocol stacks including Bluetooth Smart (previously called Bluetooth low energy), ANT and proprietary 2.4GHz protocols such as Gazell.
@ -53,6 +56,26 @@ Boards
`PlatformIO Boards Explorer <http://platformio.org/boards>`_
* For more detailed ``board`` information please scroll tables below by horizontal.
4DSystems
~~~~~~~~~
.. list-table::
:header-rows: 1
* - Type ``board``
- Name
- Microcontroller
- Frequency
- Flash
- RAM
* - ``picadillo_35t``
- `4DSystems PICadillo 35T <http://www.4dsystems.com.au/product/Picadillo_35T/>`_
- 32MX795F512L
- 80 MHz
- 512 Kb
- 128 Kb
Adafruit
~~~~~~~~
@ -434,6 +457,117 @@ BitWizard
- 32 Kb
- 2 Kb
Digilent
~~~~~~~~
.. list-table::
:header-rows: 1
* - Type ``board``
- Name
- Microcontroller
- Frequency
- Flash
- RAM
* - ``cerebot32mx4``
- `Digilent Cerebot 32MX4 <http://store.digilentinc.com/cerebot-32mx4-limited-time-see-chipkit-pro-mx4/>`_
- 32MX460F512L
- 80 MHz
- 512 Kb
- 32 Kb
* - ``cerebot32mx7``
- `Digilent Cerebot 32MX7 <http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=TDGL004>`_
- 32MX795F512L
- 80 MHz
- 512 Kb
- 128 Kb
* - ``chipkit_cmod``
- `Digilent chipKIT Cmod <http://store.digilentinc.com/chipkit-cmod-breadboardable-mz-microcontroller-board/>`_
- 32MX150F128D
- 40 MHz
- 128 Kb
- 32 Kb
* - ``chipkit_dp32``
- `Digilent chipKIT DP32 <http://store.digilentinc.com/chipkit-dp32-dip-package-prototyping-microcontroller-board/>`_
- 32MX250F128B
- 40 MHz
- 128 Kb
- 32 Kb
* - ``chipkit_mx3``
- `Digilent chipKIT MX3 <http://store.digilentinc.com/chipkit-mx3-microcontroller-board-with-pmod-headers/>`_
- 32MX320F128H
- 80 MHz
- 128 Kb
- 16 Kb
* - ``chipkit_pro_mx4``
- `Digilent chipKIT Pro MX4 <http://store.digilentinc.com/chipkit-pro-mx4-embedded-systems-trainer-board/>`_
- 32MX460F512L
- 80 MHz
- 512 Kb
- 32 Kb
* - ``chipkit_pro_mx7``
- `Digilent chipKIT Pro MX7 <http://store.digilentinc.com/chipkit-pro-mx7-advanced-peripherals-embedded-systems-trainer-board/>`_
- 32MX795F512L
- 80 MHz
- 512 Kb
- 128 Kb
* - ``chipkit_uc32``
- `Digilent chipKIT uC32 <http://store.digilentinc.com/chipkit-uc32-basic-microcontroller-board-with-uno-r3-headers/>`_
- 32MX340F512H
- 80 MHz
- 512 Kb
- 32 Kb
* - ``chipkit_wf32``
- `Digilent chipKIT WF32 <http://store.digilentinc.com/chipkit-wf32-wifi-enabled-microntroller-board-with-uno-r3-headers/>`_
- 32MX695F512L
- 80 MHz
- 512 Kb
- 128 Kb
* - ``chipkit_wifire``
- `Digilent chipKIT WiFire <http://store.digilentinc.com/chipkit-wi-fire-wifi-enabled-mz-microcontroller-board/>`_
- 32MZ2048ECG100
- 200 MHz
- 2048 Kb
- 512 Kb
* - ``mega_pic32``
- `Digilent chipKIT MAX32 <http://store.digilentinc.com/chipkit-max32-microcontroller-board-with-mega-r3-headers/>`_
- 32MX795F512L
- 80 MHz
- 512 Kb
- 128 Kb
* - ``openbci``
- `Digilent OpenScope <http://store.digilentinc.com/>`_
- 32MX250F128B
- 40 MHz
- 128 Kb
- 32 Kb
* - ``openscope``
- `Digilent OpenScope <http://store.digilentinc.com/>`_
- 32MZ2048EFG124
- 200 MHz
- 2048 Kb
- 512 Kb
* - ``uno_pic32``
- `Digilent chipKIT UNO32 <http://store.digilentinc.com/chipkit-uno32-basic-microcontroller-board-retired-see-chipkit-uc32/>`_
- 32MX320F128H
- 80 MHz
- 128 Kb
- 16 Kb
Digistump
~~~~~~~~~
@ -631,6 +765,33 @@ Espressif
- 4096 Kb
- 50 Kb
Fubarino
~~~~~~~~
.. list-table::
:header-rows: 1
* - Type ``board``
- Name
- Microcontroller
- Frequency
- Flash
- RAM
* - ``fubarino_mini``
- `Fubarino Mini <http://fubarino.org/mini/>`_
- 32MX250F128D
- 48 MHz
- 128 Kb
- 32 Kb
* - ``fubarino_sd``
- `Fubarino SD (1.5) <http://fubarino.org/sd/index.html>`_
- 32MX795F512H
- 80 MHz
- 512 Kb
- 128 Kb
Generic ATTiny
~~~~~~~~~~~~~~
@ -856,6 +1017,40 @@ Olimex
- 2048 Kb
- 80 Kb
* - ``pinguino32``
- `Olimex PIC32-PINGUINO <https://www.olimex.com/Products/Duino/PIC32/PIC32-PINGUINO/open-source-hardware>`_
- 32MX440F256H
- 80 MHz
- 256 Kb
- 32 Kb
PONTECH
~~~~~~~
.. list-table::
:header-rows: 1
* - Type ``board``
- Name
- Microcontroller
- Frequency
- Flash
- RAM
* - ``quick240_usb``
- `PONTECH quicK240 <http://quick240.com/quicki/>`_
- 32MX795F512L
- 80 MHz
- 512 Kb
- 128 Kb
* - ``usbono_pic32``
- `PONTECH UAV100 <http://www.pontech.com/productdisplay/uav100>`_
- 32MX440F512H
- 80 MHz
- 512 Kb
- 32 Kb
PanStamp
~~~~~~~~
@ -1079,6 +1274,26 @@ Sanguino
- 64 Kb
- 4 Kb
SeeedStudio
~~~~~~~~~~~
.. list-table::
:header-rows: 1
* - Type ``board``
- Name
- Microcontroller
- Frequency
- Flash
- RAM
* - ``cui32stem``
- `SeeedStudio CUI32stem <http://www.seeedstudio.com/wiki/CUI32Stem>`_
- 32MX795F512H
- 80 MHz
- 512 Kb
- 128 Kb
SparkFun
~~~~~~~~
@ -1291,6 +1506,33 @@ TinyCircuits
- 32 Kb
- 2 Kb
UBW32
~~~~~
.. list-table::
:header-rows: 1
* - Type ``board``
- Name
- Microcontroller
- Frequency
- Flash
- RAM
* - ``ubw32_mx460``
- `UBW32 MX460 <http://www.schmalzhaus.com/UBW32/>`_
- 32MX460F512L
- 80 MHz
- 512 Kb
- 32 Kb
* - ``ubw32_mx795``
- `UBW32 MX795 <http://www.schmalzhaus.com/UBW32/>`_
- 32MX795F512L
- 80 MHz
- 512 Kb
- 128 Kb
WeMos
~~~~~
@ -1345,6 +1587,26 @@ Wicked Device
- 128 Kb
- 16 Kb
element14
~~~~~~~~~
.. list-table::
:header-rows: 1
* - Type ``board``
- Name
- Microcontroller
- Frequency
- Flash
- RAM
* - ``chipkit_pi``
- `Element14 chipKIT Pi <http://www.element14.com/community/community/knode/dev_platforms_kits/element14_dev_kits/microchip-chipkit/chipkit_pi>`_
- 32MX250F128B
- 40 MHz
- 128 Kb
- 32 Kb
ubIQio
~~~~~~

View File

@ -59,6 +59,9 @@ Packages
* - ``framework-arduinoespressif``
- `Arduino Wiring-based Framework (ESP8266 Core) <https://github.com/esp8266/Arduino>`_
* - ``framework-arduinomicrochippic32``
- `Arduino Wiring-based Framework (PIC32 Core) <https://github.com/chipKIT32/chipKIT-core>`_
* - ``framework-arduinomsp430``
- `Arduino Wiring-based Framework (MSP430 Core) <http://arduino.cc/en/Reference/HomePage>`_
@ -122,6 +125,9 @@ Packages
* - ``tool-openocd``
- `OpenOCD <http://openocd.org>`_
* - ``tool-pic32prog``
- `pic32prog <https://github.com/sergev/pic32prog>`_
* - ``tool-rfdloader``
- `rfdloader <https://github.com/RFduino/RFduino>`_
@ -155,6 +161,9 @@ Packages
* - ``toolchain-icestorm``
- `GCC for FPGA IceStorm <http://www.clifford.at/icestorm/>`_
* - ``toolchain-microchippic32``
- `GCC for Microchip PIC32 <https://github.com/chipKIT32/chipKIT-cxx>`_
* - ``toolchain-timsp430``
- `msp-gcc <http://sourceforge.net/projects/mspgcc/>`_, `GDB <http://www.gnu.org/software/gdb/>`_

View File

@ -0,0 +1,340 @@
.. Copyright 2014-2016 Ivan Kravets <me@ikravets.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
.. _platform_microchippic32:
Platform ``microchippic32``
===========================
Microchip's 32-bit portfolio with the MIPS microAptiv or M4K core offer high performance microcontrollers, and all the tools needed to develop your embedded projects. PIC32 MCUs gives your application the processing power, memory and peripherals your design needs!
For more detailed information please visit `vendor site <http://www.microchip.com/design-centers/32-bit>`_.
.. contents::
Packages
--------
.. list-table::
:header-rows: 1
* - Name
- Contents
* - ``framework-arduinomicrochippic32``
- `Arduino Wiring-based Framework (PIC32 Core) <https://github.com/chipKIT32/chipKIT-core>`_
* - ``toolchain-microchippic32``
- `GCC for Microchip PIC32 <https://github.com/chipKIT32/chipKIT-cxx>`_
* - ``tool-pic32prog``
- `pic32prog <https://github.com/sergev/pic32prog>`_
.. warning::
**Linux Users:** Don't forget to install "udev" rules file
`99-platformio-udev.rules <https://github.com/platformio/platformio/blob/develop/scripts/99-platformio-udev.rules>`_ (an instruction is located in the file).
**Windows Users:** Please check that you have correctly installed USB
driver from board manufacturer
Frameworks
----------
.. list-table::
:header-rows: 1
* - Name
- Description
* - :ref:`framework_arduino`
- Arduino Wiring-based Framework allows writing cross-platform software to control devices attached to a wide range of Arduino boards to create all kinds of creative coding, interactive objects, spaces or physical experiences.
Boards
------
.. note::
* You can list pre-configured boards by :ref:`cmd_boards` command or
`PlatformIO Boards Explorer <http://platformio.org/boards>`_
* For more detailed ``board`` information please scroll tables below by
horizontal.
4DSystems
~~~~~~~~~
.. list-table::
:header-rows: 1
* - Type ``board``
- Name
- Microcontroller
- Frequency
- Flash
- RAM
* - ``picadillo_35t``
- `4DSystems PICadillo 35T <http://www.4dsystems.com.au/product/Picadillo_35T/>`_
- 32MX795F512L
- 80 MHz
- 512 Kb
- 128 Kb
Digilent
~~~~~~~~
.. list-table::
:header-rows: 1
* - Type ``board``
- Name
- Microcontroller
- Frequency
- Flash
- RAM
* - ``cerebot32mx4``
- `Digilent Cerebot 32MX4 <http://store.digilentinc.com/cerebot-32mx4-limited-time-see-chipkit-pro-mx4/>`_
- 32MX460F512L
- 80 MHz
- 512 Kb
- 32 Kb
* - ``cerebot32mx7``
- `Digilent Cerebot 32MX7 <http://www.microchip.com/Developmenttools/ProductDetails.aspx?PartNO=TDGL004>`_
- 32MX795F512L
- 80 MHz
- 512 Kb
- 128 Kb
* - ``chipkit_cmod``
- `Digilent chipKIT Cmod <http://store.digilentinc.com/chipkit-cmod-breadboardable-mz-microcontroller-board/>`_
- 32MX150F128D
- 40 MHz
- 128 Kb
- 32 Kb
* - ``chipkit_dp32``
- `Digilent chipKIT DP32 <http://store.digilentinc.com/chipkit-dp32-dip-package-prototyping-microcontroller-board/>`_
- 32MX250F128B
- 40 MHz
- 128 Kb
- 32 Kb
* - ``chipkit_mx3``
- `Digilent chipKIT MX3 <http://store.digilentinc.com/chipkit-mx3-microcontroller-board-with-pmod-headers/>`_
- 32MX320F128H
- 80 MHz
- 128 Kb
- 16 Kb
* - ``chipkit_pro_mx4``
- `Digilent chipKIT Pro MX4 <http://store.digilentinc.com/chipkit-pro-mx4-embedded-systems-trainer-board/>`_
- 32MX460F512L
- 80 MHz
- 512 Kb
- 32 Kb
* - ``chipkit_pro_mx7``
- `Digilent chipKIT Pro MX7 <http://store.digilentinc.com/chipkit-pro-mx7-advanced-peripherals-embedded-systems-trainer-board/>`_
- 32MX795F512L
- 80 MHz
- 512 Kb
- 128 Kb
* - ``chipkit_uc32``
- `Digilent chipKIT uC32 <http://store.digilentinc.com/chipkit-uc32-basic-microcontroller-board-with-uno-r3-headers/>`_
- 32MX340F512H
- 80 MHz
- 512 Kb
- 32 Kb
* - ``chipkit_wf32``
- `Digilent chipKIT WF32 <http://store.digilentinc.com/chipkit-wf32-wifi-enabled-microntroller-board-with-uno-r3-headers/>`_
- 32MX695F512L
- 80 MHz
- 512 Kb
- 128 Kb
* - ``chipkit_wifire``
- `Digilent chipKIT WiFire <http://store.digilentinc.com/chipkit-wi-fire-wifi-enabled-mz-microcontroller-board/>`_
- 32MZ2048ECG100
- 200 MHz
- 2048 Kb
- 512 Kb
* - ``mega_pic32``
- `Digilent chipKIT MAX32 <http://store.digilentinc.com/chipkit-max32-microcontroller-board-with-mega-r3-headers/>`_
- 32MX795F512L
- 80 MHz
- 512 Kb
- 128 Kb
* - ``openbci``
- `Digilent OpenScope <http://store.digilentinc.com/>`_
- 32MX250F128B
- 40 MHz
- 128 Kb
- 32 Kb
* - ``openscope``
- `Digilent OpenScope <http://store.digilentinc.com/>`_
- 32MZ2048EFG124
- 200 MHz
- 2048 Kb
- 512 Kb
* - ``uno_pic32``
- `Digilent chipKIT UNO32 <http://store.digilentinc.com/chipkit-uno32-basic-microcontroller-board-retired-see-chipkit-uc32/>`_
- 32MX320F128H
- 80 MHz
- 128 Kb
- 16 Kb
Fubarino
~~~~~~~~
.. list-table::
:header-rows: 1
* - Type ``board``
- Name
- Microcontroller
- Frequency
- Flash
- RAM
* - ``fubarino_mini``
- `Fubarino Mini <http://fubarino.org/mini/>`_
- 32MX250F128D
- 48 MHz
- 128 Kb
- 32 Kb
* - ``fubarino_sd``
- `Fubarino SD (1.5) <http://fubarino.org/sd/index.html>`_
- 32MX795F512H
- 80 MHz
- 512 Kb
- 128 Kb
Olimex
~~~~~~
.. list-table::
:header-rows: 1
* - Type ``board``
- Name
- Microcontroller
- Frequency
- Flash
- RAM
* - ``pinguino32``
- `Olimex PIC32-PINGUINO <https://www.olimex.com/Products/Duino/PIC32/PIC32-PINGUINO/open-source-hardware>`_
- 32MX440F256H
- 80 MHz
- 256 Kb
- 32 Kb
PONTECH
~~~~~~~
.. list-table::
:header-rows: 1
* - Type ``board``
- Name
- Microcontroller
- Frequency
- Flash
- RAM
* - ``quick240_usb``
- `PONTECH quicK240 <http://quick240.com/quicki/>`_
- 32MX795F512L
- 80 MHz
- 512 Kb
- 128 Kb
* - ``usbono_pic32``
- `PONTECH UAV100 <http://www.pontech.com/productdisplay/uav100>`_
- 32MX440F512H
- 80 MHz
- 512 Kb
- 32 Kb
SeeedStudio
~~~~~~~~~~~
.. list-table::
:header-rows: 1
* - Type ``board``
- Name
- Microcontroller
- Frequency
- Flash
- RAM
* - ``cui32stem``
- `SeeedStudio CUI32stem <http://www.seeedstudio.com/wiki/CUI32Stem>`_
- 32MX795F512H
- 80 MHz
- 512 Kb
- 128 Kb
UBW32
~~~~~
.. list-table::
:header-rows: 1
* - Type ``board``
- Name
- Microcontroller
- Frequency
- Flash
- RAM
* - ``ubw32_mx460``
- `UBW32 MX460 <http://www.schmalzhaus.com/UBW32/>`_
- 32MX460F512L
- 80 MHz
- 512 Kb
- 32 Kb
* - ``ubw32_mx795``
- `UBW32 MX795 <http://www.schmalzhaus.com/UBW32/>`_
- 32MX795F512L
- 80 MHz
- 512 Kb
- 128 Kb
element14
~~~~~~~~~
.. list-table::
:header-rows: 1
* - Type ``board``
- Name
- Microcontroller
- Frequency
- Flash
- RAM
* - ``chipkit_pi``
- `Element14 chipKIT Pi <http://www.element14.com/community/community/knode/dev_platforms_kits/element14_dev_kits/microchip-chipkit/chipkit_pi>`_
- 32MX250F128B
- 40 MHz
- 128 Kb
- 32 Kb

View File

@ -507,7 +507,7 @@
"build": {
"core": "pic32",
"extra_flags": "-D_BOARD_WIFIRE_",
"f_cpu": "200000000UL",
"f_cpu": "200000000L",
"ldscript": "MZ-application-32MZ2048ECX.ld",
"mcu": "32MZ2048ECG100",
"variant": "WiFire"
@ -531,7 +531,7 @@
"build": {
"core": "pic32",
"extra_flags": "-D_BOARD_OPENSCOPE_",
"f_cpu": "200000000UL",
"f_cpu": "200000000L",
"ldscript": "MZ-application-32MZ2048ECX.ld",
"mcu": "32MZ2048EFG124",
"variant": "OpenScope"

View File

@ -139,6 +139,18 @@ env.Append(
target_elf = env.BuildProgram()
#
# Hook: Fix option for LD script
#
_new_linkflags = []
for f in env['LINKFLAGS']:
if not f.startswith("-Wl,-T"):
_new_linkflags.append(f)
else:
_new_linkflags.append("-Wl,--script=%s" % f[6:])
env.Replace(LINKFLAGS=_new_linkflags)
#
# Target: Build the .hex
#