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
Hot Topic (More than 8 Replies) Unable to debug with JLINK. VS parameters problems ??? (Read 2437 times)
gilles@icocube
Newbies
*
Offline


Posts: 7
Joined: Oct 2nd, 2023
Unable to debug with JLINK. VS parameters problems ???
Oct 2nd, 2023 at 3:44pm
Print Post  
I can use the JLINK to upload application. When I start application  compile and upload is OK, but after it switch to build log and have a message 

1>------ Déploiement ignoré : Projet : testHello, Configuration : Debug x64 ------
1>Projet non sélectionné dans le cadre d'une génération pour cette configuration de solution 
========== Déploiement : 0 réussis, 0 échoués, 1 ignorés ==========

with  an alert window " unable to start the debugger check debugger parameters".

When I check the debugger parameters the option available is only to use remote GDB on remote computer. 

in your documentation, you say Ensure you have the Debug Configuration selected from the Configuration Manager Window. If it's not OK what can we do?
  

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


Posts: 2695
Joined: Feb 13th, 2019
Re: Unable to debug with JLINK. VS parameters problems ???
Reply #1 - Oct 2nd, 2023 at 4:19pm
Print Post  
Thanks for the report.

Do you see any output in the Output > Debug window in VS when this happens?

Can you attach an image of the error message so we can see the exact text shown?

Also please update to the very latest version of Visual Micro from our Downloads Page (below), as this will enable some additional logging to the build folder to help understand the root cause of the issue.
https://www.visualmicro.com/page/Arduino-Visual-Studio-Downloads.aspx

Once updated, if you re-attempt the Debug > Attach to process, there should be two additional files in the build folder, which will help us to understand more about the issue:
testHello.ino_DebugOpenOCD.log
testHello.ino_DebugGDB.log
  
Back to top
IP Logged
 
gilles@icocube
Newbies
*
Offline


Posts: 7
Joined: Oct 2nd, 2023
Re: Unable to debug with JLINK. VS parameters problems ???
Reply #2 - Oct 2nd, 2023 at 7:20pm
Print Post  
I have 2 projects with the same problem, one is solved with the new version, the other not. The both projects are exactly identical. 

I cannot find the build directory in the project but I send you a screenshot with the error, log of microbuild and a zip of the full project.
  

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


Posts: 7
Joined: Oct 2nd, 2023
Re: Unable to debug with JLINK. VS parameters problems ???
Reply #3 - Oct 2nd, 2023 at 7:28pm
Print Post  
Sorry I forget to load screenshot et microbuild log. I dont have any debugger log in the output.
  

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


Posts: 2695
Joined: Feb 13th, 2019
Re: Unable to debug with JLINK. VS parameters problems ???
Reply #4 - Oct 3rd, 2023 at 2:11pm
Print Post  
Thanks for the detail around this.

Please install the latest version (23.0915.02) available from the top of the below board, this should resolve the issue:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
gilles@icocube
Newbies
*
Offline


Posts: 7
Joined: Oct 2nd, 2023
Re: Unable to debug with JLINK. VS parameters problems ???
Reply #5 - Oct 3rd, 2023 at 2:18pm
Print Post  
When I select remote GDB by error, there is no way to go back to the previous status (I did not find it).

I created a new project named test0310, setting the board and debugger options. 
When I start the project, the J-Link is not found. 
However, when I copy the 'board.txt' file with the correct information from another project, the project test0310 is working fine.

I'm sending you all the outputs and screenshots for the new project, my first attempt, and the second attempt with the 'board.txt'.
  

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


Posts: 2695
Joined: Feb 13th, 2019
Re: Unable to debug with JLINK. VS parameters problems ???
Reply #6 - Oct 3rd, 2023 at 2:33pm
Print Post  
Thanks for the update.

Quote:
When I select remote GDB by error, there is no way to go back to the previous status (I did not find it).

The latest version should correct the issue with the wrong debugger starting, even if it is accidentally changed in the Project Properties.  This will not be visible in the Project Properties UI (it will still show "Remote GDB Debugger").

The per-project board.txt information is currently required for this board to work as expected, as you have from your other project/documentation page:
https://www.visualmicro.com/page/ESP32S2S3-Debugging.aspx

We will update when we remove the need for the board.txt overrides in each project, and update the documentation accordingly.
  
Back to top
IP Logged
 
gilles@icocube
Newbies
*
Offline


Posts: 7
Joined: Oct 2nd, 2023
Re: Unable to debug with JLINK. VS parameters problems ???
Reply #7 - Oct 3rd, 2023 at 3:23pm
Print Post  
I just tested your new version, Visual.Micro.Arduino.Studio_2023_0915_2202.vsix. 

However, I still can't launch the debugger. the difference is now I have on start label "demarrage" (start)

I'm sending you all the outputs and screenshots
  

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


Posts: 2695
Joined: Feb 13th, 2019
Re: Unable to debug with JLINK. VS parameters problems ???
Reply #8 - Oct 3rd, 2023 at 3:52pm
Print Post  
If you try launching the debugger from Debug > Attach to Process, then after that fails, close the solution and open it again, the debugger should work as expected.

If for some reason this does not work, you can close the solution, and edit the helloworld.vcxproj.user file in notepad, and remove the <DebuggerFlavor>LinuxDebugger</DebuggerFlavor> elements, then save it and reopen the solution in VS.
  
Back to top
IP Logged
 
gilles@icocube
Newbies
*
Offline


Posts: 7
Joined: Oct 2nd, 2023
Re: Unable to debug with JLINK. VS parameters problems ???
Reply #9 - Oct 3rd, 2023 at 4:10pm
Print Post  
I followed your recommendation: I tried launching the debugger from 'debug>attach to process,' but it failed. I exited VS2022, started the project again, and now it's working.

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