The bootloader reads the .elf header located at 0x300000 in flash. In order for it to load a program, the program shall be placed at that address using the following command :
ecpprog -o 3M <binary>.elf -pDistributed under the GPL-3.0 license. See LICENSE.txt for more information.