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) Visual Studio crash (Read 1729 times)
Livio
Junior Member
**
Offline


Posts: 55
Location: Italy
Joined: Jan 10th, 2018
Visual Studio crash
Feb 7th, 2021 at 5:19pm
Print Post  
Hi 
I am still trying this environment with the board MKRWiFi1010 with a PC - Windows10 Pro.
I have an example from Arduino IDE, EthernetHTTPS.
Now I try to upload with the USB port.
After compiling without errors the program is uploaded, without errors, through COM20.
At the end of the upload the serial monitor is open automatically on COM20, but, I don't know why, when this board is uploaded the COM port change to COM15.
If I press ENTER inside the window of the Serial Monitor of Visual Studio crash, all disappear from the screen.

If I disable the auto-open of Serial Monitor I can upload through COM20, then switch to COM15 and open the Serial Monitor, when I press ENTER inside this window ... crash again.

If, after upload, I open a different monitor, TaraTerm ... No problem, I can see messages from the board.

  

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


Posts: 2175
Joined: Feb 13th, 2019
Re: Visual Studio crash
Reply #1 - Feb 8th, 2021 at 7:11pm
Print Post  
Thanks for the report.

Can you attach the full build, and upload output with the verbose options shown at the top of the page?

Can you also confirm which port works in TeraTerm?
(The port it switches to during the upload process is only for uploading functionality)

We will investigate the crash in this scenario, but the root cause is the port not being connected to the board when entering data into the Serial Monitor window.
  
Back to top
 
IP Logged
 
Livio
Junior Member
**
Offline


Posts: 55
Location: Italy
Joined: Jan 10th, 2018
Re: Visual Studio crash
Reply #2 - Feb 9th, 2021 at 7:05am
Print Post  
Here is the file.
After saved this file I switch the COM, because COM20 is no more available, now is COM15.
I open the Serial Monitor.
I press ENTER inside the Serial Monitor and Visual Studio crash.

If I use TaraTerm I must open COM15, is the only COM available.

I notice that the board MKRWiFi1010, when the bootloader is running, I see on COM20, when start the sketch change in COM15.
« Last Edit: Feb 9th, 2021 at 7:10am by Livio »  

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


Posts: 2175
Joined: Feb 13th, 2019
Re: Visual Studio crash
Reply #3 - Feb 9th, 2021 at 10:49am
Print Post  
Thanks for the detail, so COM15 is the Serial Port of the board, COM20 is the uploader port.

When you connect the serial monitor in Visual Studio, does the connect button ever turn to Green Text to show it has connected? (connections in other programs to the same port must be closed first)
  
Back to top
 
IP Logged
 
Livio
Junior Member
**
Offline


Posts: 55
Location: Italy
Joined: Jan 10th, 2018
Re: Visual Studio crash
Reply #4 - Feb 9th, 2021 at 2:27pm
Print Post  
Yes is green.

I have uploaded with Atmel-IDE disabled, through COM20, OK
The program on the board is waiting the connection:
Quote:
  Serial.begin(115200);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
    digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
    delay(50);                       // wait for a second
    digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
    delay(50);
  }


I see the led fast flashing.
I change to COM15 and press Serial Monitor, it's open, Connect is green, he says "Opening port - Port open". 
See screenshot.
But the led is still fast flashing waiting for connection.
Now I press ENTER in the Serial Monitor -> CRASH All disappear.
  

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


Posts: 2175
Joined: Feb 13th, 2019
Re: Visual Studio crash
Reply #5 - Feb 9th, 2021 at 2:42pm
Print Post  
Does enabling DTR/RTS help at all in this scenario?

Does the LED stop blinking as expected when opening the port from Arduino IDE or TeraTerm?
  
Back to top
 
IP Logged
 
Livio
Junior Member
**
Offline


Posts: 55
Location: Italy
Joined: Jan 10th, 2018
Re: Visual Studio crash
Reply #6 - Feb 9th, 2021 at 2:48pm
Print Post  
More simple environment:

- I have restarted the PC
- The board is loaded, if I reset the board the lad flash fast waiting connection.
- If I open TaraTerm on COM15 the software on the board proceed.
- Close Taraterm and start again.

- I reset the board, the led flash fast waiting connection.
- I open Visual Studio - Continue without code - Extensions - vMicro - View Port Monitor
- See screenshot
- The led flash fast waiting connection.
- If I press ENTER three or four times -> CRASH

Again.
- I reset the board, the led flash fast waiting connection.
- I open Visual Studio - Continue without code - Extensions - vMicro - View Port Monitor
- But this time I press RTS in the lower left corner
- !!!!!! The board is CONNECTED !!!!!!!

That's all, had I forgotten to press a button?
  

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


Posts: 2175
Joined: Feb 13th, 2019
Re: Visual Studio crash
Reply #7 - Feb 9th, 2021 at 3:07pm
Print Post  
Glad it has worked with the Serial options set, these may be automatically enabled in TeraTerm.  All options are detailed on this page for information.

We will update when the issue with the crash when not connected is resolved.
  
Back to top
 
IP Logged
 
Livio
Junior Member
**
Offline


Posts: 55
Location: Italy
Joined: Jan 10th, 2018
Re: Visual Studio crash
Reply #8 - Feb 9th, 2021 at 3:39pm
Print Post  
Simon@Visual Micro wrote on Feb 9th, 2021 at 3:07pm:
All options are detailed on this page for information.


I confess that I have not seen the page you indicate to me, but ... if you look well the picture in that page you can see that the button RTS isn't activate.  Tongue
  

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


Posts: 2175
Joined: Feb 13th, 2019
Re: Visual Studio crash
Reply #9 - Feb 9th, 2021 at 3:57pm
Print Post  
It is not enabled in that screenshot as it is simply showing where each control listed in the table is.

Whether you need to enable these depends upon the board you are connecting to, and its serial interface from my understanding, for example using a USB TTL adapter these may not even be connected.
  
Back to top
 
IP Logged
 
Livio
Junior Member
**
Offline


Posts: 55
Location: Italy
Joined: Jan 10th, 2018
Re: Visual Studio crash
Reply #10 - Feb 9th, 2021 at 4:35pm
Print Post  
True, in fact in all these years it is the first time that I have to manage the RTS signal. I remember using it at times of RS232.

But now let's move on, I have to manage Atmel-ICE now. 

But let's talk about it in another thread, if there are any problems. 

For now, thanks for your help.

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


Posts: 2175
Joined: Feb 13th, 2019
Re: Visual Studio crash
Reply #11 - Feb 9th, 2021 at 4:50pm
Print Post  
The crash when entering data to a closed port, is now resolved in the latest release (21.01.06.3), available at the top of the board below:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint