mcu-debug / rtos-views

RTOS views for microcontrollers
MIT License
24 stars 11 forks source link

embOS detected but unable to collect RTOS information #20

Closed NOhs closed 1 year ago

NOhs commented 1 year ago

Hello there,

This is a duplication of https://github.com/Marus/cortex-debug/issues/826, which was posted in the wrong issue tracker by me.

Issue Description

Currently, I have embOS (5.18.0.0) running on a little evaluation board RT600 (with an Cortex M33 chip) and I can use embOS-View (5.18.0.2) to see the different tasks and their stacks etc. If I try to use the XRTOS window of cortex-debug, I get the message (while pausing at a break point):

RTOS Views: Session Name: "armclang", embOS detected. Unable to collect full RTOS information. Could not read any task from "OS_Global.pTask". Perhaps program is busy or did not stop long enough

If I use the default variable watch feature of cortex-debug, I CAN access OS_Global.pTask. So I am a bit confused as to what is going on. Do I need a special configuration for cortex-debug to handle embOS? I currently only have:

"rtos": "embOS",

in my launch.json for cortex-debug.

System Details

PhilippHaefele commented 1 year ago

Thanks for reporting this here again.

I think i just found the error. I will test a little bit more to make sure everything works as expected.

haneefdm commented 1 year ago

Thanks, @PhilippHaefele.

I/We need to create a template for bug submission. Not just this one but for all of our repos.

PhilippHaefele commented 1 year ago

I/We need to create a template for bug submission. Not just this one but for all of our repos.

I was also thinking this the other day. Do you know of any good template we can adjust to our needs?

haneefdm commented 1 year ago

We could use the cpptools as a template. They ask mostly the same questions, except we have some specific things gdb-server, etc.

https://github.com/microsoft/vscode-cpptools/tree/main/.github

Let me know if you see something better.

haneefdm commented 1 year ago

Created issue https://github.com/mcu-debug/rtos-views/issues/21