Hi All,
I have written a bootloader to run in the TMS470M. if the bootloader decides that all is well, and the system should run application code, I would like to branch to the start of the application by loading the stack pointer, then program counter from the first 8 bytes of the application code.... i.e repicate the standard POR behaviour, and simplify the development of applications. my application will simply include standard startup code and vector table, which I can run as if it was a normal POR. The bootloader then loads the value at start of the application vector table and off it goes!
I'm not great at assembler, and I am struggling to find the correct instruction to load the SP and PC. Has anyone any example, or pointers? thanks. Phil