This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
mabl wrote:I have one wish too I don't know if it is feasible, but I'd love to click on a thread/callback and directly jump to the source code as well.
I tried this but so fat I've been unable to convert from an object address to the associated symbol name so no luck, the Eclipse code is huge and documentation scarce, even things apparently simple can be difficult to implement if you don't know exactly where so search.
Additional info: After some time of successful running one tread hm... dead. Looks like it simple do return, but it has not return statment. All debug options switched on and I have no kernel panic. All other treads running fine (I successfully trap to breakpoint in it). When I press "refresh" plugin button than I have denoted error message. If I break before the death of problematic thread than "refresh" button works as expected.
When I set CH_USE_DYNAMIC to TRUE, select "Threads" tab and press refresh button, than I have following error: "Error: error reading memory at 536879156" All other tabs work fine. There are no error messages from OpenOCD in console. Manually that address readed fine.
I test it with dynamic threads enabled and don't get that error.
The message is generated when failing to read a zero terminated string (the thread name). It is possible that that location reads fine but the location pointed by that location is invalid.
What is the content of the word located at 536879156 (0x20002034)? My hypothesis is that it is a corrupted thread name for some reason.
I have no dynamic treads at all. Differences between builds only in that flag.
UPDATE from ch.map: COMMON 0x20001fe8 0xb0 ../chibios/os/kernel/src/chsys.o 0x20001fe8 _idle_thread_wa COMMON 0x20002098 0x414 ../chibios/os/kernel/src/chdebug.o 0x20002098 dbg_trace_buffer
Is it really the p_name field? id so it must point to "idle\0" string, if the p_name points to something different then it is possible the structure got corrupted somehow.