STM32 development on Linux
2018-08-28
STM32 Development on Linux.
Installation
-
Install the compiler
sudo apt install gcc-arm-none-eabi # none: no vendor, not targeting any operating system # eabi: ARM embedded ABI
-
Install ST-Link to get connected to the board (drivers and utils)
git clone --depth 1 https://github.com/texane/stlink.git # then build and install yourself
-
Install STM32CubeMX for project code generation
https://www.st.com/en/development-tools/stm32cubemx.html
Compiling
- Notice:
-mfloat-abi={soft,hard}
- Flashing to the board
st-flash erase st-flash --reset write data.bin 0x8000000