mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Rename "stm32" platform to "ststm32"
This commit is contained in:
@ -16,7 +16,7 @@ MCU, upload protocol or etc. Please use ``board`` option.
|
|||||||
|
|
||||||
atmelavr
|
atmelavr
|
||||||
atmelsam
|
atmelsam
|
||||||
stm32
|
ststm32
|
||||||
teensy
|
teensy
|
||||||
timsp430
|
timsp430
|
||||||
titiva
|
titiva
|
||||||
|
@ -1,104 +0,0 @@
|
|||||||
.. _platform_stm32:
|
|
||||||
|
|
||||||
Platform ``stm32``
|
|
||||||
==================
|
|
||||||
|
|
||||||
`The STM32 family of 32-bit Flash MCUs <http://www.st.com/web/en/catalog/mmc/FM141/SC1169?sc=stm32>`_ based on the ARM® Cortex®-M processor is designed to offer new degrees of freedom to MCU users. It offers a 32-bit product range that combines very high performance, real-time capabilities, digital signal processing, and low-power, low-voltage operation, while maintaining full integration and ease of development.
|
|
||||||
|
|
||||||
The unparalleled and large range of STM32 devices, based on an industry-standard core and accompanied by a vast choice of tools and software, makes this family of products the ideal choice, both for small projects and for entire platform decisions.
|
|
||||||
|
|
||||||
.. contents::
|
|
||||||
|
|
||||||
Packages
|
|
||||||
--------
|
|
||||||
|
|
||||||
.. list-table::
|
|
||||||
:header-rows: 1
|
|
||||||
|
|
||||||
* - Name
|
|
||||||
- Alias
|
|
||||||
- Contents
|
|
||||||
* - ``toolchain-gccarmnoneeabi``
|
|
||||||
- toolchain
|
|
||||||
- `gcc-arm-embedded <https://launchpad.net/gcc-arm-embedded>`_,
|
|
||||||
`GDB <http://www.gnu.org/software/gdb/>`_
|
|
||||||
* - ``tool-stlink``
|
|
||||||
- uploader
|
|
||||||
- `STLink <https://github.com/texane/stlink>`_
|
|
||||||
* - ``framework-cmsis``
|
|
||||||
-
|
|
||||||
- See below in :ref:`stm32_frameworks`
|
|
||||||
* - ``framework-spl``
|
|
||||||
-
|
|
||||||
- See below in :ref:`stm32_frameworks`
|
|
||||||
* - ``framework-opencm3``
|
|
||||||
-
|
|
||||||
- See below in :ref:`stm32_frameworks`
|
|
||||||
|
|
||||||
.. warning::
|
|
||||||
**Linux Users:** Don't forget to install "udev" rules file
|
|
||||||
`99-platformio-udev.rules <https://github.com/ivankravets/platformio/blob/develop/scripts/99-platformio-udev.rules>`_ (an instruction is located in the file).
|
|
||||||
|
|
||||||
|
|
||||||
.. _stm32_frameworks:
|
|
||||||
|
|
||||||
Frameworks
|
|
||||||
----------
|
|
||||||
|
|
||||||
.. list-table::
|
|
||||||
:header-rows: 1
|
|
||||||
|
|
||||||
* - Type ``framework``
|
|
||||||
- Name
|
|
||||||
- Reference
|
|
||||||
* - ``cmsis``
|
|
||||||
- Vendor-independent hardware abstraction layer for the Cortex-M processor series
|
|
||||||
- `Documentation <http://www.arm.com/products/processors/cortex-m/cortex-microcontroller-software-interface-standard.php>`__
|
|
||||||
* - ``spl``
|
|
||||||
- Standard Peripheral Library for STM32 MCUs
|
|
||||||
- `Documentation <http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/PF257890>`__
|
|
||||||
* - ``opencm3``
|
|
||||||
- libOpenCM3 Framework
|
|
||||||
- `Documentation <http://www.libopencm3.org>`__
|
|
||||||
|
|
||||||
|
|
||||||
Boards
|
|
||||||
------
|
|
||||||
|
|
||||||
.. note::
|
|
||||||
* You can list pre-configured boards by :ref:`cmd_boards` command
|
|
||||||
* For more detailed ``board`` information please scroll tables below by
|
|
||||||
horizontal.
|
|
||||||
|
|
||||||
.. list-table::
|
|
||||||
:header-rows: 1
|
|
||||||
|
|
||||||
* - Type ``board``
|
|
||||||
- Name
|
|
||||||
- Microcontroller ``board_mcu``
|
|
||||||
- Frequency ``board_f_cpu``
|
|
||||||
- Flash
|
|
||||||
- RAM
|
|
||||||
* - ``stm32ldiscovery``
|
|
||||||
- `Discovery kit for STM32L151/152 line <http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF250990?sc=internet/evalboard/product/250990.jsp>`_
|
|
||||||
- STM32L152rbt6 ``cortex-m3``
|
|
||||||
- 32 MHz ``32000000L``
|
|
||||||
- 128 Kb
|
|
||||||
- 16 Kb
|
|
||||||
* - ``stm32f3discovery``
|
|
||||||
- `Discovery kit for STM32F303xx microcontrollers
|
|
||||||
<http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF254044>`_
|
|
||||||
- STM32F303vct6 ``cortex-m4``
|
|
||||||
- 72 MHz ``72000000L``
|
|
||||||
- 256 Kb
|
|
||||||
- 48 Kb
|
|
||||||
* - ``stm32f4discovery``
|
|
||||||
- `Discovery kit for STM32F407/417 lines
|
|
||||||
<http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF252419>`_
|
|
||||||
- STM32F407vgt6 ``cortex-m4``
|
|
||||||
- 168 Mhz ``168000000L``
|
|
||||||
- 1 Mb
|
|
||||||
- 192 Kb
|
|
||||||
|
|
||||||
More detailed information you can find here
|
|
||||||
`STM32 Discovery kits <http://www.st.com/web/en/catalog/tools/FM116/SC959/SS1532/LN1848?icmp=ln1848_pron_pr-stm32f446_dec2014&sc=stm32discovery-pr>`_.
|
|
224
docs/platforms/ststm32.rst
Normal file
224
docs/platforms/ststm32.rst
Normal file
@ -0,0 +1,224 @@
|
|||||||
|
.. _platform_ststm32:
|
||||||
|
|
||||||
|
Platform ``ststm32``
|
||||||
|
====================
|
||||||
|
|
||||||
|
`The STM32 family of 32-bit Flash MCUs <http://www.st.com/web/en/catalog/mmc/FM141/SC1169?sc=stm32>`_ based on the ARM® Cortex®-M processor is designed to offer new degrees of freedom to MCU users. It offers a 32-bit product range that combines very high performance, real-time capabilities, digital signal processing, and low-power, low-voltage operation, while maintaining full integration and ease of development.
|
||||||
|
|
||||||
|
The unparalleled and large range of STM32 devices, based on an industry-standard core and accompanied by a vast choice of tools and software, makes this family of products the ideal choice, both for small projects and for entire platform decisions.
|
||||||
|
|
||||||
|
.. contents::
|
||||||
|
|
||||||
|
Packages
|
||||||
|
--------
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Name
|
||||||
|
- Alias
|
||||||
|
- Contents
|
||||||
|
* - ``toolchain-gccarmnoneeabi``
|
||||||
|
- toolchain
|
||||||
|
- `gcc-arm-embedded <https://launchpad.net/gcc-arm-embedded>`_,
|
||||||
|
`GDB <http://www.gnu.org/software/gdb/>`_
|
||||||
|
* - ``tool-stlink``
|
||||||
|
- uploader
|
||||||
|
- `STLink <https://github.com/texane/stlink>`_
|
||||||
|
* - ``framework-cmsis``
|
||||||
|
-
|
||||||
|
- See below in :ref:`ststm32_frameworks`
|
||||||
|
* - ``framework-spl``
|
||||||
|
-
|
||||||
|
- See below in :ref:`ststm32_frameworks`
|
||||||
|
* - ``framework-opencm3``
|
||||||
|
-
|
||||||
|
- See below in :ref:`ststm32_frameworks`
|
||||||
|
* - ``framework-mbed``
|
||||||
|
-
|
||||||
|
- See below in :ref:`ststm32_frameworks`
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
**Linux Users:** Don't forget to install "udev" rules file
|
||||||
|
`99-platformio-udev.rules <https://github.com/ivankravets/platformio/blob/develop/scripts/99-platformio-udev.rules>`_ (an instruction is located in the file).
|
||||||
|
|
||||||
|
|
||||||
|
.. _ststm32_frameworks:
|
||||||
|
|
||||||
|
Frameworks
|
||||||
|
----------
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Type ``framework``
|
||||||
|
- Name
|
||||||
|
- Reference
|
||||||
|
* - ``cmsis``
|
||||||
|
- Vendor-independent hardware abstraction layer for the Cortex-M processor series
|
||||||
|
- `Documentation <http://www.arm.com/products/processors/cortex-m/cortex-microcontroller-software-interface-standard.php>`__
|
||||||
|
* - ``spl``
|
||||||
|
- Standard Peripheral Library for ST STM32 MCUs
|
||||||
|
- `Documentation <http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/PF257890>`__
|
||||||
|
* - ``opencm3``
|
||||||
|
- libOpenCM3 Framework
|
||||||
|
- `Documentation <http://www.libopencm3.org>`__
|
||||||
|
* - ``mbed``
|
||||||
|
- MBED Framework
|
||||||
|
- `Documentation <http://mbed.org>`__
|
||||||
|
|
||||||
|
|
||||||
|
Boards
|
||||||
|
------
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
* You can list pre-configured boards by :ref:`cmd_boards` command
|
||||||
|
* For more detailed ``board`` information please scroll tables below by
|
||||||
|
horizontal.
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Type ``board``
|
||||||
|
- Name
|
||||||
|
- Microcontroller ``board_mcu``
|
||||||
|
- Frequency ``board_f_cpu``
|
||||||
|
- Flash
|
||||||
|
- RAM
|
||||||
|
* - ``disco_l152rb``
|
||||||
|
- `STM32LDISCOVERY
|
||||||
|
<http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1848/PF258515>`_
|
||||||
|
- STM32L152rbt6 ``cortex-m3``
|
||||||
|
- 32 MHz ``32000000L``
|
||||||
|
- 128 Kb
|
||||||
|
- 16 Kb
|
||||||
|
* - ``disco_f303vc``
|
||||||
|
- `STM32F3DISCOVERY
|
||||||
|
<http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1848/PF254044>`_
|
||||||
|
- STM32F303vct6 ``cortex-m4``
|
||||||
|
- 72 MHz ``72000000L``
|
||||||
|
- 256 Kb
|
||||||
|
- 48 Kb
|
||||||
|
* - ``disco_f407vg``
|
||||||
|
- `STM32F4DISCOVERY
|
||||||
|
<http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1848/PF252419>`_
|
||||||
|
- STM32F407vgt6 ``cortex-m4``
|
||||||
|
- 168 Mhz ``168000000L``
|
||||||
|
- 1 Mb
|
||||||
|
- 192 Kb
|
||||||
|
* - ``disco_f100rb``
|
||||||
|
- `STM32VLDISCOVERY
|
||||||
|
<http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1848/PF250863>`_
|
||||||
|
- STM32F100rbt6 ``cortex-m3``
|
||||||
|
- 24 Mhz ``24000000L``
|
||||||
|
- 128 Kb
|
||||||
|
- 8 Kb
|
||||||
|
* - ``disco_f051r8``
|
||||||
|
- `STM32F0DISCOVERY
|
||||||
|
<http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1848/PF253215>`_
|
||||||
|
- STM32F051r8t6 ``cortex-m0``
|
||||||
|
- 48 Mhz ``48000000L``
|
||||||
|
- 64 Kb
|
||||||
|
- 8 Kb
|
||||||
|
* - ``disco_f334c8``
|
||||||
|
- `32F3348DISCOVERY
|
||||||
|
<http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1848/PF260318>`_
|
||||||
|
- STM32F334c8t6 ``cortex-m4``
|
||||||
|
- 72 Mhz ``72000000L``
|
||||||
|
- 64 Kb
|
||||||
|
- 16 Kb
|
||||||
|
* - ``disco_f401vc``
|
||||||
|
- `32F401CDISCOVERY
|
||||||
|
<http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1848/PF259098>`_
|
||||||
|
- STM32F401vct6 ``cortex-m4``
|
||||||
|
- 84 Mhz ``84000000L``
|
||||||
|
- 256 Kb
|
||||||
|
- 64 Kb
|
||||||
|
* - ``disco_f429zi``
|
||||||
|
- `32F429IDISCOVERY
|
||||||
|
<http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1848/PF259090>`_
|
||||||
|
- STM32F429zit6 ``cortex-m4``
|
||||||
|
- 180 Mhz ``180000000L``
|
||||||
|
- 2 Mb
|
||||||
|
- 256 Kb
|
||||||
|
* - ``nucleo_f030r8``
|
||||||
|
- `ST Nucleo F030R8
|
||||||
|
<https://developer.mbed.org/platforms/ST-Nucleo-F030R8/>`_
|
||||||
|
- STM32F030r8t6 ``cortex-m0``
|
||||||
|
- 48 Mhz ``48000000L``
|
||||||
|
- 64 Kb
|
||||||
|
- 8 Kb
|
||||||
|
* - ``nucleo_f070rb``
|
||||||
|
- `ST Nucleo F070RB
|
||||||
|
<https://developer.mbed.org/platforms/ST-Nucleo-F070RB/>`_
|
||||||
|
- STM32F070rbt6 ``cortex-m0``
|
||||||
|
- 48 Mhz ``48000000L``
|
||||||
|
- 128 Kb
|
||||||
|
- 16 Kb
|
||||||
|
* - ``nucleo_f072rb``
|
||||||
|
- `ST Nucleo F072RB
|
||||||
|
<https://developer.mbed.org/platforms/ST-Nucleo-F072RB/>`_
|
||||||
|
- STM32F072rbt6 ``cortex-m0``
|
||||||
|
- 48 Mhz ``48000000L``
|
||||||
|
- 128 Kb
|
||||||
|
- 16 Kb
|
||||||
|
* - ``nucleo_f091rc``
|
||||||
|
- `ST Nucleo F091RC
|
||||||
|
<https://developer.mbed.org/platforms/ST-Nucleo-F091RC/>`_
|
||||||
|
- STM32F091rct6 ``cortex-m0``
|
||||||
|
- 48 Mhz ``48000000L``
|
||||||
|
- 256 Kb
|
||||||
|
- 32 Kb
|
||||||
|
* - ``nucleo_f103rb``
|
||||||
|
- `ST Nucleo F103RB
|
||||||
|
<https://developer.mbed.org/platforms/ST-Nucleo-F103RB/>`_
|
||||||
|
- STM32F103rbt6 ``cortex-m3``
|
||||||
|
- 72 Mhz ``72000000L``
|
||||||
|
- 128 Kb
|
||||||
|
- 20 Kb
|
||||||
|
* - ``nucleo_f302r8``
|
||||||
|
- `ST Nucleo F302R8
|
||||||
|
<https://developer.mbed.org/platforms/ST-Nucleo-F302R8/>`_
|
||||||
|
- STM32F302r8t6 ``cortex-m4``
|
||||||
|
- 72 Mhz ``72000000L``
|
||||||
|
- 64 Kb
|
||||||
|
- 16 Kb
|
||||||
|
* - ``nucleo_f334r8``
|
||||||
|
- `ST Nucleo F334R8
|
||||||
|
<https://developer.mbed.org/platforms/ST-Nucleo-F334R8/>`_
|
||||||
|
- STM32F334r8t6 ``cortex-m4``
|
||||||
|
- 72 Mhz ``72000000L``
|
||||||
|
- 64 Kb
|
||||||
|
- 16 Kb
|
||||||
|
* - ``nucleo_f401re``
|
||||||
|
- `ST Nucleo F401RE
|
||||||
|
<https://developer.mbed.org/platforms/ST-Nucleo-F401RE/>`_
|
||||||
|
- STM32F401ret6 ``cortex-m4``
|
||||||
|
- 84 Mhz ``84000000L``
|
||||||
|
- 512 Kb
|
||||||
|
- 96 Kb
|
||||||
|
* - ``nucleo_f411re``
|
||||||
|
- `ST Nucleo F411RE
|
||||||
|
<https://developer.mbed.org/platforms/ST-Nucleo-F411RE/>`_
|
||||||
|
- STM32F411ret6 ``cortex-m4``
|
||||||
|
- 100 Mhz ``100000000L``
|
||||||
|
- 512 Kb
|
||||||
|
- 128 Kb
|
||||||
|
* - ``nucleo_l053r8``
|
||||||
|
- `ST Nucleo L053R8
|
||||||
|
<https://developer.mbed.org/platforms/ST-Nucleo-L053R8/>`_
|
||||||
|
- STM32L053r8t6 ``cortex-m0``
|
||||||
|
- 48 Mhz ``48000000L``
|
||||||
|
- 64 Kb
|
||||||
|
- 8 Kb
|
||||||
|
* - ``nucleo_l152re``
|
||||||
|
- `ST Nucleo L152RE
|
||||||
|
<https://developer.mbed.org/platforms/ST-Nucleo-L152RE/>`_
|
||||||
|
- STM32L152ret6 ``cortex-m3``
|
||||||
|
- 32 Mhz ``32000000L``
|
||||||
|
- 512 Kb
|
||||||
|
- 80 Kb
|
||||||
|
|
||||||
|
More detailed information you can find here
|
||||||
|
`STM32 Discovery kits <http://www.st.com/web/en/catalog/tools/FM116/SC959/SS1532/LN1848?icmp=ln1848_pron_pr-stm32f446_dec2014&sc=stm32discovery-pr>`_ and here
|
||||||
|
`ST Nucleo boards with MBED support <https://developer.mbed.org/platforms/?tvend=10>`_.
|
@ -17,17 +17,17 @@
|
|||||||
# Automatic targets - enable auto-uploading
|
# Automatic targets - enable auto-uploading
|
||||||
# targets = upload
|
# targets = upload
|
||||||
|
|
||||||
[env:stm32f4discovery]
|
[env:disco_f407vg]
|
||||||
platform = stm32
|
platform = ststm32
|
||||||
framework = cmsis
|
framework = cmsis
|
||||||
board = stm32f4discovery
|
board = disco_f407vg
|
||||||
|
|
||||||
[env:stm32ldiscovery]
|
[env:disco_l152rb]
|
||||||
platform = stm32
|
platform = ststm32
|
||||||
framework = cmsis
|
framework = cmsis
|
||||||
board = stm32ldiscovery
|
board = disco_l152rb
|
||||||
|
|
||||||
[env:stm32f3discovery]
|
[env:disco_f303vc]
|
||||||
platform = stm32
|
platform = ststm32
|
||||||
framework = cmsis
|
framework = cmsis
|
||||||
board = stm32f3discovery
|
board = disco_f303vc
|
@ -17,17 +17,17 @@
|
|||||||
# Automatic targets - enable auto-uploading
|
# Automatic targets - enable auto-uploading
|
||||||
# targets = upload
|
# targets = upload
|
||||||
|
|
||||||
[env:stm32f4discovery]
|
[env:disco_f407vg]
|
||||||
platform = stm32
|
platform = ststm32
|
||||||
framework = opencm3
|
framework = opencm3
|
||||||
board = stm32f4discovery
|
board = disco_f407vg
|
||||||
|
|
||||||
[env:stm32ldiscovery]
|
[env:disco_l152rb]
|
||||||
platform = stm32
|
platform = ststm32
|
||||||
framework = opencm3
|
framework = opencm3
|
||||||
board = stm32ldiscovery
|
board = disco_l152rb
|
||||||
|
|
||||||
[env:stm32f3discovery]
|
[env:disco_f303vc]
|
||||||
platform = stm32
|
platform = ststm32
|
||||||
framework = opencm3
|
framework = opencm3
|
||||||
board = stm32f3discovery
|
board = disco_f303vc
|
||||||
|
@ -17,17 +17,17 @@
|
|||||||
# Automatic targets - enable auto-uploading
|
# Automatic targets - enable auto-uploading
|
||||||
# targets = upload
|
# targets = upload
|
||||||
|
|
||||||
[env:stm32f4discovery]
|
[env:disco_f407vg]
|
||||||
platform = stm32
|
platform = ststm32
|
||||||
framework = cmsis,spl
|
framework = cmsis,spl
|
||||||
board = stm32f4discovery
|
board = disco_f407vg
|
||||||
|
|
||||||
[env:stm32ldiscovery]
|
[env:disco_l152rb]
|
||||||
platform = stm32
|
platform = ststm32
|
||||||
framework = cmsis,spl
|
framework = cmsis,spl
|
||||||
board = stm32ldiscovery
|
board = disco_l152rb
|
||||||
|
|
||||||
[env:stm32f3discovery]
|
[env:disco_f303vc]
|
||||||
platform = stm32
|
platform = ststm32
|
||||||
framework = cmsis,spl
|
framework = cmsis,spl
|
||||||
board = stm32f3discovery
|
board = disco_f303vc
|
||||||
|
@ -1,56 +0,0 @@
|
|||||||
{
|
|
||||||
"stm32f4discovery": {
|
|
||||||
"build": {
|
|
||||||
"core": "stm32",
|
|
||||||
"extra_flags": "-DSTM32F40_41xxx",
|
|
||||||
"f_cpu": "168000000L",
|
|
||||||
"ldscript": "stm32f405x6.ld",
|
|
||||||
"cpu": "cortex-m4",
|
|
||||||
"mcu": "stm32f407vgt6",
|
|
||||||
"variant": "stm32f4"
|
|
||||||
},
|
|
||||||
"framework": "cmsis",
|
|
||||||
"name": "STM32F4Discovery (168 MHz) with digital accelerometer, digital microphone, audio DAC",
|
|
||||||
"platform": "stm32",
|
|
||||||
"upload": {
|
|
||||||
"maximum_ram_size": 131071,
|
|
||||||
"maximum_size": 1048575
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"stm32ldiscovery": {
|
|
||||||
"build": {
|
|
||||||
"core": "stm32",
|
|
||||||
"extra_flags": "-DSTM32L1XX_MD",
|
|
||||||
"f_cpu": "32000000L",
|
|
||||||
"ldscript": "stm32l15xx6.ld",
|
|
||||||
"cpu": "cortex-m3",
|
|
||||||
"mcu": "stm32l152rbt6",
|
|
||||||
"variant": "stm32l1"
|
|
||||||
},
|
|
||||||
"framework": "cmsis",
|
|
||||||
"name": "STM32LDiscovery (32 MHz) ultra low-power development kit",
|
|
||||||
"platform": "stm32",
|
|
||||||
"upload": {
|
|
||||||
"maximum_ram_size": 16384,
|
|
||||||
"maximum_size": 131072
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"stm32f3discovery": {
|
|
||||||
"build": {
|
|
||||||
"core": "stm32",
|
|
||||||
"extra_flags": "-DSTM32F303xC",
|
|
||||||
"f_cpu": "72000000L",
|
|
||||||
"ldscript": "stm32f30xx.ld",
|
|
||||||
"cpu": "cortex-m4",
|
|
||||||
"mcu": "stm32f303vct6",
|
|
||||||
"variant": "stm32f3"
|
|
||||||
},
|
|
||||||
"framework": "cmsis",
|
|
||||||
"name": "STM32F3Discovery (72 MHz) with accelerometer, gyroscope and e-compass",
|
|
||||||
"platform": "stm32",
|
|
||||||
"upload": {
|
|
||||||
"maximum_ram_size": 262144,
|
|
||||||
"maximum_size": 131072
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
280
platformio/boards/ststm32.json
Normal file
280
platformio/boards/ststm32.json
Normal file
@ -0,0 +1,280 @@
|
|||||||
|
{
|
||||||
|
"disco_f407vg": {
|
||||||
|
"build": {
|
||||||
|
"core": "stm32",
|
||||||
|
"extra_flags": "-DSTM32F40_41xxx",
|
||||||
|
"f_cpu": "168000000L",
|
||||||
|
"ldscript": "stm32f405x6.ld",
|
||||||
|
"cpu": "cortex-m4",
|
||||||
|
"mcu": "stm32f407vgt6",
|
||||||
|
"variant": "stm32f4"
|
||||||
|
},
|
||||||
|
"framework": "cmsis",
|
||||||
|
"name": "STM32F4DISCOVERY",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 131072,
|
||||||
|
"maximum_size": 1048576
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"disco_l152rb": {
|
||||||
|
"build": {
|
||||||
|
"core": "stm32",
|
||||||
|
"extra_flags": "-DSTM32L1XX_MD",
|
||||||
|
"f_cpu": "32000000L",
|
||||||
|
"ldscript": "stm32l15xx6.ld",
|
||||||
|
"cpu": "cortex-m3",
|
||||||
|
"mcu": "stm32l152rbt6",
|
||||||
|
"variant": "stm32l1"
|
||||||
|
},
|
||||||
|
"framework": "cmsis",
|
||||||
|
"name": "STM32LDISCOVERY",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 16384,
|
||||||
|
"maximum_size": 131072
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"disco_f303vc": {
|
||||||
|
"build": {
|
||||||
|
"core": "stm32",
|
||||||
|
"extra_flags": "-DSTM32F303xC",
|
||||||
|
"f_cpu": "72000000L",
|
||||||
|
"ldscript": "stm32f30xx.ld",
|
||||||
|
"cpu": "cortex-m4",
|
||||||
|
"mcu": "stm32f303vct6",
|
||||||
|
"variant": "stm32f3"
|
||||||
|
},
|
||||||
|
"framework": "cmsis",
|
||||||
|
"name": "STM32F3DISCOVERY",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 49152,
|
||||||
|
"maximum_size": 262144
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"disco_f100rb": {
|
||||||
|
"build": {
|
||||||
|
"f_cpu": "24000000L",
|
||||||
|
"cpu": "cortex-m3",
|
||||||
|
"mcu": "stm32f100rbt6"
|
||||||
|
},
|
||||||
|
"framework": "mbed",
|
||||||
|
"name": "STM32VLDISCOVERY",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 8192,
|
||||||
|
"maximum_size": 131072
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"disco_f051r8": {
|
||||||
|
"build": {
|
||||||
|
"f_cpu": "48000000L",
|
||||||
|
"cpu": "cortex-m0",
|
||||||
|
"mcu": "stm32f051r8t6"
|
||||||
|
},
|
||||||
|
"framework": "mbed",
|
||||||
|
"name": "STM32F0DISCOVERY",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 8192,
|
||||||
|
"maximum_size": 65536
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"disco_f334c8": {
|
||||||
|
"build": {
|
||||||
|
"f_cpu": "72000000L",
|
||||||
|
"cpu": "cortex-m4",
|
||||||
|
"mcu": "stm32f334c8t6"
|
||||||
|
},
|
||||||
|
"framework": "mbed",
|
||||||
|
"name": "32F3348DISCOVERY",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 16384,
|
||||||
|
"maximum_size": 65536
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"disco_f401vc": {
|
||||||
|
"build": {
|
||||||
|
"f_cpu": "84000000L",
|
||||||
|
"cpu": "cortex-m4",
|
||||||
|
"mcu": "stm32f401vct6"
|
||||||
|
},
|
||||||
|
"framework": "mbed",
|
||||||
|
"name": "32F401CDISCOVERY",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 65536,
|
||||||
|
"maximum_size": 262144
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"disco_f429zi": {
|
||||||
|
"build": {
|
||||||
|
"f_cpu": "180000000L",
|
||||||
|
"cpu": "cortex-m4",
|
||||||
|
"mcu": "stm32f429zit6"
|
||||||
|
},
|
||||||
|
"framework": "mbed",
|
||||||
|
"name": "32F429IDISCOVERY",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 262144,
|
||||||
|
"maximum_size": 2097152
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nucleo_f030r8": {
|
||||||
|
"build": {
|
||||||
|
"f_cpu": "48000000L",
|
||||||
|
"cpu": "cortex-m0",
|
||||||
|
"mcu": "stm32f030r8t6"
|
||||||
|
},
|
||||||
|
"framework": "mbed",
|
||||||
|
"name": "ST Nucleo F030R8",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 8192,
|
||||||
|
"maximum_size": 65536
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nucleo_f070rb": {
|
||||||
|
"build": {
|
||||||
|
"f_cpu": "48000000L",
|
||||||
|
"cpu": "cortex-m0",
|
||||||
|
"mcu": "stm32f070rbt6"
|
||||||
|
},
|
||||||
|
"framework": "mbed",
|
||||||
|
"name": "ST Nucleo F070RB",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 16384,
|
||||||
|
"maximum_size": 131072
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nucleo_f072rb": {
|
||||||
|
"build": {
|
||||||
|
"f_cpu": "48000000L",
|
||||||
|
"cpu": "cortex-m0",
|
||||||
|
"mcu": "stm32f072rbt6"
|
||||||
|
},
|
||||||
|
"framework": "mbed",
|
||||||
|
"name": "ST Nucleo F072RB",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 16384,
|
||||||
|
"maximum_size": 131072
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nucleo_f091rc": {
|
||||||
|
"build": {
|
||||||
|
"f_cpu": "48000000L",
|
||||||
|
"cpu": "cortex-m0",
|
||||||
|
"mcu": "stm32f091rct6"
|
||||||
|
},
|
||||||
|
"framework": "mbed",
|
||||||
|
"name": "ST Nucleo F091RC",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 32768,
|
||||||
|
"maximum_size": 262144
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nucleo_f103rb": {
|
||||||
|
"build": {
|
||||||
|
"f_cpu": "72000000L",
|
||||||
|
"cpu": "cortex-m3",
|
||||||
|
"mcu": "stm32f103rbt6"
|
||||||
|
},
|
||||||
|
"framework": "mbed",
|
||||||
|
"name": "ST Nucleo F103RB",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 20480,
|
||||||
|
"maximum_size": 131072
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nucleo_f302r8": {
|
||||||
|
"build": {
|
||||||
|
"f_cpu": "72000000L",
|
||||||
|
"cpu": "cortex-m4",
|
||||||
|
"mcu": "stm32f302r8t6"
|
||||||
|
},
|
||||||
|
"framework": "mbed",
|
||||||
|
"name": "ST Nucleo F302R8",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 16384,
|
||||||
|
"maximum_size": 65536
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nucleo_f334r8": {
|
||||||
|
"build": {
|
||||||
|
"f_cpu": "72000000L",
|
||||||
|
"cpu": "cortex-m4",
|
||||||
|
"mcu": "stm32f334r8t6"
|
||||||
|
},
|
||||||
|
"framework": "mbed",
|
||||||
|
"name": "ST Nucleo F334R8",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 16384,
|
||||||
|
"maximum_size": 65536
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nucleo_f401re": {
|
||||||
|
"build": {
|
||||||
|
"f_cpu": "84000000L",
|
||||||
|
"cpu": "cortex-m4",
|
||||||
|
"mcu": "stm32f401ret6"
|
||||||
|
},
|
||||||
|
"framework": "mbed",
|
||||||
|
"name": "ST Nucleo F401RE",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 98304,
|
||||||
|
"maximum_size": 524288
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nucleo_f411re": {
|
||||||
|
"build": {
|
||||||
|
"f_cpu": "100000000L",
|
||||||
|
"cpu": "cortex-m4",
|
||||||
|
"mcu": "stm32f411ret6"
|
||||||
|
},
|
||||||
|
"framework": "mbed",
|
||||||
|
"name": "ST Nucleo F411RE",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 131072,
|
||||||
|
"maximum_size": 524288
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nucleo_l053r8": {
|
||||||
|
"build": {
|
||||||
|
"f_cpu": "48000000L",
|
||||||
|
"cpu": "cortex-m0",
|
||||||
|
"mcu": "stm32l053r8t6"
|
||||||
|
},
|
||||||
|
"framework": "mbed",
|
||||||
|
"name": "ST Nucleo L053R8",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 8192,
|
||||||
|
"maximum_size": 65536
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nucleo_l152re": {
|
||||||
|
"build": {
|
||||||
|
"f_cpu": "32000000L",
|
||||||
|
"cpu": "cortex-m3",
|
||||||
|
"mcu": "stm32l152ret6"
|
||||||
|
},
|
||||||
|
"framework": "mbed",
|
||||||
|
"name": "ST Nucleo L152RE",
|
||||||
|
"platform": "ststm32",
|
||||||
|
"upload": {
|
||||||
|
"maximum_ram_size": 81920,
|
||||||
|
"maximum_size": 524288
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -2,15 +2,23 @@
|
|||||||
# See LICENSE for details.
|
# See LICENSE for details.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Builder for STMicroelectronics
|
Builder for ST STM32 Series ARM microcontrollers.
|
||||||
STM32 Series ARM microcontrollers.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from os.path import join
|
from os.path import join
|
||||||
|
from shutil import copyfile
|
||||||
|
|
||||||
from SCons.Script import (COMMAND_LINE_TARGETS, AlwaysBuild, Default,
|
from SCons.Script import (COMMAND_LINE_TARGETS, AlwaysBuild, Default,
|
||||||
DefaultEnvironment, SConscript)
|
DefaultEnvironment, SConscript)
|
||||||
|
|
||||||
|
|
||||||
|
def UploadToDisk(target, source, env): # pylint: disable=W0613,W0621
|
||||||
|
env.AutodetectUploadPort()
|
||||||
|
copyfile(join(env.subst("$BUILD_DIR"), "firmware.bin"),
|
||||||
|
join(env.subst("$UPLOAD_PORT"), "firmware.bin"))
|
||||||
|
print ("Firmware has been successfully uploaded.\n"
|
||||||
|
"Please restart your board.")
|
||||||
|
|
||||||
env = DefaultEnvironment()
|
env = DefaultEnvironment()
|
||||||
|
|
||||||
SConscript(env.subst(join("$PIOBUILDER_DIR", "scripts", "basearm.py")))
|
SConscript(env.subst(join("$PIOBUILDER_DIR", "scripts", "basearm.py")))
|
||||||
@ -38,13 +46,11 @@ env.Append(
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
CORELIBS = env.ProcessGeneral()
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Target: Build executable and linkable firmware
|
# Target: Build executable and linkable firmware
|
||||||
#
|
#
|
||||||
|
|
||||||
target_elf = env.BuildFirmware(["c", "gcc", "m", "nosys"] + CORELIBS)
|
target_elf = env.BuildFirmware()
|
||||||
|
|
||||||
#
|
#
|
||||||
# Target: Build the .bin file
|
# Target: Build the .bin file
|
||||||
@ -66,7 +72,10 @@ AlwaysBuild(target_size)
|
|||||||
# Target: Upload by default .bin file
|
# Target: Upload by default .bin file
|
||||||
#
|
#
|
||||||
|
|
||||||
upload = env.Alias(["upload", "uploadlazy"], target_firm, "$UPLOADCMD")
|
if "mbed" in env.subst("$FRAMEWORK"):
|
||||||
|
upload = env.Alias(["upload", "uploadlazy"], target_firm, UploadToDisk)
|
||||||
|
else:
|
||||||
|
upload = env.Alias(["upload", "uploadlazy"], target_firm, "$UPLOADCMD")
|
||||||
AlwaysBuild(upload)
|
AlwaysBuild(upload)
|
||||||
|
|
||||||
#
|
#
|
@ -4,10 +4,10 @@
|
|||||||
from platformio.platforms.base import BasePlatform
|
from platformio.platforms.base import BasePlatform
|
||||||
|
|
||||||
|
|
||||||
class Stm32Platform(BasePlatform):
|
class Ststm32Platform(BasePlatform):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
An embedded platform for STMicroelectronics ARM microcontrollers
|
An embedded platform for ST STM32 ARM microcontrollers
|
||||||
"""
|
"""
|
||||||
|
|
||||||
PACKAGES = {
|
PACKAGES = {
|
||||||
@ -36,5 +36,9 @@ class Stm32Platform(BasePlatform):
|
|||||||
|
|
||||||
"framework-opencm3": {
|
"framework-opencm3": {
|
||||||
"default": True
|
"default": True
|
||||||
|
},
|
||||||
|
|
||||||
|
"framework-mbed": {
|
||||||
|
"default": True
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -44,7 +44,7 @@ def test_board_options(platformio_setup, clirunner, validate_cliresult):
|
|||||||
def test_board_ldscripts(platformio_setup, clirunner, validate_cliresult):
|
def test_board_ldscripts(platformio_setup, clirunner, validate_cliresult):
|
||||||
result = clirunner.invoke(
|
result = clirunner.invoke(
|
||||||
install_cli, [
|
install_cli, [
|
||||||
"stm32",
|
"ststm32",
|
||||||
"--skip-default-package",
|
"--skip-default-package",
|
||||||
"--with-package=ldscripts"
|
"--with-package=ldscripts"
|
||||||
])
|
])
|
||||||
|
Reference in New Issue
Block a user