Generic implementation of Arduino for STM32 boards using STM32 HAL. This is an alternative to the Official implementation
Documentation: https://danieleff.github.io/STM32GENERIC/
TODO create boards manager package
- Download the latest version from https://github.com/huaweiwx/STM32GENERIC
- Unzip it into [Arduino]/hardware folder (Arduino must be ver1.8.5 or newer)
- Move the files in hardware/STM32GENERIC/tools folder to hardware/tools folder for allow other arduino arm can sharing it.
- Install Arduino Zero or Arduino Sam from the board manager for the arm-none-eabi-gcc compiler
- Download the GNU ARM Embedded Toolchain. Recommended use GCC ver 6.3.1-2017q2,Change compiler.path in platform.txt to point to that you downloaded. Example for default position: C:\Users\Administrator\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\
- Create a folder c:\Tmp
- Modify environment variables TEMP and TMP as: TEMP=c:\Tmp TMP=c:\Tmp Because of the Windows command line length limit, we need to modify the environment variables to compile more files (Such as uCGUI)