VS Arduino
>> >> (Solved) Arduino pro micro serial port(in VS) not working
https://www.visualmicro.com/forums/YaBB.pl?num=1531953781

Message started by Precious Roy on Jul 18th, 2018 at 10:43pm

Title: (Solved) Arduino pro micro serial port(in VS) not working
Post by Precious Roy on Jul 18th, 2018 at 10:43pm
Hello,

I am having issues wit the serial port in visual studio.

using a MEGA the serial port works fine but with both of my pro mico's i see no data in the serial port.

i tested it with the arduino editor and i get output data. so i was wondering if something is wrong with my setup.

Roy

Title: Re: Arduino pro micro serial port(in VS) not working
Post by Visual Micro on Jul 18th, 2018 at 10:44pm
what baud rate have you set?

is this with or without debug enabled?

Title: Re: Arduino pro micro serial port(in VS) not working
Post by Precious Roy on Jul 19th, 2018 at 9:04am
this is without debug enabled, project is set to release.

Edit:
I noticed that the way it programs the micro is different. It seems to connect to a different serial port. i was wondering if the way the serial port works is also different than other arduinos.

Sketch uses 7642 bytes (26%) of program storage space. Maximum is 28672 bytes.
Global variables use 386 bytes (15%) of dynamic memory, leaving 2174 bytes for local variables. Maximum is 2560 bytes.
Forcing reset using 1200bps open/close on port COM4
PORTS {COM1, COM4, } / {COM1, } => {}
PORTS {COM1, } / {COM1, COM3, } => {COM3, }
Found upload port: COM3

COM4 was the port it is connected to

Title: Re: Arduino pro micro serial port(in VS) not working
Post by Visual Micro on Jul 19th, 2018 at 10:19am
Hi,

Arduino does same for upload. Some boards are sent a reboot command then they boot onto different com port for upload.

Please answer question about the baud rate you are using in your code.

Title: Re: Arduino pro micro serial port(in VS) not working
Post by Precious Roy on Jul 19th, 2018 at 11:09am
So this code does not print out anything in VS serial window for the micro.


void setup() {
  Serial.begin(9600);
}

void loop() {
  Serial.println("Test");
}

It does however work for Mega

Title: Re: Arduino pro micro serial port(in VS) not working
Post by Visual Micro on Jul 19th, 2018 at 11:16am
Okay to confirm...

The toolbar says Release and not Debug?
The speed on the serial monitor shows 9600?
What usb device driver name and date shows in control panel > device manager for com4?

Thanks

Title: Re: Arduino pro micro serial port(in VS) not working
Post by Precious Roy on Jul 19th, 2018 at 12:04pm
Ok I have been testing a lot, and it seems that i needed enable RTS. witch the mega does not need.

what does that setting do ?

Title: Re: Arduino pro micro serial port(in VS) not working
Post by Visual Micro on Jul 19th, 2018 at 12:08pm
The default should be RTS on which is a serial ready To send flag.

Other boards such as Esp8266 and Esp32 have this setting off.

Normally Visual Micro handles automatically so it should have been On. If you didn't change it I will check the default.

Thanks

Title: Re: Arduino pro micro serial port(in VS) not working
Post by Precious Roy on Jul 19th, 2018 at 12:22pm
I dont remember changing it. do it default with a new project ?
if so then it is probably set wrong.

Thanks for trying to help i appropriate it!

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.