Become a leader in the IoT community!
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Hi, I was trying to use FreeRTOS without CMSIS on my STM32F767ZI but I’m having problems with the code.
I followed the indications in the video “How to Configure and Use FreeRTOS APIs on ARM Cortex-M MCUSs?” https://www.youtube.com/watch?v=oTLyKtUtAC8&list=PLvUVeKrjqledsyJRy-u5gFHe5UYUzmgBT&index=3&t=848s
I specify that the code is compiling correctly (since i literally copied everything done in the video). But at the time of running it, it doesn’t work! Debugging the code, I have seen that it stops at prvPortStartFirstTask(); defined in task.c and then goes into Hardfault. If anyone had the same issue or knows the solution I wolud thank him a lot.
PS: for the FreeRTOSConfig.h file it wasn’t specified where to take it. So I downloaded it from a project with F7 and readapted to the one in the video(https://github.com/STMicroelectronics/STM32CubeF7/blob/master/Projects/STM32F767ZI-Nucleo/Applications/LwIP/LwIP_HTTP_Server_Netconn_RTOS/Inc/FreeRTOSConfig.h)
In the end I solved it: it was a problem of SVC_Handler,PendSV_Handler and SysTick_Handler definition in the _it.c file
Great, most of such issues at compile time are associated with the freertos config file. So by commenting these handlers in _it.c resolve issues. Best wishes!
CONTRIBUTE TO THIS THREAD