ChibiStudio_2003 debug issues
Posted: Fri Mar 17, 2023 2:37 pm
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.
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.