2008-01-31 08:30 AM
AN 2557(IAP using USART)
2011-05-17 03:22 AM
Hello STone-32,
I have a question regarding source code of AN 2557(IAP using USART) In the source code file main.c what is the idea behind to check the Flash if it is already programmed. How do we know that this value will always be 0x20000000 for any software. code is here: /* Test if user code is programmed starting from address ''ApplicationAddress'' */ if (((*(vu32*)ApplicationAddress) & 0x2FFF0000 ) == 0x20000000) { /* Jump to user application */ JumpAddress = *(vu32*) (ApplicationAddress + 4); Jump_To_Application = (pFunction) JumpAddress; /* Initialize user application's Stack Pointer */ __MSR_MSP(*(vu32*) ApplicationAddress); Jump_To_Application(); }