# FreeRTOS port for LPC2368 using Code Sourcery

**URL:** <https://forums.freertos.org/t/freertos-port-for-lpc2368-using-code-sourcery/4845>\
**Category:** Kernel\
**Created:** [April 6, 2012, 4:52am UTC](https://forums.freertos.org/t/freertos-port-for-lpc2368-using-code-sourcery/4845 "2012-04-06T04:52:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 6, 2012, 4:52am UTC](https://forums.freertos.org/t/freertos-port-for-lpc2368-using-code-sourcery/4845/1 "2012-04-06T04:52:47Z")

</div>

**[littledino2112](https://sourceforge.net/u/littledino2112/)** wrote on [Friday, April 06, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/d5c81f37/#da9f):

Hi all,  
Recently, i used FreeRTOS port for LPC2368 and have sucessfully built a simple program to blink an LED. As u may know, this port uses GNU ARM toolchain (arm-elf-). Now, I want to use Code Sourcery (arm-none-eabi-) because it’s more updated. I changed arm-elf-gcc and arm-elf-objcopy in makefile to equivalent arm-none-eabi-\* and compile the code. Everything went fine until i uploaded the hex file to the board. The LED doesn’t work anymore. Any idea where the issue comes from?

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 6, 2012, 7:58am UTC](https://forums.freertos.org/t/freertos-port-for-lpc2368-using-code-sourcery/4845/2 "2012-04-06T07:58:18Z")

</div>

**[davedoors](https://sourceforge.net/u/davedoors/)** wrote on [Friday, April 06, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/d5c81f37/#402c):

The Code Sourcery equivalent of arm-elf-gcc is arm-none-eabi-gcc, not arm-elf-objcopy. Is that what you mean?

You will probably find the linker script needs updating as the section names, etc, will be different. There are some arm-none-eabi-gcc demo project in the FreeRTOS download. I suggest looking at the linker scripts that come with those or any provided by Code Sourcery if you have any problems.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [April 6, 2012, 5:58pm UTC](https://forums.freertos.org/t/freertos-port-for-lpc2368-using-code-sourcery/4845/3 "2012-04-06T17:58:59Z")

</div>

**[littledino2112](https://sourceforge.net/u/littledino2112/)** wrote on [Friday, April 06, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/d5c81f37/#c1f5):

Thanks for the reply. i changed arm-elf-gcc to arm-none-eabi-gcc and arm-elf-objcopy to arm-none-eabi-objcopy. The compilation process went fine but the LED doesn’t blink at all. I think you’re true about the linker script file. I’ll take a look at it to see if i can find any solution.
