Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Using JTAG Programmer (Read 111 times)
Al
Junior Member
**
Offline



Posts: 7
Florida
Re: Using JTAG Programmer
Reply #7 - Jan 15th, 2018 at 10:45pm
 
.
I had trouble following the 3rd Party Config doc because there is an error in the path for the OpenOCD folder.  When I look in my install path (3vu3tp0o.aov) I see this:
...

The 3rd Party Config Guide shows the OpenOCD path as: "visual micro install path\default\tools\openOCD".  Notice there is no default folder in the install folder.  After clicking around I determined that there is an OpenOCD folder at ...\Micro Platforms\default\tools\openocd-0.9.0.  So this is the error that needs fixing. 

BTW, I had *many* install folders as it seems every time a reinstall is done the old folder is left behind.  I cleaned everything up and did a clean install.

OK... so I see there are cfg files in the scripts folder for boards, chips, cpus. I can't find any *.tcl files for the NXP Kinetis line and no *.cfg file for the KDx family (at least KD20 and KD22)?  Are these available somewhere?

In the interfaces section for j-link there is only a link to the Segger site for j-link and comments. Is all I need to do is specify the serial number (with leading zeros) in the cfg file?  I am also going to use USB-Blaster and I see all that is needed is the VID/PID which I assume is going to be different for Altera's and the clones, correct?

I tried a build of the Zero as you suggested and can see all that is going on.  That is a good suggestion.  It won't compile, however, as  core_cm0plus.h is missing.  I will have to hunt that down.

Thanks for bearing with me on all of this but hopefully my questions are also those others may have and they will be help as well.  This stuff is a bit confusing! Thanks

Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 8184
United Kingdom
Re: Using JTAG Programmer
Reply #6 - Jan 15th, 2018 at 7:04pm
 
You can probably try various settings using a local board.txt in the project. This avoids having to change boards.txt and platform.txt then reload toolchains.

There is a doc here.There are a lot of openOCD cfg files installed with the OpenOCD that is installed with visual micro. You can also hard code your own paths.

http://www.visualmicro.com/post/2016/01/17/3rd-Party-Hardware-GDB-Configuration-...

The vmicro>compiler menu allows you to switch on showing all build properties. That gives you access to all known build {variable} names.

Switching to arduino zero board and attempting compile will show a build properties for a valid gdb debug.


Back to top
« Last Edit: Jan 15th, 2018 at 7:08pm by Visual Micro »  
WWW  
IP Logged
 
Al
Junior Member
**
Offline



Posts: 7
Florida
Re: Using JTAG Programmer
Reply #5 - Jan 14th, 2018 at 3:38pm
 
Sorry for replying to my own post so many times!!  I am continuing to try to figure out this stuff and keep finding more things.

We have several Altera (or clone) USB-Blasters.  These should work assuming I correctly set up the config for it, right?

On setting up the configuration, I have been pouring over the VM User's manual, various forum posts, and Google in general but I haven't been able to find detailed instruction on how to do it.  Is there a link for detailed instructions on how to do it, e.g. boards.txt/platforms.txt file changes, *.cfg files, drivers, etc.?

Thanks!

Back to top
 
 
IP Logged
 
Al
Junior Member
**
Offline



Posts: 7
Florida
Re: Using JTAG Programmer
Reply #4 - Jan 14th, 2018 at 1:52pm
 
I should have included this information on the P&E GDB server: 

http://www.pemicro.com/products/product_viewDetails.cfm?product_id=15320151&prod...

Back to top
 
 
IP Logged
 
Al
Junior Member
**
Offline



Posts: 7
Florida
Re: Using JTAG Programmer
Reply #3 - Jan 14th, 2018 at 1:46pm
 
I just found the GDB debugging forum... sorry for posting in the wrong place.  Please move this thread to that forum if you feel it is appropriate.

I have ordered an Arduino Zero (the "genuine" one from Arduino.cc) and plan to use that to learn GDB debugging in VM.  I can do that without the need to use a "debug probe".

One question I have is whether VM GDB debugging will work with Visual Studio 2015 or do I need to upgrade to VS2017? I have not upgraded to VS2017 due to the (incompatible) change in project format.

Also, will this probe from P&E Micro work with VM for the ARM processors?

http://www.pemicro.com/products/product_viewDetails.cfm?product_id=15320168&prod...


BTW, I think VM is terrific and have been using the Pro version for all of my development for some time now.  Nice work!
Back to top
 
 
IP Logged
 
Al
Junior Member
**
Offline



Posts: 7
Florida
Re: Using JTAG Programmer
Reply #2 - Jan 14th, 2018 at 4:45am
 
I've installed Visual Micro GDB and am proceeding to set up to do my development including debugging of the Kinetis MK20DX processors this way. 

My boards have a JTAG/SWD interface on them that I use to upload hex files with using a standlaone programmer.  I want to get a programmer/debugger unit to connect between my Windows PC  and the target board that is compatible with Visual Micro/GDB (with OpenOCD?).

Can anyone give me some suggestions on what pgm'er/debugger to get that would work in my situation?.  I am happy to support only the MK2x series but a general ARM solution would be even better.

Thanks!

Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 8184
United Kingdom
Re: Using JTAG Programmer
Reply #1 - Jan 5th, 2018 at 9:43pm
 
There is a GDB option for visual micro but it's beta and I am not sure how easy it will be to make it work.
Back to top
 
WWW  
IP Logged
 
Al
Junior Member
**
Offline



Posts: 7
Florida
Using JTAG Programmer
Jan 2nd, 2018 at 10:55pm
 
I have an Elprotronic FlashPro-ARM JTAG/SWD programmer for programming Kinetis MCUs (as used in Teensy 3.x boards) in a manufacturing product tester.  I would like to use the same programmer during development with Visual Micro.

Is this possible?

I have a command line utility (in C#) that can be executed to do the upload and a JTAG connector on the target board.  There is also a API/DLL available for the programmer.


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