Page 3 of 3

Re: First time Arduino

Posted: Sat Mar 25, 2023 4:34 pm
by mnfisher
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...

Re: First time Arduino

Posted: Sat Mar 25, 2023 5:01 pm
by Xbeejunior
@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!! :P :P

Re: First time Arduino

Posted: Sat Mar 25, 2023 5:13 pm
by mnfisher
Glad it worked...

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
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