FreeRTOS debugging on stm32F401 is not possible
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-09-15 11:29 PM
Hi everyone.
I use CubeIDE 1.10.1 and CubeMX 6.6.1 MCU stm32F401CCU6 stm32H750. StlinkV2 or J-link Ultra.
When I start debugging FreeRTOS I get stuck in the osKernelStart() -> vTaskStartScheduler-> xPortStartScheduler-> prvPortStartFirstTask-> and I stuck in my task forever but just during debugging !!!!
Without debugging program works fine. Why is it happening? Am I doing something wrong of this is a bug?
Please, can someone help me? I would be very grateful.
- Labels:
-
DEBUG
-
FreeRTOS
-
STM32CubeIDE
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-09-16 2:28 AM
Hello @Vakula San​ ,
Welcome to ST Community :smiling_face_with_smiling_eyes:
You can refer to the following training links for debugging FreeRTOS:
- STM32Cube tools in practice - STM32CubeIDE - FreeRTOS aware debug
- FreeRTOS on STM32 - 21 Debug support - Eclipse, gcc
I hope this helps.
BeST Regards,
Walid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-09-16 5:04 AM
Hi @Walid ZRELLI​.
As a new member I cannot add links. I already watched it and searched through this site.
The problem is next. the arrows grayed out and I stuck in my task. Cannot go further. I cannot figure it out. And could you please tell me why osDelay() or taskYIELD() during debugging does not switch context. Why I cannot do step-by-step debugging?
Thanks for the response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-09-16 7:46 AM
This is mine main.c.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-09-16 7:47 AM
This is mine main.c.
