Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tools:stm32 [2022/12/18 10:56]
darron [STM32]
tools:stm32 [2023/09/04 17:46] (current)
darron [Board support packages]
Line 1: Line 1:
-====STM32===+====STM32Cube/duino===
  
 ST micro supply tools to target STM32 devices, they include  ST micro supply tools to target STM32 devices, they include 
-a startup code generator, IDE and Arduino.+code generationan IDE and Arduino platform support.
  
-STMCubeMX is a visualisation tool and start-up code generator.+   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
- +
-The first two above probably also support STM8 but I did not +
-take an interest in that. +
-===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 39: Line 35:
 C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX
 </code> </code>
-===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 52: Line 49:
  
 On windows this will install in On windows this will install in
 +
 <code> <code>
 C:\ST\STM32CubeIDE_1.11.0 C:\ST\STM32CubeIDE_1.11.0
Line 58: Line 56:
 ===STM32duino=== ===STM32duino===
  
-STM32duino provides `wiring' support for the STM32 microcontroller within the+STM32duino provides `wiring' support for the STM32 and STM8 microcontrollers within the
 Arduino Processing IDE. Arduino Processing IDE.
  
Line 64: 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 with or without Arduino support 
-but it hasn't been investigated, yet.+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://github.com/stm32duino https://github.com/stm32duino
 +
 +==Install==
 +
 +<code>
 +cd /opt
 +git clone https://github.com/stm32duino/Arduino_Core_STM32
 +</code>
 +
 +===Board support packages===
 +
 +The board support packages exist for various components.
 +
 +<code>
 +mkdir -p /opt/BSP
 +</code>
 +
 +==LAN8742 Ethernet PHY==
 +
 +<code>
 +cd /opt/BSP
 +git clone https://github.com/STMicroelectronics/stm32-lan8742
 +</code>
 +
 +===TinyUSB===
 +
 +<code>
 +cd /opt/BSP
 +git clone https://github.com/hathach/tinyusb
 +</code>
 +===Resources===
 +
 +[[https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/8742a.pdf|LAN8742 data-sheet]]