nvim-dap-cortex-debug icon indicating copy to clipboard operation
nvim-dap-cortex-debug copied to clipboard

RTOS support

Open haraldan opened this issue 1 year ago • 1 comments

First of all, thank you for this plugin!

I've been trying to set up visual debugging with Neovim on an embedded M33 system. Since we are using FreeRTOS, does this mean that debugging will not work at all once the scheduler is started, or just that the thread information would not be visible?

Do you have plans to integrate RTOS support in the near future?

haraldan avatar Dec 09 '24 10:12 haraldan

Hi, debugging with RTOS should work, I've been debugging with FreeRTOS many times and it works and I can get thread stack information. The missing feature is getting RTOS task statistics etc.

If you have problems with FreeRTOS debugging you may need to check if you set rtos correctly (https://github.com/Marus/cortex-debug/blob/master/debug_attributes.md). Also, you may try disabling any breakpoints that are triggered before scheduler is started, I remember that they mentioned this somewhere in cortex-debug repo that there might be some problems if breakpoints are triggered before scheduler start (but I believe that it worked without issues for me).

jedrzejboczar avatar Dec 09 '24 13:12 jedrzejboczar