Demo: CORTEX_STM32F103_GCC_Rowley
Hi,
I am evaluating the Rowley IDE, so I would try the FreeRTOS demo, CORTEXSTM32F103GCC_Rowley.
FreeRTOS is ver 10.1.1, Rowley is ver 4.3.
There are some problems when building this demo.
1.
6> Compiling ‘SPIFlashSTEval.c’
6> In file included from D:ProjekterFreeRTOSFreeRTOSv10.1.1FreeRTOSDemoCORTEXSTM32F103GCCRowleyDriversSPIFlashSTEval.h:21:0,
6> from D:ProjekterFreeRTOSFreeRTOSv10.1.1FreeRTOSDemoCORTEXSTM32F103GCCRowleyDriversSPIFlashST_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
2.
6> Compiling ‘SPIFlashSTEval.c’
6> In file included from D:ProjekterFreeRTOSFreeRTOSv10.1.1FreeRTOSDemoCORTEXSTM32F103GCCRowleyDriversSPIFlashSTEval.h:21:0,
6> from D:ProjekterFreeRTOSFreeRTOSv10.1.1FreeRTOSDemoCORTEXSTM32F103GCCRowleyDriversSPIFlashST_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 SPIFlashST_Eval.h.
Excluding helps the build: // #include “stm32f10x.h”
BUT
3.
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 ‘heap2.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 ‘stm32f10xgpio.c’
8> Compiling ‘stm32f10xlib.c’
1> Compiling ‘stm32f10xsystick.c’
3> Compiling ‘stm32f10xrcc.c’
4> Compiling ‘stm32f10xnvic.c’
5> Compiling ‘stm32f10xspi.c’
6> Compiling ‘stm32f10xusart.c’
2> Compiling ‘stm32f10xcan.c’
8> Compiling ‘stm32f10xi2c.c’
1> Compiling ‘STM32USART.c’
3> Compiling ‘ParTestMCBSTM32.c’
7> Compiling ‘SPIFlashSTEval.c’
4> Assembling ‘thumbcrt0.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
Demo: CORTEX_STM32F103_GCC_Rowley
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).
Demo: CORTEX_STM32F103_GCC_Rowley
I have downloaded and installed the support packages for the STM32.
For your info, I have tried to build the CORTEXSTM32F107GCCRowley demo, and this builds perfect. So I think the problem must be found in the CORTEXSTM32F103GCCRowley demo