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 Portenta H7M7 - No JLink selection in dropdown (Read 1644 times)
Sid Price
Junior Member
**
Offline


Posts: 54
Location: Tijeras
Joined: Jun 28th, 2021
Arduino Portenta H7M7 - No JLink selection in dropdown
Aug 21st, 2021 at 12:10am
Print Post  
I am trying to get my JLink-Ultra working with VM, I have tested the JLink GDB server and it connects to my target (Portenta H7/M7) just fine. Also, I watched the YouTube videos, however, my VM does not show JLink as an option for hardware debugging.

My preference is to keep the Segger driver and use the GDB server.

Advice most welcome,
Sid
« Last Edit: Aug 31st, 2021 at 8:44am by Simon@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: No JLink selection in dropdown
Reply #1 - Aug 24th, 2021 at 9:10am
Print Post  
Thanks for the report.

Can you confirm the GDB Commands, and JLink settings you have used so far, so we can be sure we integrate the same settings for this board/core?

It can be integrated using the Manual/Custom option before we add the menu option, more information on that can be found here: 
https://www.visualmicro.com/page/Debugging-Using-Custom-Hardware.aspx
  
Back to top
 
IP Logged
 
Sid Price
Junior Member
**
Offline


Posts: 54
Location: Tijeras
Joined: Jun 28th, 2021
Re: No JLink selection in dropdown
Reply #2 - Aug 24th, 2021 at 3:37pm
Print Post  
Hi Simon,
I have created the launch.json file using the link you gave as a guide. This is what I have:
Code
Select All
{
  // Modifications for using Segger JLink Software instead of OpenOCD with vMicro
  "serverLaunchTimeout": 5000,
  "filterStdout": false,
  "filterStderr": true,
  "targetArchitecture": "arm",
  "stopAtEntry": false,
  "externalConsole": false,
  "MIMode": "gdb",
  // NOTE - The GDBServer address default is 2331 for Segger
  "MIDebuggerServerAddress": "localhost:2331",
  "cwd": \\Debug",
  "MIDebuggerPath": "C:\\gcc_arm\\bin\\arm-none-eabi-gdb.exe",
  "MIDebuggerArgs": "",
  // NOTE - Your path may differ for your Segger Software Installation
  "debugServerPath": "C:\\Program Files\\SEGGER\\JLink\\JLinkGDBServer.exe",
  // NOTE - Ensure the right -device is specified - check tool setup by running the above tool in Windows
  "debugServerArgs": " -select USB -device STM32H747XI_M7 -endian little -if SWD -speed auto -noir -LocalhostOnly",
  "program": \\Debug\\Visual_Micro_test_1.ino.elf",
  "logging": {
    "moduleLoad": false,
    "trace": false,
    "engineLogging": false,
    "programOutput": false,
    "exceptions": false,
    "traceResponse": false
  }
}
 



I still do no see a menu op0tion to use this Debug configuration. I restarted VS2019, but that did not help.
Sid
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: No JLink selection in dropdown
Reply #3 - Aug 24th, 2021 at 3:54pm
Print Post  
Thanks for the update and JSON file.

Once you have configured the launch.json in your project, setting the Hardware Debugger to "Manual/Custom" will use this configuration.

I'll update when we have more news on the integration of this into a new menu option.
  
Back to top
 
IP Logged
 
Sid Price
Junior Member
**
Offline


Posts: 54
Location: Tijeras
Joined: Jun 28th, 2021
Re: No JLink selection in dropdown
Reply #4 - Aug 24th, 2021 at 5:28pm
Print Post  
Thank you, it is kind of working. A couple of points:

  • When using the "run" command the code is not flashed using the GDB Server, it still requires the board to be placed into bootloader mode manually.
  • The "Attach to Process command does not set breakpoints in the code.


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