I've been fighting to get the SAM-GBA bootloader working for a couple of weeks. It seems like as soon as I make some progress, I hit another brick wall. I am using a SAML21J18B with the SAM-BA bootloader configured to use a SERCOM uart. I can connect to the chip through the SAM-BA GUI and view the device memory. I have the starting address of my application code set to 0x6000 within the SAM-BA bootloader project and have made sure to link my application code with that starting address. When I try to load the application code through the SAM-BA gui it loads the first 0x2000 bytes of code and then times out with the following error:
-E- Generic::Write returned error (expected integer but got "-E- Timeout: The applet did not return.
I have tried changing the value of the BOOTPROT [2:0] fuse setting but this seems to make no difference in regards to this problem. Can anyone suggest what I might try next or where I could have screwed things up? The documentation is a bit shaky and I'm out of ideas. Thanks.