Starting guide, step by step using CLI to build elf or hex

Asked by Neo Stark

Hi!
I have just started working with ARM processors and am wondering how to use the terminal (command-line) to compile, link and build the executable file (as elf, bin or hex).
I want to achieve this using arm-none-eabi-g++.
The target processor is a STM32F407I.

I am unclear on the process involved to get my code onto the processor.
I have used the Keil IDE and CooCox IDE of which both work. But now I am using Linux I need to be able to run all the commands one at a time to understand the process and learn about the toolchain.

Can anyone please either describe how I would go about this or post a link to a method using arm-none-eabi-gcc found at https://launchpad.net/gcc-arm-embedded/4.7/4.7-2013-q3-update/+download/gcc-arm-none-eabi-4_7-2013q3-20130916-linux.tar.bz2.

Thank-you!

Question information

Language:
English Edit question
Status:
Answered
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Terry Guo (terry.guo) said :
#1

Once you decompress that bz2 file, you can find a folder share/gcc-arm-none-eabi/samples. There are instructions in readme.txt and some simple projects under that folder, please read and study them first.

Can you help with this problem?

Provide an answer of your own, or ask Neo Stark for more information if necessary.

To post a message you must log in.