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) JLink Debugging Does Not Work (STM32F1, RogerClarke Core) (Read 1501 times)
arduino1
Junior Member
**
Offline


Posts: 75
Joined: Feb 12th, 2015
JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Oct 14th, 2020 at 2:07pm
Print Post  
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?
« Last Edit: Oct 14th, 2020 at 2:16pm 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: 2704
Joined: Feb 13th, 2019
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #1 - Oct 14th, 2020 at 2:40pm
Print Post  
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: 75
Joined: Feb 12th, 2015
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #2 - Oct 14th, 2020 at 3:01pm
Print Post  
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.
  

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


Posts: 2704
Joined: Feb 13th, 2019
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #3 - Oct 14th, 2020 at 3:24pm
Print Post  
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: 75
Joined: Feb 12th, 2015
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #4 - Oct 14th, 2020 at 3:32pm
Print Post  
Hope this helps-
  

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


Posts: 2704
Joined: Feb 13th, 2019
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #5 - Oct 14th, 2020 at 4:03pm
Print Post  
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: 75
Joined: Feb 12th, 2015
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #6 - Oct 14th, 2020 at 4:32pm
Print Post  
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: 2704
Joined: Feb 13th, 2019
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #7 - Oct 14th, 2020 at 4:38pm
Print Post  
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: 75
Joined: Feb 12th, 2015
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #8 - Oct 14th, 2020 at 4:44pm
Print Post  
I hesitate save "all" in this state- might be that the previously working code would not work again Smiley. Had bad experiences.
« Last Edit: Oct 14th, 2020 at 4:45pm by arduino1 »  

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


Posts: 2704
Joined: Feb 13th, 2019
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #9 - Oct 14th, 2020 at 5:07pm
Print Post  
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: 2704
Joined: Feb 13th, 2019
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #10 - Oct 14th, 2020 at 5:40pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
IP Logged
 
arduino1
Junior Member
**
Offline


Posts: 75
Joined: Feb 12th, 2015
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #11 - Oct 14th, 2020 at 5:35pm
Print Post  
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: 2704
Joined: Feb 13th, 2019
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #12 - Oct 14th, 2020 at 5:49pm
Print Post  
Can you confirm that when this happens, that the Serial Monitor is not Connected when performing this?
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: JLink Debugging Does Not Work (STM32F1, RogerClarke Core)
Reply #13 - Oct 26th, 2020 at 6:51pm
Print Post  
This Topic was moved here from Hardware Debugging (GDB, GDB WiFi, GDB Stub) [move by] Visual Micro.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint