Skip to content

Xcode template for embedded arm cortex-m development.

License

Notifications You must be signed in to change notification settings

flieger19/X-ARM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

X-ARM

Xcode template for embedded arm cortex-m development.

Supported Microcontrollers

  • STM32F446XX

Installation

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.

Usage

For all templates choose the X-EDEN toolchain in the Xcode main menu under Toolchains

Start with a new Xcode Project:

  • launch Xcode
  • create a new project
  • under Multiplatform move to X-ARM
  • select the STM32CubeMX or STM32CubeLLVM template
  • click Next
  • enter a project name
  • choose your MCU
  • click Finish
  • choose a directory where to save the project
  • click Create

Add STM32CubeMX project tot he previously create Xcode project:

  • launch STM32CubeMX
  • create a new project with one of the supported microcontrollers
  • Save the project insight the previously created Xcode project
  • Run the code generation for a makefile project

NOTE: For the STM32CubeLLVM template choose Copy only the necessary library files

Add the generated files to the Xcode project

  • Add all generated source files including the make and linker file to the Xcode project
  • Add all source files to the Build Phase settings Compile Sources of the Index target
  • Build the Index target.

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

STM32CubeMX Template

This template builds an STM32CubeMX Makefile project

STM32CubeLLVM Template

This template builds an STM32CubeMX Makefile project using the native Xcode llvm toolchain

About

Xcode template for embedded arm cortex-m development.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published