Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

DAVE™ Forum Discussions

oreste
Employee
Employee
Hi all,
here I would like to post a thread on GDB and Dave.
In fact Dave installer include the full Segger debugger support including GDB server.
Eclipse updatesite include GDB plugin that can works with GDB server.
This GDB plugin have some limitation compared to Tasking debugger plugin:

  • No reset button (it is possible to send a command in the console directly to segger gdb)
  • Memory view have a issue. It is read a little more date before and after the shown range. If the range is near the border of memory, gdb plugin tries to fetch data from invalid address and nothing is shown.
  • No CPU register view.

Below the step to install it

Step 0 Launch J-Link GDB Server via SWD
Connect j-link debugger to powered target and then execute
J-Link GDB Server via SWD
You can find it in your start menu in folder Segger.In folder Manuals you can find the manual of GDB server with description of all available commands.

Step 1 Uninstall Tasking debugger

Taskiing debugger interfere with GUI of GDB Hardware debugger. You shall uninstall it.
Help --> About Dave3 --> Installation Details.
Select Tasking Debugger for Dave3 and press Uninstall.

Step 2 Install gdb
Help--> install new software: Go to indigo update site and install GDB hardware plugin.
46.attach

Step 3 Remove filter on GDB debugger..
By default the GDB debugger option is filter we shall enable it:
Window --> Preference --> Run/Debug --> Launching --> Launch Configuration.
Disable filtering of GDB Hardware Debugging
41.attach

Step 4: Add GDB debugger configuration to the project.


Select Project context menu --> Debug as --> Debug Configuration --> GDB Hardware debugging --> Right click and select new.


Step 5: Configure launcher.
Select Standard GDB Hardware Debuggin Launcher by pressing "select other" see previous picture.

43.attach

Step 6: Configure Debugger tab
Configure as shown in the below picture the debugger tab.
44.attach

This forum allows me only to add 5 pictures.
Continue on next post in the same thread.
0 Likes
5 Replies
oreste
Employee
Employee
Continuing from the previous post.

Step 7: Configure the startup tab

45.attach


Setting in text format for easy copy and paste:

monitor flash device = XMC4500
monitor flash download = 1
monitor flash breakpoints = 1
monitor speed auto



Press debug and it enjoy.

CREDITS:
http://www.emb4fun.de/arm/eclipse/index.html

Best Regards
Oreste
0 Likes
User3847
Level 3
Level 3
Thank you!

Just trying it and it works great! Tasking was crashing a lot, specially when checking previous steps in the call stack, this goes faster and is more stable for now 🙂
0 Likes
Not applicable
Hi Oreste,

I got problem when trying to follow the step,
I have no idea hoe to fix it.


62.attach
Regards,
Ali
0 Likes
oreste
Employee
Employee
AliAkbar wrote:
Hi Oreste,

I got problem when trying to follow the step,
I have no idea hoe to fix it.


62.attach
Regards,
Ali

Sorry too low resolution. Could you attach at full resolution ?
Regards
Oreste
0 Likes
Not applicable
Hi,

The problem is already fixed,
Just need to restart it 😄
thanks
0 Likes