|
The problem re-implementing the SAM-BA protocol in SRAM, is that the PC side application wants to push applets into SRAM. The protocol itself is not too hideous, the USB side might be fun.
All observed SAM9xxx parts enter the loader via the SWI vector. This points to the code *after* the boot device traversal, and the return address LR is set to when the SAM-BA Go command executes. In order for the IRQ/FIQ, and vectors, to be placed at 0 the ROM clearly needs remapping their, to provide as to close to the normal boot environment as possible.
Pull a copy of the 9G45 ROM situated at 0x400000, and send me a copy.
If you wish to consult on this, my email is CptTitanic at gmail.com
|