Tool/software:
Hi,
I developed a booloader, based on openbtl. The flash process works. The content of the sreg file is placed to following locations:
0x10000 - 0x1001F: vector table
0x10020 - 0x1004F: checksum
0x10050 - xxxxxxx : application
After successful verification of the checksum, the bootloader initiates a sw reset (systemREG1->SYSECR = 0x00008000UL;) and catches it in sys_startup.c where it attempts to start the application:
uint32_t startAddr = 0x10000;
((void (*)(void)) startAddr)();
The bootloader throws an undefined instruction exception.
I wonder what I am missing …
Best Regards,
Juergen