Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic What hardware debugger in 2022 ? (Read 987 times)
yet-another-average-joe
Junior Member
**
Offline


Posts: 27
Joined: Jul 27th, 2019
What hardware debugger in 2022 ?
Feb 8th, 2022 at 6:34pm
Print Post  
Hi,
I was about to purchase a Black Magic Probe, but unfortunately it is now unavailable (sold out) in Europe. Shortage ?

What alternative ?

I failed at modifying a STlink clone. Thin traces -> short circuit. No microscope and shaking too much (coffee head)

Even Setphen Hawes (see YouTube) gave up at building one, as he said in a recent video (for software reasons, not because of some lack of skills).

What should I get for occasional use ?
Most projects are for the STM32F103, some for the Atmega 326 (Pro Mini / Nano).

Thanks by advance.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Re: What hardware debugger in 2022 ?
Reply #1 - Feb 8th, 2022 at 7:26pm
Print Post  
For the Arduino Pro Mini/Nano you may be able to use the GDBStub software which requires no external probe, and no modification of the fuse bits (DWEN):
https://www.visualmicro.com/page/AVR-Debugging.aspx
(Which uses this library: https://github.com/jdolinay/avr_debug)

For the STM Boards, you can actually make a Black Magic Probe from a BluePill board, which is explained in the below video/tutorial:
Video: https://www.youtube.com/watch?v=cszbvPZ43kE
ProjectHub Tutorial: https://create.arduino.cc/projecthub/visualmicro/arduino-nano-33-ble-custom-debu...

Or of course an STLink/JLink/DAPLink probe (STLinks are also built onto development boards, they can be used to work on external boards):
https://www.visualmicro.com/page/STM32-Debugging.aspx
  
Back to top
IP Logged
 
yet-another-average-joe
Junior Member
**
Offline


Posts: 27
Joined: Jul 27th, 2019
Re: What hardware debugger in 2022 ?
Reply #2 - Feb 9th, 2022 at 3:17am
Print Post  
Thanks again !

This time, I succeded at creating a BMP from a BluePill. Took 2 hours for a stupid reason.
In the Windows ST-Link Utility "Target/Program..." dialog, when returning from the FileOpen dialog, the start address is reset to 0x08000000 and I didn't notice ! Why the hell did the devs decide to reset the first field when returning from the child dialog ??? Huge GUI bug. Reason why I failed a couple months ago. (Yes I know, command line utility, etc.  Smiley )

No idea why this dialog behaves this way. But the Windows API does not do that by default. The guy that coded the utility decided to do it.

Being lazy, I got the binaries from this website : https://jeelabs.org/202x/bmp/

Now have two new devices in the Device Manager. Todo : route/etch a PCB and print an enclosure.

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint