Go Down

Topic: Unable to download a new sketch (Read 2295 times) previous topic - next topic

chrissou

Hi.
Just received my MKRFOX and it has been working for 3 days :(

I am now unable to download a new sketch

It has been working under windows, now it fails.

I have just installed IDE on another PC under linux.
Does not work.

When I plug, I see in dmesg:

[ 2836.109786] usb 2-7: new full-speed USB device number 39 using ohci-pci
[ 2836.289789] usb 2-7: device descriptor read/64, error -62
[ 2836.573761] usb 2-7: device descriptor read/64, error -62
[ 2836.853745] usb 2-7: new full-speed USB device number 40 using ohci-pci
[ 2837.085509] usb 2-7: New USB device found, idVendor=2341, idProduct=8050
[ 2837.085517] usb 2-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2837.085521] usb 2-7: Product: Arduino MKRFox1200
[ 2837.085524] usb 2-7: Manufacturer: Arduino LLC
[ 2837.089712] cdc_acm 2-7:1.0: ttyACM0: USB ACM device

so it gets the board on ttyACM0.
When I try to download:
[ 2920.834745] cdc_acm 2-7:1.0: failed to set dtr/rts
[ 2920.846493] cdc_acm 2-7:1.0: failed to set dtr/rts
[ 2926.850361] cdc_acm 2-7:1.0: failed to set dtr/rts
[ 2927.656375] cdc_acm 2-7:1.0: failed to set dtr/rts
[ 2927.659364] cdc_acm 2-7:1.0: failed to set dtr/rts
[ 2928.765337] cdc_acm 2-7:1.0: failed to set dtr/rts

Error in IDE :
No device found on ttyACM0
Une erreur est survenue lors du transfert du croquis

If I reset:
[ 3319.369417] usb 2-7: USB disconnect, device number 42
[ 3320.583055] usb 2-7: new full-speed USB device number 43 using ohci-pci
[ 3320.763056] usb 2-7: device descriptor read/64, error -62
[ 3321.047056] usb 2-7: device descriptor read/64, error -62
[ 3321.327065] usb 2-7: new full-speed USB device number 44 using ohci-pci
[ 3321.507073] usb 2-7: device descriptor read/64, error -62
[ 3321.791066] usb 2-7: device descriptor read/64, error -62
[ 3322.071068] usb 2-7: new full-speed USB device number 45 using ohci-pci
[ 3322.479071] usb 2-7: device not accepting address 45, error -62
[ 3322.655058] usb 2-7: new full-speed USB device number 46 using ohci-pci
[ 3323.063076] usb 2-7: device not accepting address 46, error -62
[ 3323.063126] usb usb2-port7: unable to enumerate USB device
---> no board found.





Under windows:
On plug : in IDE find one serial with board MKR1200. download fails
On reset : windows popup dealing with malfunction of periph



The board still works as it can send message on sigfox network.



in the last version I downloaded, I removed all traces
removed at the beginning :
   Serial.begin(9600);
   while(!Serial) {};

device enters deep sleep very quickly .




any idea ?

Thx

Chris


Under windows,

ballscrewbob

First off you should not really need the "while(serial)" command as it will just sit there waiting for a serial connection so in autonomous mode that would just sit there doing nothing.

Have you tried the "quickly double tap the reset button" trick to put it into bootloader mode ?
It will show up on a different serial port btw when you do that. Once you have it in bootloader mode throw a simple sketch up such as blink etc.

That should put you back in control of it.

Also remember that whilst not 100% the same as an MKR1000 a lot of things from that board in terms of tricks and tips should also work with the fox variant.

 
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

chrissou

Yo !
You saved my life.
Well at least my board !

It works like a charm :)

I didn't know the trick.
Works for all the arduino or only for this proc ?

Thx

ballscrewbob

It works for a few boards but the timing is a little different for some.


It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

Go Up