Hello,
I resolved!!!
the problem was in the function for jumping to the application.
In uVision Keil Tools the function for jump to the application is:
JumpToUserApplication
msr msp, r0
msr psp, r0
bx r1
END
is called in the main function:
#define RELOCATED_VECTORS 0x10005000 // Start address of relocated interrutp vector table
void JumpToUserApplication(LWord userSP, LWord userStartup);
/**
************************************************** **************************
* Funzione di main
*
* \param nessuno
*
* \return nessuno
*
************************************************** **************************
*/
int main ( void )
{
JumpToUserApplication(*((unsigned long*)RELOCATED_VECTORS), *((unsigned long*)(RELOCATED_VECTORS+4)));
while(1)
{
}
}
U.I.
I resolved!!!
the problem was in the function for jumping to the application.
In uVision Keil Tools the function for jump to the application is:
JumpToUserApplication
msr msp, r0
msr psp, r0
bx r1
END
is called in the main function:
#define RELOCATED_VECTORS 0x10005000 // Start address of relocated interrutp vector table
void JumpToUserApplication(LWord userSP, LWord userStartup);
/**
************************************************** **************************
* Funzione di main
*
* \param nessuno
*
* \return nessuno
*
************************************************** **************************
*/
int main ( void )
{
JumpToUserApplication(*((unsigned long*)RELOCATED_VECTORS), *((unsigned long*)(RELOCATED_VECTORS+4)));
while(1)
{
}
}
U.I.