GCC/CMIS - no luck here, any pointers.

10 Sep 2010

Hi Guys,

First I must say that I am new to ARM processors, and as usual in my live I am very confused.

I am looking to get GCC working for the mBed, I have scoured the informationSuperDirtTrack for info and so far have come up with this:

 

1. Building a GCC for ARM from http://www.arklyffe.com/main/2010/08/29/arm-gcc-toolchain-build/

2. Getting the CMIS stuff - http://dev.frozeneskimo.com/notes/compiling_your_own_cmsis_code_for_the_mbed

 

All well and good I get my .bin file, very happy with that I must admit. When I copy this to the mBed though, nothing, it doesn't run.

 

Any ideas or pointers to other ways of getting a gcc based offline compile going?

 

Thanks for any help

 

Andy

 

 

 

10 Sep 2010

Hi Guys,

 

An update,

 

I just used the sourcery g++ lite gcc to build on a pc and the code runs on the mBed, so it looks like an issue with the gcc I built rather then the cmis stuff.

 

So getting there....

 

Cheers

 

Andy

 

 

11 Sep 2010

Hi,

I use G++ from Sourcery + Cygwin + CMSIS and I compile from command line using make files. Everything works well.

What is the code that don't works? If it's some led blinking thing from the CMSIS example you have to change the timings. Tweak CCLKSEL from system_LPC17xx.c or (SysTick_Config(SystemCoreClock / 100) from main_LPC17xx.c

 

D

 

 

11 Sep 2010

Hi Dan,

Basically the mBed will not run the bin created by the G++ I built on OS X.

The same code built via the Sourcery G++ works fine, if only they did a pre-built one for OS X!

Cheers

 

Andy

11 Sep 2010

Hi,

Maybe you should try http://www.rowleydownload.co.uk/arm/arm_crossworks_2_0_7_macos_x86.dmg as a trial to see if it's a compiler/target issue.

Dan

11 Sep 2010

Hi Dan,

Thanks for the pointer, I will give it a go.

Cheers

Andy

13 Sep 2010

Hi Dan,

I built arm-elf-gcc using port on OS X and it all works now.

Thanks for your help

 

Andy