matthijskooijman / arduino-lmic

:warning: This library is deprecated, see the README for alternatives.
707 stars 649 forks source link

loss of USB recognition with Arduino M0 #94

Open EtienneBourdeau opened 7 years ago

EtienneBourdeau commented 7 years ago

Hello !

I'm using an Arduino M0 (ARM Atmel SAMD21 microcontroller) with a SX1272 LoRa module. But when I transfer your code on the Arduino, after having set up config.h and the keys in the 'ttn-abp' example, the Arduino isn't recognized by Windows anymore (Windows 7 64b pro). I can't find it in the Device Manger either, and nothing seems to work.

Can you help me plz ? Maybe I didn't understand something. Thank you very much !

EtienneBourdeau commented 7 years ago

After a few research, I found out that the problem comes from the use of the "hal_disableIRQ()" function in "os_runloop_once", but I don't know how to debug it. Could someone help me ?

Thank you once again !

PhatHub commented 7 years ago

I'm not an M0 expert, but looking at the Adafruit FAQ for their M0 Feather there seems to be an entry about crashed sketches that causes an error with starting the bootloader.

At that point, the solution might be hitting the reset button two or three times during the early phase of uploading a sketch? This will at least allow you to upload tweaks to your sketch as you're trying to debug...

selvamaniraj commented 7 years ago

Hello all, I am also using arduino samd controller trying to upload the program i have also same problem( EtienneBourdeau ). if anyone find a solution.help me to upload the program.