0

Feather M4 Uf2 firmware flash
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Feather M4 Uf2 firmware flash

by ashsk on Tue Jul 27, 2021 12:52 pm

Hi,

I'm using Feather M4 for a lot of projects and I'm curious to know if I can flash the firmware over USB by just drag and drop of the .uf2 file? I understand that's how easy it is to flash the micropython scripts by copying the relevant files to the USB storage drive. I've already tried upgrading the bootloader using the Uf2, but I'm trying to find out if I could also flash my firmware similarly?

ashsk
 
Posts: 23
Joined: Tue Dec 15, 2020 7:39 am

Re: Feather M4 Uf2 firmware flash

by dastels on Tue Jul 27, 2021 1:46 pm

Yes, that's how you install the CircuitPython firmware. You copy a uf2 to the FEATHERBOOT drive. You can also use Arduino or PlatformIO.

Dave

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

Re: Feather M4 Uf2 firmware flash

by ashsk on Tue Jul 27, 2021 4:09 pm

Perhaps my question wasn't clear enough. I meant can I write a C code and generate the binary file which is converted to uf2 format to flash on the FEATHERBOOT disk?

ashsk
 
Posts: 23
Joined: Tue Dec 15, 2020 7:39 am

Re: Feather M4 Uf2 firmware flash

by dastels on Tue Jul 27, 2021 4:14 pm


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

Re: Feather M4 Uf2 firmware flash

by ashsk on Wed Jul 28, 2021 4:21 am

I did take a look that. I actually followed the instructions and was able to generate a uf2 file from the Arduino LED blink example. When I copied it to the Feather M4 in the bootloader mode, the bootloading cycle happens and then nothing happens. The LED on pin 13 is supposed to blink but it does not.

ashsk
 
Posts: 23
Joined: Tue Dec 15, 2020 7:39 am

Re: Feather M4 Uf2 firmware flash

by dastels on Wed Jul 28, 2021 8:08 am

To confirm a couple things:

The code works when uploaded directly from/by Arduino?
You copied the UF2 to FEATHERBOOT?

Dave

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

Please be positive and constructive with your questions and comments.