-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Grand Central M4 bootloader .bin file #266
Comments
thanks, we will add the missing bootloader file soon, you could find the latest binary of bootlaoder here in its repo's release assests. |
Thank for your response.
Would you please consider including the source files as well? Best Regards! |
You need to set the BOOTPROT fuses to protect the bootloader if you load it manually. I am not sure if your process The update-bootloader .uf2 does this as part of the updating process, which is why we recommend using it. If you erase the bootloader completely you could load it manually and then run the update-bootloader uf2 for the same version to do this easily. |
which source files you are mentioning, if you mean the bootlaode source, it is there in the above repo. |
Yes Dan, I agree. I need to set the fuse BOOTPROT back to value 16 for the Grand Central M4 board after programing the chip with the .bin file. It's worth making a note that the BOOTPROT for the Grand Central M4 board is different from the M0 boards that have fuse BOOTPROT set to SIZE_8192BYTES, or the 0x07 value as shown in the tutorial for Feather M0 and Metro M0. My understanding is that the .uf2 file unlocks the BOOTPROT fuse (and probably doesn't care if it finds this fuse unlocked), updates the bootloader and locks the BOOTPROT fuse to the appropriate value. This is another method to set the fuse (instead of using Atmel Studio to do it manually). I just use the Atmel Sudio because the fuse programing is in the same Device Programming pop-up window. Below is the original fuse settings for the Grand Central M4 as a reference. USB_TRANSN = 0x09 SW0_WORD_0 = 0x1FF07FD (valid) |
Here is an example of the Metro M4 board which includes the bootloader source files. The back story. Arduino: 1.8.13 (Windows 10), Board: "Adafruit Grand Central M4 (SAMD51), Enabled, 120 MHz (standard), Small (-Os) (standard), 50 MHz (standard), Arduino, Off" I have successfully programmed the bootloader for Metro M0 and Feather M0 with Arduino IDE (with previously unlocked and fully erased chips) and locked the fuse BOOTPROT afterwards with Atmel Studio 7. For example, the Metro M0 has the openocd_scripts folder with the "metro_m0.cfg" file. However, this a separate issue, which would be resolved at some time as the parts of the project get committed. |
I need the bootloader file "bootloader-grandcentralM4-v2.0.0-adafruit.5.bin" or "bootloader-grandcentralM4-v2.0.0-adafruit.5.elf" because I want to experiment with the Grand Central M4 board and Atmel Studio.
After I erase the ATSAMD51P20A chip, I want to be able to restore the Grand Central M4 board to its original condition with Atmel Studio.
A set of well written instructions (which I successfully implemented on Feather M0 and Metro M0 because I had the .bin files for these boards) is available here:
https://learn.adafruit.com/how-to-program-samd-bootloaders/programming-the-bootloader-with-atmel-studio
Additional search effort to find the bootloader file for the Grand Central M4 board brought me to a similar request that is posted on Adafruit forum.
https://forums.adafruit.com/viewtopic.php?f=63&t=168879
The text was updated successfully, but these errors were encountered: