STM32 development on Linux


STM32 Development on Linux.


  1. Install the compiler

    sudo apt install gcc-arm-none-eabi
    # none: no vendor, not targeting any operating system
    # eabi: ARM embedded ABI
  2. Install ST-Link to get connected to the board (drivers and utils)

    git clone --depth 1
    # then build and install yourself
  3. Install STM32CubeMX for project code generation


  • Notice: -mfloat-abi={soft,hard}
  • Flashing to the board
    st-flash erase
    st-flash --reset write data.bin 0x8000000