0

Programming the metro M4 grand centeral with arduino ide
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Programming the metro M4 grand centeral with arduino ide

by josephchrzempiec on Sun May 02, 2021 7:24 am

Hello I have a small problem. I'm trying to program the M4 board with arduino ide. I found out if i hit the reset button a couple of times somehow the code i upload gets ereased. And that Hid drive pops up. I'm not sure why this happens how can i stop that so if i hit the reset button my code stays?


Joseph

josephchrzempiec
 
Posts: 74
Joined: Tue May 12, 2015 4:34 am

Re: Programming the metro M4 grand centeral with arduino ide

by dastels on Sun May 02, 2021 11:05 am

Double-pressing reset puts the board into bootloader mode and METROBOOT will mount. Pressing reset a single time will run whatever firmware is in flash. Firmware uploaded by the Arduino IDE is put in flash and stays there until it is replaced.

Dave

dastels
 
Posts: 6873
Joined: Tue Oct 20, 2015 3:22 pm

Re: Programming the metro M4 grand centeral with arduino ide

by josephchrzempiec on Sun May 02, 2021 11:10 am

Hello dastels, thank you it was freaking me out not seeing my sketch working. I was wondering if it is possible not to have that pop up folder every time it’s in boot loading time when I program it?


Joseph

josephchrzempiec
 
Posts: 74
Joined: Tue May 12, 2015 4:34 am

Re: Programming the metro M4 grand centeral with arduino ide

by dastels on Sun May 02, 2021 11:36 am

No, that's how the UF2 bootloader works. It is what let's you load a firmware UF2 onto the board (typically a CircuitPython UF2).

Dave

dastels
 
Posts: 6873
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.