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 Serial Monitor Issue with nrf51822 + STLink Hardware Debuging? (Read 1508 times)
entretoize1
Junior Member
**
Offline


Posts: 20
Joined: Dec 4th, 2020
Serial Monitor Issue with nrf51822 + STLink Hardware Debuging?
Dec 13th, 2020 at 4:34pm
Print Post  
On, think where am I supposed to see serial log, for example when I use
Code
Select All
Serial.println("something"); 

?
I don't see it in the port monitor and the only option about a "serial monitor" is "Auto open serial monitor" in the debugger menu, but that doesn't change anything...
« Last Edit: Dec 14th, 2020 at 1:00pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: Can I debug nrf51822 through STLink ?
Reply #1 - Dec 14th, 2020 at 9:59am
Print Post  
The Serial Output can be seen in the Serial Monitor Window, which is documented on the below page:
https://www.visualmicro.com/page/User-Guide.aspx?doc=Serial-Monitor.html
« Last Edit: Dec 15th, 2020 at 9:40am by Simon@Visual Micro »  
Back to top
 
IP Logged
 
entretoize1
Junior Member
**
Offline


Posts: 20
Joined: Dec 4th, 2020
Re: Can I debug nrf51822 through STLink ?
Reply #2 - Dec 14th, 2020 at 12:29pm
Print Post  
Ok, then serial window doesn't show anything more than:

Code
Select All
Opening port
Port open 



I have configured the same baud rate in the window and with
Code
Select All
Serial.begin 



Also about debugging, can I know why variable values are set to "optimzed out" while I have checked "No project + library optimization" (also tried "no optimization") ?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: Serial Monitor Issue with nrf51822 + STLink Hardware Debuging?
Reply #3 - Dec 14th, 2020 at 1:13pm
Print Post  
Does the Serial work with the debugging disabled?
  
Back to top
 
IP Logged
 
entretoize1
Junior Member
**
Offline


Posts: 20
Joined: Dec 4th, 2020
Re: Serial Monitor Issue with nrf51822 + STLink Hardware Debuging?
Reply #4 - Dec 15th, 2020 at 7:23am
Print Post  
No it doesn't work at all. What about "optimzed out", if the serial output doesn't work I need to see the variable values while debugging ?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: Serial Monitor Issue with nrf51822 + STLink Hardware Debuging?
Reply #5 - Dec 15th, 2020 at 9:39am
Print Post  
Thanks for confirming, The Optimization question has been split to this thread

Have you toggled the DTR/RTS buttons on the Serial Monitor?
Does the Serial Monitor work in another program (e.g. Arduino IDE) for this board?
« Last Edit: Dec 15th, 2020 at 10:51am by Simon@Visual Micro »  
Back to top
 
IP Logged
 
entretoize1
Junior Member
**
Offline


Posts: 20
Joined: Dec 4th, 2020
Re: Serial Monitor Issue with nrf51822 + STLink Hardware Debuging?
Reply #6 - Dec 15th, 2020 at 1:55pm
Print Post  
Yes I tried to toggle everything, I never user serial monitor in Arduino before, but it doesn't seem to work better.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint