Programming issue with new Pro Micro

For the discussion of Arduino related topics.

Moderator: phalanx

Post Reply
sparkfun@povil.us
Posts: 8
Joined: Fri Jan 12, 2018 7:03 pm

Programming issue with new Pro Micro

Post by sparkfun@povil.us » Fri Jan 12, 2018 7:21 pm

I just got a 3.3V pro micro that I was going to connect to a Si7021 to log humidity. I being silly, soldered on the power and i2c headers and connected the Si7021 to the pro micro, then hooked it up to my laptop. I then tried to program the example code. I followed the readme to add support to my arduino IDE (1.8.5).

When I hit the "program" button on the IDE it gave me a lot of

Code: Select all

 
 ***failed;  
 ...
  ***failed;  
 avrdude: Error: butterfly programmer uses avr_write_page() but does not
provide a cmd() method.
 *** page 71 (addresses 0x1ec8 - 0x1f47) failed to write
  ***failed;  
  ...
   ***failed;  
with:

Code: Select all

avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: verification error, first mismatch at byte 0x01b8
         0x24 != 0x11
avrdude: verification error; content mismatch
avrdude: verification error; content mismatch
at the end.

I did realize that I had DSView open in another work-space while training all this.

I now can't get the programmer to program the pro micro with any of multiple errors including the one above and

Code: Select all

avrdude: Expected signature for ATmega32U4 is 1E 95 87
         Double check chip, or use -F to override this check.
avrdude: error: programmer did not respond to command: leave prog mode
avrdude: error: programmer did not respond to command: exit bootloader
avrdude: error: programmer did not respond to command: exit bootloader
or

Code: Select all

Couldn't find a Board on the selected port. Check that you have the correct port selected.  If it is correct, try pressing the board's reset button after initiating the upload.
or

Code: Select all

processing.app.debug.RunnerException
	at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:160)
	at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
	at processing.app.SketchController.upload(SketchController.java:713)
	at processing.app.SketchController.exportApplet(SketchController.java:686)
	at processing.app.Editor$DefaultExportHandler.run(Editor.java:2168)
	at java.lang.Thread.run(Thread.java:748)
Caused by: processing.app.SerialException: Error touching serial port '/dev/ttyACM0'.
	at processing.app.Serial.touchForCDCReset(Serial.java:107)
	at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:144)
	... 5 more
Caused by: jssc.SerialPortException: Port name - /dev/ttyACM0; Method name - openPort(); Exception type - Port busy.
	at jssc.SerialPort.openPort(SerialPort.java:164)
	at processing.app.Serial.touchForCDCReset(Serial.java:101)
	... 6 more
depending on when in relation to resetting the board (with the reset "button")

paulvha
Posts: 240
Joined: Sat Nov 11, 2017 2:39 am

Re: Programming issue with new Pro Micro

Post by paulvha » Sat Jan 13, 2018 9:33 am

Thinking along.... the error seems to be caused by not able to open /dev/ttyACM0. (busy) Then it can not communicate with your board. unplug the USB cable, reboot the system. Then plug in the USBcable, make sure the right access permissions are on /dev/ttyACM0 : sudo chmod 666 /dev/ttyACM0. Next in tools, set the board & set port correct and try to get board info.

sparkfun@povil.us
Posts: 8
Joined: Fri Jan 12, 2018 7:03 pm

Re: Programming issue with new Pro Micro

Post by sparkfun@povil.us » Sat Jan 13, 2018 7:19 pm

Board info shows this:

Code: Select all

BN: Unknown board
VID: 1B4F
PID: 9204
SN: Upload any sketch to obtain it
There is another type of error that has shown up:

Code: Select all

Sketch uses 8008 bytes (27%) of program storage space. Maximum is 28672 bytes.
Global variables use 450 bytes (17%) of dynamic memory, leaving 2110 bytes for local variables. Maximum is 2560 bytes.
Found programmer: Id = "CATERIN"; type = E
    Software Version = 
