# Demo: CORTEX\_STM32F103\_GCC\_Rowley

**URL:** <https://forums.freertos.org/t/demo-cortex-stm32f103-gcc-rowley/7523>\
**Category:** Kernel\
**Created:** [November 16, 2018, 9:13am UTC](https://forums.freertos.org/t/demo-cortex-stm32f103-gcc-rowley/7523 "2018-11-16T09:13:44Z")\
**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:** [November 16, 2018, 9:13am UTC](https://forums.freertos.org/t/demo-cortex-stm32f103-gcc-rowley/7523/1 "2018-11-16T09:13:44Z")

</div>

**[jegy](https://sourceforge.net/u/jegy/)** wrote on [Friday, November 16, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/36e2e810c8/#949c):

Hi,  
I am evaluating the Rowley IDE, so I would try the FreeRTOS demo, CORTEX\_STM32F103\_GCC\_Rowley.  
FreeRTOS is ver 10.1.1, Rowley is ver 4.3.

There are some problems when building this demo.

1. 

6\> Compiling ‘SPI\_Flash\_ST\_Eval.c’  
6\> In file included from D:\Projekter\FreeRTOS\FreeRTOSv10.1.1\FreeRTOS\Demo\CORTEX\_STM32F103\_GCC\_Rowley\Drivers\SPI\_Flash\_ST\_Eval.h:21:0,  
6\> from D:\Projekter\FreeRTOS\FreeRTOSv10.1.1\FreeRTOS\Demo\CORTEX\_STM32F103\_GCC\_Rowley\Drivers\SPI\_Flash\_ST\_Eval.c:18:  
6\> ST Library/inc/stm32f10x.h:220:2: error: #error bad \_\_TARGET\_PROCESSOR  
Build failed

A target processor is the defined: #define \_\_TARGET\_PROCESSOR STM32F103C8

1. 

6\> Compiling ‘SPI\_Flash\_ST\_Eval.c’  
6\> In file included from D:\Projekter\FreeRTOS\FreeRTOSv10.1.1\FreeRTOS\Demo\CORTEX\_STM32F103\_GCC\_Rowley\Drivers\SPI\_Flash\_ST\_Eval.h:21:0,  
6\> from D:\Projekter\FreeRTOS\FreeRTOSv10.1.1\FreeRTOS\Demo\CORTEX\_STM32F103\_GCC\_Rowley\Drivers\SPI\_Flash\_ST\_Eval.c:18:  
6\> ST Library/inc/stm32f10x.h:158:10: fatal error: targets/STM32F103C8.h: No such file or directory  
6\> compilation terminated.  
Build failed

A such file, STM32F103C8.h is not found in the FreeRTOS folders or in the Rowley folders.  
The file is included in SPI\_Flash\_ST\_Eval.h.  
Excluding helps the build: // #include “stm32f10x.h”  
BUT

1. 

Then the linking failes:

Rebuilding ‘RTOSDemo’ from solution ‘RTOSDemo’ in configuration ‘THUMB Flash Debug’  
1\> Compiling ‘port.c’  
2\> Compiling ‘tasks.c’  
3\> Compiling ‘list.c’  
4\> Compiling ‘queue.c’  
5\> Compiling ‘heap\_2.c’  
6\> Compiling ‘main.c’  
7\> Compiling ‘recmutex.c’  
8\> Compiling ‘semtest.c’  
1\> Compiling ‘BlockQ.c’  
3\> Compiling ‘flash.c’  
5\> Compiling ‘GenQTest.c’  
4\> Compiling ‘integer.c’  
6\> Compiling ‘PollQ.c’  
2\> Compiling ‘QPeek.c’  
7\> Compiling ‘stm32f10x\_gpio.c’  
8\> Compiling ‘stm32f10x\_lib.c’  
1\> Compiling ‘stm32f10x\_systick.c’  
3\> Compiling ‘stm32f10x\_rcc.c’  
4\> Compiling ‘stm32f10x\_nvic.c’  
5\> Compiling ‘stm32f10x\_spi.c’  
6\> Compiling ‘stm32f10x\_usart.c’  
2\> Compiling ‘stm32f10x\_can.c’  
8\> Compiling ‘stm32f10x\_i2c.c’  
1\> Compiling ‘STM32\_USART.c’  
3\> Compiling ‘ParTest\_MCBSTM32.c’  
7\> Compiling ‘SPI\_Flash\_ST\_Eval.c’  
4\> Assembling ‘thumb\_crt0.s’  
1\> Assembling ‘STM32F10x\_Startup.s’  
1\> no linker script, memory map file or section placement segments specified  
Build complete

So what now?

Best regards

Jens Gydesen

---

<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 16, 2018, 2:24pm UTC](https://forums.freertos.org/t/demo-cortex-stm32f103-gcc-rowley/7523/2 "2018-11-16T14:24:32Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Friday, November 16, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/36e2e810c8/#949c/03a2):

That demo is rather old, so it might be that it is not compatible with  
the latest Rowley tools - however first off - did you just install the  
Rowley tools, or did you also install Rowley’s support package for the  
MCU you are using? As I recall support for each MCU family has to be  
downloaded separately (from Rowley).

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [November 16, 2018, 3:03pm UTC](https://forums.freertos.org/t/demo-cortex-stm32f103-gcc-rowley/7523/3 "2018-11-16T15:03:21Z")

</div>

**[jegy](https://sourceforge.net/u/jegy/)** wrote on [Friday, November 16, 2018](https://sourceforge.net/p/freertos/discussion/382005/thread/36e2e810c8/#48cd):

I have downloaded and installed the support packages for the STM32.  
For your info, I have tried to build the CORTEX\_STM32F107\_GCC\_Rowley demo, and this builds perfect. So I think the problem must be found in the CORTEX\_STM32F103\_GCC\_Rowley demo
