VS Arduino | |
Visual Micro >> Hardware Debugging (GDB, GDB WiFi, GDB Stub) >> Debug Interfering with Code Execution.
https://www.visualmicro.com/forums/YaBB.pl?num=1524597840 Message started by Bunzino69 on Apr 24th, 2018 at 7:24pm |
Title: Debug Interfering with Code Execution. Post by Bunzino69 on Apr 24th, 2018 at 7:24pm
I have come across an issue with Visual Micro (VM) using Visual Studio (VS) 15.5.7.
When I compile and upload my code onto an Genuine Arduino Nano 328 and I select VM "Automatic Debugging (release/debug)" my code compiles and uploads correctly but it does not do what is expected. I have set-up a PWM pin output (Pin 10) to pulse at a 10% duty cycle. The only code is as follows: void setup () { analogWrite(10,10); } void loop() { //nothing here... } As the code starts to run, I see PWM pulses appear on my oscilloscope for just a flash (1/2 second maybe?). Then it output goes flat. If I compile and upload without VM "Automatic Debugging (release/debug)" enabled the PWM output pulses hold without interruption - as expected. The above happens with our without VS debug mode enabled. I'm at a standstill on why this is happening. Seems like a bug but I'm new to VisualMicro. Any input would be appreciated. |
Title: Re: Debug Interfering with Code Execution. Post by Visual Micro on Apr 24th, 2018 at 8:36pm
Hi,
Maybe you are new to Arduino too :) Code in setup() runs ONE time. Code in the loop() runs over and over again. Code (c++):
|
VS Arduino » Powered by YaBB 2.6.12! YaBB Forum Software © 2000-2024. All Rights Reserved. |