Hi
I have tried to get the freeRTOS running on a STM32F100R4, there is no excact demoes for this target, but I have tried to set it up manually, It Compiles fine, but efter calling the
vPortStartFirstTask
in the port.c file everything seems to stop. The systemTick counter is running, but if I break the program, the debugger stops, and give me and error. I can single step down to the last command in the function, but when execute the
scv 0[code], the debugger stops.
I have add some lines to the standadt startup file startup_stm32f10x_ld_vl.s
[code] IMPORT xPortPendSVHandler
IMPORT xPortSysTickHandler
IMPORT vPortSVCHandler
; Vector Table Mapped to Address 0 at Reset
AREA RESET, DATA, READONLY
EXPORT __Vectors
EXPORT __Vectors_End
EXPORT __Vectors_Size
__Vectors DCD __initial_sp ; Top of Stack
DCD Reset_Handler ; Reset Handler
DCD NMI_Handler ; NMI Handler
DCD HardFault_Handler ; Hard Fault Handler
DCD MemManage_Handler ; MPU Fault Handler
DCD BusFault_Handler ; Bus Fault Handler
DCD UsageFault_Handler ; Usage Fault Handler
DCD 0 ; Reserved
DCD 0 ; Reserved
DCD 0 ; Reserved
DCD 0 ; Reserved
DCD vPortSVCHandler ; SVCall Handler
DCD DebugMon_Handler ; Debug Monitor Handler
DCD 0 ; Reserved
DCD xPortPendSVHandler ; PendSV Handler
DCD xPortSysTickHandler ; SysTick Handler[/code]
I'm using the CMSIS and stdPerph driver interface from ST, to set up the clock and the SystemTick. I hope anyone can help me to solve this problem !