Hello!
i've here a SAMC21E15A microcontroller which i want to program over UART.
On the ATMEL website i found the SAM-BA v2.18 project and start to customize it for the controller.
I used as a basis the example project for the xplained pro board (samc21_xplained_pro). After adjusting the memory/ram, i was able to run the applet and connect via the SAM-BA tool.
With the tool i'm able to read/write ram values, delete application section and so on. I can also read the complete flash and save it to file.
The only thing i can't do, is to flash a new program. When i try to do this, the controller hang up. After some seconds i get a timeout from the tool.
It's exactly the same problem like here: https://www.avrfreaks.net/forum/...
The controller is unlocked.
Output when flashing a file:
(sam-ba_2.18) 1 % send_file {Flash} "GccApplication1.bin" 0x02000 0 -I- Send File GccApplication1.bin at address 0x02000 File size : 1952 Flash size : 0x8000 Flash page size : 64 First page : 128 Dest : 8192 -I- Writing: 0x100 bytes at 0x2000 (buffer addr : 0x20000EF8) -E- Generic::Write returned error (expected integer but got "-E- Timeout: The applet did not return. Please ch")
What i'm doing wrong?