Other Parts Discussed in Thread: UNIFLASH
Hello,
I wanted to know how I can make jumps in flash memory. It turns out that I am updating a program that is saved in FLASH1 (from position 0x00180000) through the CAN protocol. However, the jump takes me to sys_intvecs.asm (more specifically in prefetchEntry) and it does not executes the program.
The instruction I am using is the following:
#define direction_APP 0x00180000
int main(void)
{
...
...
...
//Jump to Flash BANK 1
application = (uint32_t)direction_APP;
((void(*)(void))application)();
...
...
...
}
I have verified that the data is successfully saved using UniFlash.
Thanks a lot and regards,
Leandro

