Hi,
I need to write my own bootloader for 5509A as I need to boot from SD card. I've got an I2C EEPROM on which I can load that home-made bootloader. This would read the "MyApp.b00" file that has been stored onto the SD card and start executing the code.
I've written all the code that reads the SD and writes it where it has to be (spra375F is clear enough to understand where to put data). Now I miss the last part: jump to "entry point".
How do I do that? Is it simply to move an absolute value in PC?
I've read that I can't write in PC so should I do:
asm(" MOV dbl(EntryPt), RETA");
asm(" RET");
This would write the 32-bit unsigned int "EntryPt" into register RETA that would then go into PC when executing the RETurn instruction.
Do I need to clear or set some other registers like stack pointer...?
Thanks in advance.
Romain