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 Arduino project (Teensy 3.6): hardware debugger interface J-Link absent (Read 1227 times)
labblduddel
Newbies
*
Offline


Posts: 4
Joined: Nov 11th, 2020
Arduino project (Teensy 3.6): hardware debugger interface J-Link absent
Nov 12th, 2020 at 10:45am
Print Post  
I’m a newcomer in this forum and have this problem in debugging Teensy 3.6 with J-Link: 
The System itselves works fine (test project: blink led) in serial debug mode, but when I choose “Debug: Hardware“, the device list contains only “Manual/Custom” and “GDBStub”. J-Link is missing there.

Before started I did the following steps:
-      Installation of the Segger J-Link 
-      downloading and extracting Arduino 1.8.13,
-      installation of Teensyduino 1.5.3
-      installation of Visual Studio 2019 
-      integration of the”Arduino IDE for Visual Studio (Visual Micro)” with 45 day license
-      modify the Teensy 3.6 in the way described in https://mcuoneclipse.com/2017/04/29/modifying-the-teensy-3-5-and-3-6-for-arm-swd.... J-Link GDB Server V6.86 connects to the Teensy (target: MK66FX1M0xxx18) correctly via SWD-protokoll. The log file answers: “..... Connected to target, Waiting for GDB connection...”.

Did I forget anything or is the debugger hardware not integrated in the 45 day test license? How can I integrate the J-Link?

Thank you for your help!
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: Arduino project (Teensy 3.6): hardware debugger interface J-Link absent
Reply #1 - Nov 12th, 2020 at 12:05pm
Print Post  
Thanks for the report, and at present we haven't integrated the JLink into the setup for Teensy at present, due the hardware modifications needed to the Teensy board.

To integrate the JLink you would need to create a debugger.json file in the project, and add in the relevant commands for your board.

We do have a video on achieving this for other boards using the JLink, and the instructions would be very similar as you are running the JLink software as well (you may need to take the base JSON from a different board which has the JLink already):
Advanced GDB Configuration Using JLink Drivers and Software

We will update this thread when any further workarounds or information is known.
« Last Edit: Nov 12th, 2020 at 1:41pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
labblduddel
Newbies
*
Offline


Posts: 4
Joined: Nov 11th, 2020
Arduino project (Teensy 3.6): hardware debugger interface J-Link
Reply #2 - Nov 13th, 2020 at 1:53pm
Print Post  
Dear Simon,
Thank you for your prompt and helpful reply. With the modified debugger.json file JLink does connect in vMicro to Teensy 3.6 board.

But there is another problem: The ability for working with J-Link presumes removing the small Kinetis KL02Z processor, which acts as onboard interface and Bootloader between the Arduino  IDE and the main processor ARM Cortex-M4F (look at: https://mcuoneclipse.com/2017/04/29/modifying-the-teensy-3-5-and-3-6-for-arm-swd...;
The bad effect of removing this chip is making impossible uploading the program, because the USB-Port can’t work without its interface.

Is there any solution for real hardware debugging with JLink? 
Is it possible without losing the USB-Port?

Thank you for your help!
@ Simon@Visual Micro

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


Posts: 2174
Joined: Feb 13th, 2019
Re: Arduino project (Teensy 3.6): hardware debugger interface J-Link absent
Reply #3 - Nov 13th, 2020 at 1:59pm
Print Post  
Thanks for the update on the issues here...

Could you send the JSON File which has worked for your debugger so we can review the changes?

If the JLink works for debugging it should be possible to perform the upload using the JLink tools directly.

It may also be possible to get Debug + Upload working via the OpenOCD tools we use normally in vMicro, and we can send back a test file for this after reviewing your JSON.
  
Back to top
 
IP Logged
 
labblduddel
Newbies
*
Offline


Posts: 4
Joined: Nov 11th, 2020
Arduino project (Teensy 3.6): hardware debugger interface J-Link
Reply #4 - Nov 13th, 2020 at 2:46pm
Print Post  
With this JSON File Teensy 3.6 will be connected, but the logfile shows, that reading of the registers doesn't work properly.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
labblduddel
Newbies
*
Offline


Posts: 4
Joined: Nov 11th, 2020
Re: Arduino project (Teensy 3.6): hardware debugger interface J-Link absent
Reply #5 - Nov 13th, 2020 at 2:48pm
Print Post  
Here are the pictures of the J-Link GDB Server logfile...
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint