HI everybody ,
I need in my code to do a jump ( from app to boot ) .
one option is to use this JUMP to APPLICATION ( I found in the past in some app note and you can see in my PS ) .
it is working , but I am scared maybe will not work in future due to compiler settings/cahnges etc .
questions : do you reccomend it or better a long branch ?
any suggestion/idea ?
thank you
regards
Carlo
PS here us the code
//------- DECLARATIONS ----------------------------
static pFunction JumpToApplication;
typedef void (*pFunction)(void);
//----------------------------------------------------------
[…]
692 JumpToApplication = (pFunction) (ulStartAddress/2);
ESTOP0:
3f4fe1: 2901 CLRC SXM
3f4fe2: 761F02DC MOVW DP, #0x2dc
3f4fe4: 0660 MOVL ACC, *-SP[32]
3f4fe5: FF40 SFR ACC, 1
3f4fe6: 1E2A MOVL @0x2a, ACC
694 JumpToApplication();
3f4fe7: FF69 SPM #0
3f4fe8: C52A MOVL XAR7, @0x2a
3f4fe9: 3E67 LCR *XAR7
695 }