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 [2]  Send TopicPrint
Hot Topic (More than 8 Replies) Serial debug. (Read 2133 times)
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2728
Joined: Feb 13th, 2019
Re: Serial debug.
Reply #20 - Nov 28th, 2024 at 9:24am
Print Post  
Agreed, we will continue to debug the debugger to find out why the printf() throws it all out...

You should get an email for updates on topics you have posted, and for others you are interested in you can click the "Add Topic Notification" button at the top of the thread.

Can you see any notification emails in your Spam/Junk folder?
  
Back to top
IP Logged
 
MikeM
Junior Member
**
Offline


Posts: 17
Location: Swindon
Joined: Nov 6th, 2024
Re: Serial debug.
Reply #21 - Nov 28th, 2024 at 10:27am
Print Post  
Hmm .....
I use Outlook as a client - nothing there & 
just checked gmail and no sign of any notifications there either??


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


Posts: 2728
Joined: Feb 13th, 2019
Re: Serial debug.
Reply #22 - Nov 29th, 2024 at 2:32pm
Print Post  
We'll try and investigate why you aren't receiving the notifications (it's definitely enabled in your profile).

Regarding the root issue with printf() and the Serial Debugger, it seems that there need to be additional linker flags added if printf() is needed in a sketch for the Mega (which can be seen in the stdio.h files' comments for vfprintf()).  I still don't fully understand why this causes the issue with Serial debugger (which only uses standard Serial.print/read/write methods), however with the additional flags it all appears to run without issue (suggesting printf() is the root cause).

If you add a Local board.txt to your project (vMicro > Add Code > Add Local Board.txt) and paste in the contents of the attached file and save it.  Then rebuild and upload the project with the Serial Debugger enabled, and the {nrf=?} breakpoint set, it should now run without crashing.
  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
MikeM
Junior Member
**
Offline


Posts: 17
Location: Swindon
Joined: Nov 6th, 2024
Re: Serial debug.
Reply #23 - Nov 29th, 2024 at 8:53pm
Print Post  
thank you for the fix, I will give it a try and advise you.

re the email notification, after your response below I used the "Add Topic Notification" button & I received an email advising me of your latest response. That worked.

I have now removed manual "Topic Notification".
  
Back to top
 
IP Logged
 
MikeM
Junior Member
**
Offline


Posts: 17
Location: Swindon
Joined: Nov 6th, 2024
Re: Serial debug.
Reply #24 - Nov 29th, 2024 at 9:27pm
Print Post  
I have followed your instructions re the printf problem & I'm afraid it still crashes.
I have checked and the code is there.
I have even stopped and restarted Visual Studio and then rechecked your text is present, rebuilt & downloaded, but it still crashes.
At this stage I am happy to remove the printf statement & leave it to you.
Thank you.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint