Xcode template for embedded arm cortex-m development.
Install the gcc-arm-embedded
compiler:
brew cask install gcc-arm-embedded
Install the arm-none-eabi-llvm
compiler and hardware support:
brew tap eblot/armeabi
brew install arm-none-eabi-llvm
brew install armv7em-cortex-m4f
For productive work I recommend tu use STM32CubeMX
Clone the repository or download .zip
archive.
Next execute the following command:
python3 package.py
The package.py
script installs its files in ~/Library/Developer/
and the corresponding subdirectories.
NOTE: Before using the templates make sure that the X-EDEN.xctoolchain
of the X-EDEN Project is installed.
For all templates choose the X-EDEN toolchain in the Xcode main menu under Toolchains
Start with a new Xcode Project:
Add STM32CubeMX project tot he previously create Xcode project:
NOTE: For the STM32CubeLLVM template choose Copy only the necessary library files
Add the generated files to the Xcode project
You should now be able to use the Xcode project as usual.
NOTE: The templates have now debugging function. To debug please use st-util
in combination with the arm-none-eabi-gdb
or lldb
This template builds an STM32CubeMX Makefile project
This template builds an STM32CubeMX Makefile project using the native Xcode llvm toolchain