hello,
i've designed board for SAM4E16E.
a very bad move i did is that i did not connect any pin in the board to led (flashing leds is really helpful for debug) or didnt put jtag connector.
anyway, i only have Erase option on the board.
and its connected to USB.
so i've connected it to the PC and i can see (COM4 as "Bossa Program Port")
now im using Bossac which supports SAM4E. to upload simple program:
after flashing the firmware, and reset, i still see the "COM4" which means the bootloader is still there? shouldnt it exit to my software until i erase the chip?
what i can think of, is that SAM-BA checks for the program and cant find it in the memory, but i didnt play with the flash.ld file
flash.ld:
https://pastebin.com/raw/YRZuefCathe code has infinite loop also:
#include <asf.h>
int main (void)
{
/* Insert system clock initialization code here (sysclk_init()). */
board_init();
/* Insert application code here, after the board has been initialized. */
while(1)
{
}
}