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
    B SVC_Handler

main.c file link: enter link description here

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

  • \$\begingroup\$ do you have a question? \$\endgroup\$ – jsotola Dec 5 '17 at 7:20
  • 1
    \$\begingroup\$ I'm voting to close this question as off-topic because it has been abandoned in unanswerably incomplete condition for a year and a half. \$\endgroup\$ – Chris Stratton Jul 23 at 15:17

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

  • \$\begingroup\$ 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 \$\endgroup\$ – pezhvak Dec 5 '17 at 18:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.