Page 1 of 1

Arduino Micro 3.3v upload error.

Posted: Sun Dec 16, 2018 8:41 pm
by mnf
Trying to upload a sketch to an Arduino pro-micro (3.3v 8MHz) which is reported as a LilypadUSB. (I needed something with 3.3v pins and didn't want to bother with the extra hassle of a level shifter)

After some experimenting I managed to get a sketch to upload from within FC8 (pull reset to ground twice quickly to enter bootloader) - however after uploading the sketch the board no longer shows up as a USB device.

A couple of thoughts/ideas:
The Arduino IDE resets the board by opening and closing the com port at 1200baud.
The programming port is (at least on my system) different (+1) from the actual com port (COM25 rather than COM24)
avrc_arduinoA.bat has a couple of lines (mode comport... remmed out) that look to be designed to 'try' and reset the Arduino.
FC
After programming from FC the Arduino IDE can no longer perform it's 'reset' trick - but I can get things back to normal by resetting the board twice in quick succession. After loading a sketch from the Arduino IDE things are restored to normal.
I would like to use the board more as a 'micro' equivalent (USB HID etc)
Using the Lilypad USB - I can't change the clock speed from 16MHz to 8MHz (so timings are out)...

So what I really need is a new pro-micro definition file (I might take a peek in the 'micro' and 'lilypad' files and see if I can mash something up!)

And - not sure there really is a bug - just needs a new definition file?

Martin

Re: Arduino Micro 3.3v upload error.

Posted: Mon Dec 17, 2018 12:04 pm
by Benj
Hi Martin,

I've created a new definition file for you named "Arduino Micro 8MHz". It should be available for you to download now via the update system.

Fingers crossed it helps :D

Re: Arduino Micro 3.3v upload error.

Posted: Mon Dec 17, 2018 10:28 pm
by mnf
Thanks Ben,

No sign of it this evening in the updates (of all files) - though there was an update to the Lilypad USB file?

Martin

Re: Arduino Micro 3.3v upload error.

Posted: Tue Dec 18, 2018 12:39 pm
by Benj
Hi Martin,

It's showing up for me, maybe you've already downloaded the file?
ArdMicro.jpg
ArdMicro.jpg (81.05 KiB) Viewed 3595 times
You can tell if you already have the file by looking in the target device list.
ArdMicro2.jpg
ArdMicro2.jpg (80.74 KiB) Viewed 3595 times

Re: Arduino Micro 3.3v upload error.

Posted: Tue Dec 18, 2018 3:09 pm
by mnf
Thanks,
Will have another look tonight. Had an epically busy day yesterday - so quite possibly that I just missed it!

Martin

Re: Arduino Micro 3.3v upload error.

Posted: Tue Dec 18, 2018 11:24 pm
by mnf
Found it now - but can't get code to upload using it...

Looking at the fcdx file - should the comminfo section mirror the lilypad usb section??

Martin