Cube IDE Debugging -- Proper Sequence?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-01-30 06:30 AM
Hi -- just wondering if anyone has tried importing a project generated by the Designer to the Cube IDE, and then had any success running it using the GDB debugger on either a 746 or 769 Discovery board? Everything seems to build fine in Designer and IDE, and the projects can run on the target board directly from Designer, but I can't get the IDE debugger to work after importing them. On the 746 Disco board, I get this message, right as the switch is being made from flash to debug mode:
----
Download verified successfully
(Read)Failed determine breakpoint type
Error! Failed to read target status
Debugger connection lost.
Shutting down...
----
On the 769 disco board, I don't even get that far. There is a popup saying "Error in final launch sequence. Failed to execute MI command"...
Pictures of the screens are attached.
Maybe I misunderstand what is supposed to happen between the Designer build phase and the IDE debugging phase? I thought IDE is supposed to import the GFX generated project, create the hex code, and all is good, no? If anyone knows how to get to this stage, please share details. Thanks to all. **Cube IDE 1.2 GFX 4.13, all templates version 3**
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-07 02:16 PM
Thanks for the answer, in fact I saw an answer by @Martin KJELDSEN​ in this thread. He experienced the same issues and I quote him : "I have a fix for this CubeIDE debugger issue. I just forgot to upload a new template - Will get on it ASAP!".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-07 04:40 PM
For now, manually add the startup code (.s) file to your project for linking. The issue is that Eclipse based IDEs somehow define a weak symbol for the reset handler (in the .s file), but the .s file is not in the Application Template.
/Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-08 12:40 AM
Before i finalize this and upload it, i just want to make sure it's working for you as well in CubeIDE (Version will be bumped to 3.0.1).
Unzip the file and find a .tpa, template file inside. Overwrite your existing .tpa file at %APPDATA%/TouchGFX-4.13.0\STM32F746G_DISCO\3.0.0.
Make sure to define an external flashloader for the external flash on the F746G-DISCO in the CubeIDE debugger settings.
/Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-08 01:01 AM
Thanks a lot, this works well !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-08 01:02 AM
The TouchGFX project generation works but I can't import it in CubeIDE.
There is no error message but the project doesn't show up in the project explorer
edit: I already had a projet with the default name ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-08 01:22 AM
That's great! I added the .s file for gcc to the AT - It's in the top of this post. You could try that out and get back to me and i'll be sure to upload it.
/Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-08 01:41 AM
I generated a project with TouchGFX with the replaced .tpa template (%APPDATA%/TouchGFX-4.13.0\STM32F746G_DISCO\3.0.0 did not exist, it was under %APPDATA%/TouchGFX-4.13.0Downloads\STM32F746G_DISCO\3.0.0).
Everything compiles fine but I still get the same error :
Download verified successfully
(Read)Failed determine breakpoint type
Error! Failed to read target status
Debugger connection lost.
Shutting down...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-08 06:58 AM
Can you please check that:
- The startup-code (.s) file is a part of the project
- An external flash loader is configured
/Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-08 11:19 AM
Hi @Martin KJELDSEN​ ,
- I can't see the startup-code anywhere in the project explorer
- Yes, I did configure the external loader but it doesn't change anything
Thanks for your help,
Augustin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-08 11:21 AM
The culprit is that there's no .s file being linked from the project. I'll double check tomorrow because i can see it here on my end now. Thanks for testing!
/Martin