Arduino Micro 3.3v upload error.

Moderator: Benj

Post Reply
mnf
Valued Contributor
Valued Contributor
Posts: 1188
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

Arduino Micro 3.3v upload error.

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Arduino Micro 3.3v upload error.

Post 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

mnf
Valued Contributor
Valued Contributor
Posts: 1188
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

Re: Arduino Micro 3.3v upload error.

Post 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

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Arduino Micro 3.3v upload error.

Post 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 2958 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 2958 times

mnf
Valued Contributor
Valued Contributor
Posts: 1188
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

Re: Arduino Micro 3.3v upload error.

Post by mnf »

Thanks,
Will have another look tonight. Had an epically busy day yesterday - so quite possibly that I just missed it!

Martin

mnf
Valued Contributor
Valued Contributor
Posts: 1188
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

Re: Arduino Micro 3.3v upload error.

Post 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

Post Reply