I've just run up the ChibiStudio_2023 environment (on a PC) to see if it sorts a couple of problems with debugging under ChibiStudio_2022; unfortunately not so:
1. Using the Chibi plugin to download a trace, it still fails with a timeout error as the attached screenshot. (The actual number varies a bit according to program and compiler version; I've previously traced where it came from, which IIRC was the name of the last thread in the registry). The plugin can downloaded other information from the target OK.
2. Theoretically adding -c "$_TARGETNAME configure -rtos chibios" as a command-line parameter for OpenOCD means that the debugger shows all threads in the debug window; now it just shows the current thread, with a message "No RTOS thread" and a log entry "Error: ChibiOS registry integrity check failed, double linked list violation"
(The parameter is "chibios", although the OpenOCD manual implies "ChibiOS").
I also tried OpenOCD version 12 with no difference.
3. Also, happened to notice that the "OpenOCD on Picoprobe" external tool looks for environment variable "OPEN_OCD_PICO", which doesn't exist.
The first two items both used to work on earlier installations.
Any ideas?
Debugging Nucleo STM32F767 using the attached ST-Link interface and Chibi 21.11.3, if it makes a difference.
ChibiStudio_2003 debug issues
- Giovanni
- Site Admin
- Posts: 14565
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1112 times
- Been thanked: 937 times
- Contact:
Re: ChibiStudio_2003 debug issues
Hi,
OpenOCD has not yet been updated to support ChibiOS RT7 present in version 21.11.x, probably this is the reason.
You can inspect threads using the ChibiOS plugin.
Giovanni
OpenOCD has not yet been updated to support ChibiOS RT7 present in version 21.11.x, probably this is the reason.
You can inspect threads using the ChibiOS plugin.
Giovanni
Re: ChibiStudio_2003 debug issues
Giovanni wrote:OpenOCD has not yet been updated to support ChibiOS RT7 present in version 21.11.x, probably this is the reason.
Giovanni
That's a pity, but I can always go back to Chibi 20 (I only moved the program forward to Chibi 21 to see if the newer scheduler option might fix an obscure problem I was having - which it didn't, of course).
- Giovanni
- Site Admin
- Posts: 14565
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1112 times
- Been thanked: 937 times
- Contact:
Re: ChibiStudio_2003 debug issues
Giovanni wrote:Hi,
What problem exactly?
Giovanni
This one.At one point it looked as if the problem occurred when one ISR was immediately followed by by another, without returning to "normal" code. Needless to say it was nothing to do with ChibiOS; turned out that QSPI access wasn't being managed as well as I thought (and no, I haven't been working on it continuously for a year! It's a low priority project that gets dusted off occasionally).
Who is online
Users browsing this forum: No registered users and 12 guests