correct tool chain

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
sagar
Posts: 4
Joined: Mon Feb 20, 2012 7:12 pm

correct tool chain

Post by sagar »

Hi,
I am new to ChibiOS but am loving so far whatever I have seen. It has awesome documentation and has got me going with my two boards (LPC2148 and STM32 F4 Discovery) within a day!

While ChibiOS compiling code for LPC2148, I came across very weird issue. My development machine is having Ubuntu 11.10 and it has native support for arm-linux-gnueabi tool chain. If I use arm-linux-gnueabi tool chain for compilation of ChibiOS I see lot of errors; most of the errors saying that "thumb mode is not supported for selected CPU". But instead if I use arm-none-eabi from Code Sourcery then this problem goes away. My question is what is difference between arm-linux-gnueabi and arm-none-eabi tool chain? Why should I see such problem with arm-linux-gnueabi toolchain?

Thanks & regards,
Sagar
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: correct tool chain

Post by Giovanni »

Hi,

Don't worry, you are supposed to use arm-none-eabi, there is nothing strange going on.

arm-none-eabi is the version for bare metal systems, arm-linux-gnu-eabi is meant for user space application running under linux, apparently the thumb mode is not supported in that scenario.

Giovanni
sagar
Posts: 4
Joined: Mon Feb 20, 2012 7:12 pm

Re: correct tool chain

Post by sagar »

Thanks Giovanni for your quick reply. It was very helpful.

Regards,
Sagar
Post Reply