.C; Hardware Version = A.T
avrdude: error: buffered memory access not supported. Maybe it isn't
a butterfly/AVR109 but a AVR910 device?
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: error: programmer did not respond to command: leave prog mode
avrdude: error: programmer did not respond to command: exit bootloader
avrdude: error: programmer did not respond to command: exit bootloader

paulvha
Posts: 240
Joined: Sat Nov 11, 2017 2:39 am

Re: Programming issue with new Pro Micro

Post by paulvha » Mon Jan 15, 2018 8:17 am

Have you selected the Pro Micro board in board selection. That is not there by default you have you installed the board in the IDE . https://learn.sparkfun.com/tutorials/pr ... okup-guide, installing Arduino Add-on. some others mention that it might help to press reset and try it again.. others say to try a different USB port and/or different cable.

sparkfun@povil.us
Posts: 8
Joined: Fri Jan 12, 2018 7:03 pm

Re: Programming issue with new Pro Micro

Post by sparkfun@povil.us » Wed Jan 17, 2018 7:53 pm

"Have you selected the Pro Micro board in board selection" yes. I ordered more pro micros gotten them in and had the same results and have tried different usb cables none have worked.

sparkfun@povil.us
Posts: 8
Joined: Fri Jan 12, 2018 7:03 pm

Re: Programming issue with new Pro Micro

Post by sparkfun@povil.us » Wed Jan 17, 2018 8:22 pm

I did the install as you mentioned, now i have two sets of boards.
arduinosucks.png

sparkfun@povil.us
Posts: 8
Joined: Fri Jan 12, 2018 7:03 pm

Re: Programming issue with new Pro Micro

Post by sparkfun@povil.us » Wed Jan 17, 2018 8:32 pm

Now I have yet another useless error code. I think I'm going to have to return these.

Code: Select all


Sketch uses 8008 bytes (27%) of program storage space. Maximum is 28672 bytes.
Global variables use 450 bytes (17%) of dynamic memory, leaving 2110 bytes for local variables. Maximum is 2560 bytes.

    Device code: 0x0d
    Device code: 0x43
    Device code: 0x41
    Device code: 0x54
    Device code: 0x45
    Device code: 0x52
    Device code: 0x49
    Device code: 0x4e
    Device code: 0xfb
    Device code: 0x0d
    Device code: 0x3f
    Device code: 0xff
    Device code: 0xff
    Device code: 0x0d
avrdude: butterfly_recv(): programmer is not responding
    Device code: 0x0d

sparkfun@povil.us
Posts: 8
Joined: Fri Jan 12, 2018 7:03 pm

Re: Programming issue with new Pro Micro

Post by sparkfun@povil.us » Wed Jan 17, 2018 8:43 pm

If i put serial monitor on the board i get

Code: Select all

 
CATERIN⸮
?⸮⸮

sparkfun@povil.us
Posts: 8
Joined: Fri Jan 12, 2018 7:03 pm

Re: Programming issue with new Pro Micro

Post by sparkfun@povil.us » Wed Jan 17, 2018 8:56 pm

after reading this page https://learn.sparkfun.com/tutorials/pr ... -reinstall I am quite certan the boot loader mods sparkfun made don't work

I got board info to show up as

Code: Select all

BN: Unknown board
VID: 1B4F
PID: 9203
SN: Upload any sketch to obtain it
for about half a second if I reset the board by shorting the reset pin to ground twice and within half a second do "board info"

sparkfun@povil.us
Posts: 8
Joined: Fri Jan 12, 2018 7:03 pm

Re: Programming issue with new Pro Micro

Post by sparkfun@povil.us » Thu Feb 08, 2018 8:46 pm

Anybody experiencing this issue, I fixed it by doing https://learn.sparkfun.com/tutorials/pr ... #ts-revive on a *windows* computer, I could not get it to work on Linux.

chillind
Posts: 1
Joined: Wed May 30, 2018 9:14 pm

Re: Programming issue with new Pro Micro

Post by chillind » Wed May 30, 2018 9:15 pm


Post Reply