# Problem in compiling FREERTOS for STM32F207IG

**URL:** <https://forums.freertos.org/t/problem-in-compiling-freertos-for-stm32f207ig/5165>\
**Category:** Kernel\
**Created:** [November 21, 2012, 11:09am UTC](https://forums.freertos.org/t/problem-in-compiling-freertos-for-stm32f207ig/5165 "2012-11-21T11:09:41Z")\
**Posts on this page:** 4\
**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 21, 2012, 11:09am UTC](https://forums.freertos.org/t/problem-in-compiling-freertos-for-stm32f207ig/5165/1 "2012-11-21T11:09:41Z")

</div>

**[faizans](https://sourceforge.net/u/faizans/)** wrote on [Wednesday, November 21, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/e3bfe403/#3c62):

Hi,

I am getting compilation error, when i try to compile FreeRtos with Rowley’s Crossworks for STM32F207IG.  
I am using version 6.1.0 of freeRtos. I am getting a compilation error in the File “queue.c” & port.c  
The error are “undefined reference to vPortSetInterruptMask”

Building “Example” in configuration “THUMB Debug”  
&nbsp; Compiling queue.c  
&nbsp; Linking Example.elf  
&nbsp;&nbsp;&nbsp; THUMB Debug/queue.o: In function `xQueueGenericSendFromISR’:  
&nbsp;&nbsp;&nbsp;&nbsp; undefined reference to `vPortSetInterruptMask’  
&nbsp;&nbsp;&nbsp;&nbsp; undefined reference to `vPortClearInterruptMask’  
&nbsp;&nbsp;&nbsp; THUMB Debug/tasks.o: In function `vTaskStartScheduler’:  
&nbsp;&nbsp;&nbsp;&nbsp; undefined reference to `vPortSetInterruptMask’  
&nbsp;&nbsp;&nbsp; THUMB Debug/port.o: In function `vPortEnterCritical’:  
&nbsp;&nbsp;&nbsp;&nbsp; undefined reference to `vPortSetInterruptMask’  
&nbsp;&nbsp;&nbsp; THUMB Debug/port.o: In function `vPortExitCritical’:  
&nbsp;&nbsp;&nbsp;&nbsp; undefined reference to `vPortClearInterruptMask’  
&nbsp;&nbsp;&nbsp; THUMB Debug/port.o: In function `xPortSysTickHandler’:  
&nbsp;&nbsp;&nbsp;&nbsp; undefined reference to `vPortSetInterruptMask’  
&nbsp;&nbsp;&nbsp;&nbsp; undefined reference to `vPortClearInterruptMask’  
Build failed

Kindly Oblige

---

<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 21, 2012, 11:24am UTC](https://forums.freertos.org/t/problem-in-compiling-freertos-for-stm32f207ig/5165/2 "2012-11-21T11:24:10Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Wednesday, November 21, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/e3bfe403/#edd6):

Where did the project come from?&nbsp; I’m using FreeRTOS V7.3.0 and there isn’t a vPortSetInterruptMask() function or macro in the CM3 GCC port layer.

I just tried compiling the FreeRTOS\Demo\CORTEX\_STM32F107\_GCC\_Rowley demo and didn’t get any problems (there were 17 warnings that came from the uIP stack code, but it compiled and linked).

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [November 21, 2012, 11:42am UTC](https://forums.freertos.org/t/problem-in-compiling-freertos-for-stm32f207ig/5165/3 "2012-11-21T11:42:50Z")

</div>

**[faizans](https://sourceforge.net/u/faizans/)** wrote on [Wednesday, November 21, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/e3bfe403/#cfe3):

Thanks for the reply, I am using freeRtos V6.1. I have used the source file from other FreeRTOS project Build on Different IDE.  
The Project is based on demonstration of building on top of the LwIP (Lightweight IP) TCP/IP stack.

I have also tried & compilied&nbsp; FreeRTOS\Demo\CORTEX\_STM32F107\_GCC\_Rowley demo without any errors, but i cannot use this, as I am using STM32F207IG based Development board.

Kindly oblige.

---

<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 21, 2012, 12:13pm UTC](https://forums.freertos.org/t/problem-in-compiling-freertos-for-stm32f207ig/5165/4 "2012-11-21T12:13:08Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Wednesday, November 21, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/e3bfe403/#3cff):

All the Cortex-M3 demos use exactly the same port layer code.&nbsp; FreeRTOS does not care if it is a 107 or a 207, but you will have to change the linker script to have the correct memory layout.

[http://www.freertos.org/Creating-a-new-FreeRTOS-project.html](http://www.freertos.org/Creating-a-new-FreeRTOS-project.html)  
[http://www.freertos.org/porting-a-freertos-demo-to-different-hardware.html](http://www.freertos.org/porting-a-freertos-demo-to-different-hardware.html)

Regards.
