Generate binary for SAMD21 for no bootloader application

Hi! For my project I have to generate a binary code for SAMD21G (Arduino MKRZero) to be used for programming board without bootloader. Can I specify to generate a binary file to be loaded at 0x00 address? At the moment I solved the problem programming both bootloader and app binary file with Atmel Studio, but I’d like to program my board using only application binary for starting without the bootloader.

Thanks

You need to add these to your configuration:

board_upload.offset_address = 0x00000000
board_build.arduino.ldscript = flash_without_bootloader.ld

This will tell it to compile with a base address of 0x00 and upload at that base address.

1 Like