I have a debugger issue: When I add a simple variable into the expressions window the value is shown correctly. But for any arrays it reports an error - see details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-29 03:41 AM
I use an array, for example, peakindex[6]. The biulder shows no errors. When debugging and looking for the values in the Expressions window the following error messages occur:
Multiple errors reported.
1) Failed to execute MI command:
-var-create - * peakindex
Error message from debugger back end:
-var-create: unable to create variable object
2) Unable to create variable object
3) Failed to execute MI command:
-data-evaluate-expression peakindex
Error message from debugger back end:
No symbol "peakindex" in current context.
4) Failed to execute MI command:
-var-create - * peakindex
Error message from debugger back end:
-var-create: unable to create variable object
I appreciate any help.
Regards
Ulrich
Solved! Go to Solution.
- Labels:
-
DEBUG
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-31 02:54 AM
I fixed the problem, but cannot point out the exact reason. After migrating from 1.9.0. to 1.12.0 the problems occured. I built up the .ioc file from scratch and now it works properly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-30 01:43 AM
Hello @USchm.2​
Please check those points :
- The debug done successfully without errors ? and those errors appear only in the expression window ?
----> I can solve your issue just send me a screenshot contains the error message !
- Do you use a local or global variable ?
- Also i wonder you to use live expression and tell me if the problem still exist or not ?
Best regards
Wijeden,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-30 06:22 AM
Hello Wijeden,
thanks for your quick reply. At the moment I am faced with another, probably more severe issue. I moved from stmcubeIDE 1.9.0 to 1.12.0 (upgrade didn't work). Old version was deinstalled before.
Then I set up a completely new project, assigned the right processor and nucleo board and built the project. The only addition I made were some variable declarations in main.c in order to test the beforementioned behaviour.
Builds without errors. Debugger starts, download verified successfully, but when I start the program, errors "Target is not responding, retrying" occur until shutting down.
I followed the procedure described in
and successfully performed a mass erase with cube programmer. Unfortunately, debugging still doesn't work. Please find attached a screenshot, What can I do?
Regards
Ulrich
Ihr Partner in Forschung,Entwicklung und Innovation
Prof. Dr. Ulrich Schmucker
Post edited to adhere community guidelines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-31 02:54 AM
I fixed the problem, but cannot point out the exact reason. After migrating from 1.9.0. to 1.12.0 the problems occured. I built up the .ioc file from scratch and now it works properly.