Quantcast
Channel: Infineon Forums
Viewing all articles
Browse latest Browse all 9892

Boot loader custom, jump to application

$
0
0
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.

Viewing all articles
Browse latest Browse all 9892

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>