Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
JLink Debugging Does Not Work (STM32F1, RogerClarke Core) (Read 137 times)
arduino1
Junior Member
**
Offline



Posts: 73
JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Oct 14th, 2020 at 3:07pm
 
With Jlink+OCD Debugger the core shown previously works.
Changing to this core to Maple core (?) (see image) it does not work. It cycles through some USB stuff (sse image).
How to fix that?
Back to top
« Last Edit: Oct 14th, 2020 at 3:16pm by Simon@Visual Micro »  

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



Posts: 465
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #1 - Oct 14th, 2020 at 3:40pm
 
Please attach the build log as shown in the yellow box at the top so we can be 100% sure on the core in use.

What actions lead to the code above being shown? (from Arduino_STM32\STM32F1\cores\maple\libmaple\usb\stm32f1\usb_cdcacm.c by the looks of it)

e.g. Start Debugging, Step Into functionx(), etc....  and if any specific project code is needed please let us know.
Back to top
 
 
IP Logged
 
arduino1
Junior Member
**
Offline



Posts: 73
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #2 - Oct 14th, 2020 at 4:01pm
 
Quote:
build log as shown in the yellow box at the top

Don't know exactly what this means. You are asking this quite often (also in other posts).
A yellow box is at the bottom...
Do you mean that?

Start Debugging -nothing more- just leads to break at the green arrow.
Back to top
 

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



Posts: 465
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #3 - Oct 14th, 2020 at 4:24pm
 
We are referencing the box at the top of all forum pages:-
...

This is so we can understand your environment, and any error messages in detail before investigating or asking further questions to understand the problem.  Without this information it can be very difficult to investigate or assist accurately, which is why we ask for this in virtually all cases.
Back to top
 
 
IP Logged
 
arduino1
Junior Member
**
Offline



Posts: 73
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #4 - Oct 14th, 2020 at 4:32pm
 
Hope this helps-
Back to top
 

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



Posts: 465
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #5 - Oct 14th, 2020 at 5:03pm
 
Thanks for the information.

What happens once you press continue from this point in the USBInit() code?
Back to top
 
 
IP Logged
 
arduino1
Junior Member
**
Offline



Posts: 73
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #6 - Oct 14th, 2020 at 5:32pm
 
It just comes back to the same line. No breakpoint hit in the sketch.
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 465
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #7 - Oct 14th, 2020 at 5:38pm
 
Would it be possible to send your sketch to us so we can investigate further?
Back to top
 
 
IP Logged
 
arduino1
Junior Member
**
Offline



Posts: 73
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #8 - Oct 14th, 2020 at 5:44pm
 
I hesitate save "all" in this state- might be that the previously working code would not work again Smiley. Had bad experiences.
Back to top
« Last Edit: Oct 14th, 2020 at 5:45pm by arduino1 »  

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



Posts: 465
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #9 - Oct 14th, 2020 at 6:07pm
 
Thanks, can you confirm what bootloader you are running on your board?

(When testing earlier I never entered the code shown, even following the same actions, on the same core, with a virtually identical sketch)

At present all I can see is that the code being entered (USBInit) is part of the Virtual COM Port USB Code for the STM32.

Which is either being hit due to Serial Usage, or potentially the DFU Bootloader still running (which could be a timing issue, though expect the same from all debuggers in this case).
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 465
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #10 - Oct 14th, 2020 at 6:40pm
 
Off-Topic replies have been moved to this Topic.
Back to top
 
 
IP Logged
 
arduino1
Junior Member
**
Offline



Posts: 73
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #11 - Oct 14th, 2020 at 6:35pm
 
Are you looking at it? The OpenOCD like GDB are a mystery to me.
Back to top
 
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 465
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #12 - Oct 14th, 2020 at 6:49pm
 
Can you confirm that when this happens, that the Serial Monitor is not Connected when performing this?
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print