I've just tried a micro (actually a pro micro) - and failed to get it to work...
Programming - open a COM port on the port it shows up on (in my case COM3) which resets the board - but then programming is via COM4..
I've used an USBTiny in the past as a workaround, but there should be a way.
Doesn't explain the Nano though - which should work as is...
First time Arduino
-
- Valued Contributor
- Posts: 1630
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 142 times
- Been thanked: 761 times
-
- Posts: 12
- Joined: Sun Mar 12, 2023 10:24 am
- Has thanked: 5 times
- Been thanked: 1 time
Re: First time Arduino
@mnfisher
The hint with the small time window of the com ports that was the decisive impulse to search! It worked!!! And as follows for the Micro:
Open project options>>press the reset button on the micro>>then another com port (Bootloader) appears briefly when you select>> select this and save>> works!!
Many thanks to everyone who helped me here, that was great!!

The hint with the small time window of the com ports that was the decisive impulse to search! It worked!!! And as follows for the Micro:
Open project options>>press the reset button on the micro>>then another com port (Bootloader) appears briefly when you select>> select this and save>> works!!
Many thanks to everyone who helped me here, that was great!!


-
- Valued Contributor
- Posts: 1630
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 142 times
- Been thanked: 761 times
Re: First time Arduino
Glad it worked...
Martin - would it be possible to change the batch file to do this automagically.
Adding:
Resets the Arduino by opening the COM port at 1200 baud.. The ping just does a delay (can't use timeout as throws an error)
Also need to get rid of the 'Press Reset' dialog - can't see how this is called in the batch files?? This doesn't seem to reliably detect plugging in the board (no reset on pro-micro
Also need a way of getting the correct COM ports - I hard-coded in a batch file, but there should be a way to do this programmatically?
Martin
Martin - would it be possible to change the batch file to do this automagically.
Adding:
Code: Select all
mode COM3: BAUD=12 > nul
ping localhost
Also need to get rid of the 'Press Reset' dialog - can't see how this is called in the batch files?? This doesn't seem to reliably detect plugging in the board (no reset on pro-micro

Also need a way of getting the correct COM ports - I hard-coded in a batch file, but there should be a way to do this programmatically?
Martin