bootloader jump to uapp

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

bootloader jump to uapp

135 Views
mehmetkaradag
Contributor III

hello,

i am using IMXRT1170. i want to jump other sector of the flash. i am on core M4. but i receive hard fault. code is below. 

flash base address is 0x800_0000 in core M4. isn''t it?

#define USER_APP_BASE_ADDR (0x8010000U) // sector2

void(*userApp)(void);
 
uint32_t svalue = *(volatile uint32_t *)USER_APP_BASE_ADDR;   //received UAPP MSP val.
__set_MSP(svalue);
 
    uint32_t resethandler_address = *(volatile uint32_t *) (USER_APP_BASE_ADDR + 4); //received uapp reset handler.
 
    userApp = (void*) resethandler_address;
 
GPIO_PinWrite(GPIO9, 3, 1U);
 
userApp();
 
And as i learn is vector table is in RAM that's why i don't change vector table's location in userApp. is it correct?
 

thanks for help.

0 Kudos
2 Replies

63 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @mehmetkaradag,

Are you still experiencing this issue?

I noted that you created a new community post where you mention that you successfully jump to userApp. If this is the case, I will continue supporting you on the newer topics rather than this one.

BR,
Edwin.

0 Kudos

46 Views
mehmetkaradag
Contributor III

Hi, 

Yes, I need help with the issues I mentioned in my last post. Can you help me with that?

Thanks. 

 

0 Kudos