-1

i tried to run port FreeRtos V9 to stm32f103 with iar compiler made project my self.but when debugging , after call vTaskStartScheduler(); microcontroller jump to

        PUBWEAK SVC_Handler
    SECTION .text:CODE:REORDER:NOROOT(1)
    SVC_Handler
    B SVC_Handler

main.c file link: enter link description here

what is that for?also FreeRtos doesn't work.

pezhvak
  • 9
  • 3

1 Answers1

0

You have to install the FreeRTOS interrupt handlers. See #1 on this page of the FreeRTOS FAQ: https://www.freertos.org/FAQHelp.html

Richard
  • 401
  • 2
  • 1
  • thank you Mr.Richard.added this 3 lines to FreeRTOSConfig.h `#define vPortSVCHandler SVC_Handler #define xPortPendSVHandler PendSV_Handler #define xPortSysTickHandler SysTick_Handler` bot still jump to SVC_Handler also call this 3 function before vtaskstart `xPortSysTickHandler(); xPortPendSVHandler(); vPortSVCHandler();` didnt work – pezhvak Dec 05 '17 at 18:08