Jump to content
scompo

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!

Share this post


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.

Share this post


Link to post
Share on other sites

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

 

 

Ntfreak on openocd is working on it.

 

Thank you!

Hope someone would find that useful.

I haven't read that post before, good news! It will be nice and easy when he'll get the stellaris launchpad working!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

There is nothing preventing you from building a toolchain for arm (from source)

There are quite a few different tutorials that I have found.

 

Hopefully in the next week I will have a tutorial done for the stellaris launchpad, and general Arm code.

Share this post


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...