Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:stm32 [2022/12/18 10:35] – [STM32] darron | tools:stm32 [2023/09/04 17:46] (current) – [Board support packages] darron | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====STM32=== | + | ====STM32Cube/ |
ST micro supply tools to target STM32 devices, they include | ST micro supply tools to target STM32 devices, they include | ||
- | a startup | + | code generation, an IDE and Arduino |
- | STMCubeMX is a visualisation tool and start-up code generator. | + | |
+ | * STMCubeIDE is the development environment. | ||
+ | * STM32duino is the Arduino development platform support. | ||
- | STMCubeIDE is the development environment. | + | ===STM32CubeMX=== |
- | STM32duino is the Arduino development platform support. | + | This is great to visualise the layout of a STM32 development board and |
- | ===STMCubeMX=== | + | |
- | + | ||
- | This is great to visualise the layout of a development board and | + | |
see the pin usage and the clock tree. | see the pin usage and the clock tree. | ||
Line 19: | Line 18: | ||
When using a GNU make target, it produces a working directory | When using a GNU make target, it produces a working directory | ||
that builds first time with `arm-none-eabi-gcc' | that builds first time with `arm-none-eabi-gcc' | ||
- | used a basis for a project. | + | used as a basis for a project. |
The license of the files created is not present and therefore | The license of the files created is not present and therefore | ||
Line 36: | Line 35: | ||
C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX | C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX | ||
</ | </ | ||
- | ===STMCubeIDE=== | + | |
+ | ===STM32CubeIDE=== | ||
The development environment also embeds the MX tool above and can support various other tools. | The development environment also embeds the MX tool above and can support various other tools. | ||
- | This IDE produces a proprietary project and there is no access to platform | + | This STM32 IDE produces a proprietary project and there is no access to platform |
specific files until a project is created. A lot of files are generated for | specific files until a project is created. A lot of files are generated for | ||
each project so this is perhaps more suitable for larger flash devices. | each project so this is perhaps more suitable for larger flash devices. | ||
Line 49: | Line 49: | ||
On windows this will install in | On windows this will install in | ||
+ | |||
< | < | ||
C: | C: | ||
Line 55: | Line 56: | ||
===STM32duino=== | ===STM32duino=== | ||
- | STM32duino provides `wiring' | + | STM32duino provides `wiring' |
Arduino Processing IDE. | Arduino Processing IDE. | ||
Line 61: | Line 62: | ||
for reference or usage. | for reference or usage. | ||
- | This may be used to build a standalone application without Arduino support | + | This may be used to build a standalone application |
- | but it hasn't been investigated, | + | on any platform we choose to develop on which has access the the ARM compiler. |
+ | This is preferred way to develop for STM32 on a Raspberry Pi, for example. | ||
https:// | https:// | ||
+ | |||
+ | ==Install== | ||
+ | |||
+ | < | ||
+ | cd /opt | ||
+ | git clone https:// | ||
+ | </ | ||
+ | |||
+ | ===Board support packages=== | ||
+ | |||
+ | The board support packages exist for various components. | ||
+ | |||
+ | < | ||
+ | mkdir -p /opt/BSP | ||
+ | </ | ||
+ | |||
+ | ==LAN8742 Ethernet PHY== | ||
+ | |||
+ | < | ||
+ | cd /opt/BSP | ||
+ | git clone https:// | ||
+ | </ | ||
+ | |||
+ | ===TinyUSB=== | ||
+ | |||
+ | < | ||
+ | cd /opt/BSP | ||
+ | git clone https:// | ||
+ | </ | ||
+ | ===Resources=== | ||
+ | |||
+ | [[https:// |