Jump to content
43oh

Stellaris gcc compile on linux.


Recommended Posts

Hi, I don't know if this is the right place to put this, if it isn't please let me know..

 

I've managed to get a working complier with the arm-none-eabi lite toolchain from codesourcery.

Stellarisware examples are compiling just fine on linux.

The right toolchain it's chosen automatically by the makedefs definitions.

I've managed to get a simple project compiling on gcc and verified it runs correctly in a windows pc with the LMLoader program.

 

Basically I created another folder in the boards directory, copied an existing example from the lm4f120x folder, edited the file names and changed the recurrency of the names in the makefile. I deleted the existing code and added mine in the main.c file.

The files needed (from the uart_echo example) are:

  • uart_echo.c
  • startup_gcc.c
  • uart_echo.ld
  • Makefile

If you are interested you could find all the infos here.

 

Sorry for the poor code, but it was only a test! :)

 

A nice thing would be using openocd and gdb to program, run and debug the bin file in the target but with the ICDI interface it's not possible for now without CCS5 and a some headaches to get it working as this post found out!

Link to post
Share on other sites
Guest Stellarisiti

Hi, I don't know if this is the right place to put this, if it isn't please let me know..

 

Perfect place to put this. Welcome to Stellarisiti, scompo. Thanks for your code snippet too.

 

A nice thing would be using openocd and gdb to program, run and debug the bin file in the target but with the ICDI interface it's not possible for now without CCS5 and a some headaches to get it working as this post found out!

Ntfreak on openocd is working on it.

Link to post
Share on other sites
  • 2 weeks later...

hello,

 

I've not yet received my stellaris boards, but I'm already starting to dig in the code.

 

The Codesourcery toolchain seems to be a "lite" version; do you know what the restrictions are?

 

And what is preventing anyone of us to build an arm toolchain from sources?

 

regards

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...