# Convert a Contex-M3 Demo code  

**URL:** <https://forums.freertos.org/t/convert-a-contex-m3-demo-code/2057>\
**Category:** Kernel\
**Created:** [November 5, 2012, 3:42pm UTC](https://forums.freertos.org/t/convert-a-contex-m3-demo-code/2057 "2012-11-05T15:42:48Z")\
**Posts on this page:** 2\
**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:** [November 5, 2012, 3:42pm UTC](https://forums.freertos.org/t/convert-a-contex-m3-demo-code/2057/1 "2012-11-05T15:42:48Z")

</div>

**[daniel248](https://sourceforge.net/u/daniel248/)** wrote on [Monday, November 05, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/577e535a/#bee1):

Hi,  
Now I have a project base on STM32L152 which uses Contex-M3 microprocessor. I want to convert it to another board which is ADuCM360 which also uses Contex-M3 microprocessor. I read the content on the page&nbsp; [http://www.freertos.org/porting-a-freertos-demo-to-different-hardware.html,](http://www.freertos.org/porting-a-freertos-demo-to-different-hardware.html%2C) but I am lost. I am wondering if it is possible to convert it.

Any idea is appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [November 5, 2012, 3:54pm UTC](https://forums.freertos.org/t/convert-a-contex-m3-demo-code/2057/2 "2012-11-05T15:54:33Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Monday, November 05, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/577e535a/#a755):

There is only one Cortex-M3 port.&nbsp; It runs on any microcontroller from any manufacturer that has a Cortex-M3 core.&nbsp; So, yes, it is possible to convert it.

If you have a project already running on the ADu, then you have to add the FreeRTOS source files to the project, ensure the include path can find the header files, and install the interrupt handlers.&nbsp; [http://www.freertos.org/Creating-a-new-FreeRTOS-project.html](http://www.freertos.org/Creating-a-new-FreeRTOS-project.html) provides more details.

Naturally, if you are using the IAR compiler, you need the IAR port files, if you are using the Keil compiler then use the RVDS port files, and if you are using the GCC compiler…etc.

Can you say more specifically what the issue you are facing is?

Regards.
