This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Jumping Between Applications

hey guys i want to implement two separate application programs on the same chip.

Say Application1 is stored in address start_address1 to end_address2 and Application2 is stored in address start_address2 to end_address2.

can i just directly jump to one application to another ? i am used to using this on simpler microcontroller, can i do this in the NRF52 too?

void JumpToApp(void) {

void (*fptr)(void);
fptr = (void (*)(void))APP1_RESET_ADDRESS;
fptr();

}

thanks.

Parents
  • Everyone has been discussing whether or not the vector tables work out.

    So just to be clear, you are saying that Ashlesh can call sd_softdevice_vector_table_base_set(SECOND_APP_START); Then do a software driven reset and everything will work out, correct?

    It looked to me that all the ISR vectors are driven off of offsets from the base application start. But, if anything isn't driven from an offset and is instead set to an actual address then this method won't work.

Reply
  • Everyone has been discussing whether or not the vector tables work out.

    So just to be clear, you are saying that Ashlesh can call sd_softdevice_vector_table_base_set(SECOND_APP_START); Then do a software driven reset and everything will work out, correct?

    It looked to me that all the ISR vectors are driven off of offsets from the base application start. But, if anything isn't driven from an offset and is instead set to an actual address then this method won't work.

Children
No Data
Related