Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

Cannot jump from boot to application when using in thread

$
0
0

Hello all,

 

I cannot jump from boot code to the application code if my boot uses threadx component and not in hal driver .

 

My jump instruction is in one thread and the jump instruction is as below.

static void run_app(void)
{
ssp_err_t status;

 

user_app_fnptr *p_jump_to_app; // Function pointer to the user application.

p_jump_to_app = ((user_app_fnptr*)IMAGE_APP_ADDRESS_RUN) + 1U; // Point to the start reset vector for the application.
__disable_irq(); // Disable interrupts
SCB->VTOR = (uint32_t)IMAGE_APP_ADDRESS_RUN; // Update the vector table to the reset vector of the application.
__DSB(); //Complete all explicit memory accesses.
__set_MSP(*((uint32_t*)IMAGE_APP_ADDRESS_RUN)); //Set stack for the application
(*p_jump_to_app)();

}


Viewing all articles
Browse latest Browse all 5781

Trending Articles



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