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 Jeff Probe (Read 2010 times)
Quigon
Junior Member
**
Offline


Posts: 16
Joined: Aug 22nd, 2020
Jeff Probe
Nov 11th, 2020 at 9:58pm
Print Post  
I recently acquired one of these cheap Black Magic Probe clones. Has anyone made it work with VM/VS?

It appears to install ok both in Windows and VM. When I attach to process I get this:

=thread-group-added,id="i1"
GNU gdb (GNU Tools for ARM Embedded Processors) 7.6.0.20140228-cvs
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Remote debugging using \\.\COM4
@"Target voltage: 3.3V\n"
@"SW-DP scan failed!\n"
=cmd-param-changed,param="mem inaccessible-by-default",value="off"
Attaching to Remote target
=cmd-param-changed,param="pagination",value="off"
The program '' has exited with code 42 (0x2a).


Any ideas or was it too cheap?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: Jeff Probe
Reply #1 - Nov 11th, 2020 at 10:10pm
Print Post  
We would expect it to work, as we have had BMP Firmware running on other hardware (STM32/ESP8266) and used it without issue in vMicro.

The message in the output @"SW-DP scan failed!\n" suggests there is a wiring issue between your debugger and target board for the SWD wires.

Could you attach a build log with the verbose and show build properties options selected as shown at the top of this page? 
(just so we have as much information as possible about the environment)
  
Back to top
 
IP Logged
 
Quigon
Junior Member
**
Offline


Posts: 16
Joined: Aug 22nd, 2020
Re: Jeff Probe
Reply #2 - Nov 11th, 2020 at 11:21pm
Print Post  
Thanks
Sent it by email
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: Jeff Probe
Reply #3 - Nov 12th, 2020 at 12:17pm
Print Post  
Thanks for the log, I have a DUE setup with the BMP (Official) and it all works as expected.

I get the same Debug log output as you had previously if I disconnect the BMP from the DUE completely, so still suggest there is a hardware wiring issue between the debugger and target.

Are you sure the ribbon cable is connected to all pins on each end, and the polarity is correct? (there are some images on the below page showing this more clearly)
https://www.visualmicro.com/page/SAM-Debugging.aspx
  
Back to top
 
IP Logged
 
Quigon
Junior Member
**
Offline


Posts: 16
Joined: Aug 22nd, 2020
Re: Jeff Probe
Reply #4 - Nov 12th, 2020 at 6:21pm
Print Post  
Ok thanks for the update. 
The ribbon cable is connected correctly at both ends so I'll check each individual connections
  
Back to top
 
IP Logged
 
Quigon
Junior Member
**
Offline


Posts: 16
Joined: Aug 22nd, 2020
Re: Jeff Probe
Reply #5 - Nov 12th, 2020 at 9:42pm
Print Post  
Update:
It works fine when you align pin 1 on the ribbon cable with pin 1 on the Due. It required tuning the plug around and folding the ribbon back over the plug to exit under the shield. The plug is 180 degrees rotated from the photo  in the link posted.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: Jeff Probe
Reply #6 - Nov 13th, 2020 at 10:52am
Print Post  
Thanks for the confirmation.  It can depend on the ribbon cable itself, as some have headers mounted differently on the ends.....
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint