USB disappears

My sketch appears to have affected the USB... I can see the USB being enumerated under OSX (USB Prober), but after a short while the USB disappears...

I am unable to do anything with either of my 1286 Topboards. Any way I can get code back onto them?

Thanks,

Mark.

Mark Leyden
Mark Leyden
17
| 2 1 2
Asked on 8/31/15, 10:23 AM
0
vote
3568 Views

Hi Mark,

The bootloader runs for 8 seconds. So you should be able to get the USB working again for the user sketch by uploading any standard sketch (for example blink) within the 8 second period that the bootloader is running. To do get the upload process to work within the 8 second period it is sometimes usefull to keep the reset button of the board pressed in whilst the sketch is being compiled, and just releasing it when you see the Arduino IDE is starting to look for the serial port (turn on verbose mode in the Arduino IDE settings to see this extra information).

Please let me know how it goes.

Best Regards,

Loic

 

 

Loic De Buck
Loic De Buck
1263
| 3 1 3
Answered on 8/31/15, 11:22 AM
1
vote

Thanks Loic, that got the USB back! Now to figure out why it is being corrupted...

Bootloader file specified but missing: /Applications/Arduino.app/Contents/Java/hardware/Industruino/avr/bootloaders/Bootloader.hex

Sketch uses 22,130 bytes (17%) of program storage space. Maximum is 126,976 bytes.
Global variables use 655 bytes of dynamic memory.
Board Industruino:avr:ind1286 doesn't define a 'build.board' preference. Auto-set to: AVR_IND1286
Board Industruino:avr:ind1286 doesn't define a 'build.board' preference. Auto-set to: AVR_IND1286

+++++++++++


avrdude: Version 6.0.1, compiled on Apr 14 2015 at 16:30:25
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/mleyden/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/cu.usbmodem004571
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
         AVR Part                      : AT90USB1286
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    10     8    0 no       4096    8      0  9000  9000 0x00 0x00
           flash         65     6   256    0 yes    131072  256    512  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : butterfly
         Description     : Atmel AppNote AVR109 Boot Loader

Connecting to programmer: .
Found programmer: Id = "MT-CDC"; type = S
    Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=256 bytes.

Programmer supports the following devices:
    Device code: 0x43

avrdude: devcode selected: 0x43
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9782
avrdude: reading input file "/var/folders/dk/qm16ld1s0zj0gs2kzb88t4zw0000gn/T/build9210564097461252728.tmp/eco_burner.cpp.hex"
avrdude: writing flash (38584 bytes):

Writing | ################################################## | 100% 1.76s

avrdude: 38584 bytes of flash written
avrdude: verifying flash memory against /var/folders/dk/qm16ld1s0zj0gs2kzb88t4zw0000gn/T/build9210564097461252728.tmp/eco_burner.cpp.hex:
avrdude: load data flash data from input file /var/folders/dk/qm16ld1s0zj0gs2kzb88t4zw0000gn/T/build9210564097461252728.tmp/eco_burner.cpp.hex:
avrdude: input file /var/folders/dk/qm16ld1s0zj0gs2kzb88t4zw0000gn/T/build9210564097461252728.tmp/eco_burner.cpp.hex contains 38584 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.42s

avrdude: verifying ...
avrdude: 38584 bytes of flash verified

avrdude done.  Thank you.

Board at /dev/cu.usbmodemfd131 is not available
Board at /dev/cu.usbmodem004571 is not available

 

 

Mark Leyden
Mark Leyden
17
| 2 1 2
Answered on 8/31/15, 9:12 PM
0
vote

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This community is for professionals and enthusiasts of our products and services.

Read Guidelines

Question tools

13 follower(s)

Stats

Asked: 8/31/15, 10:23 AM
Seen: 3568 times
Last updated: 8/31/15, 9:12 PM