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

nRF5340 NET CPU does not start from power on reset

I'm using the empty_app_core project for the APP CPU and my NET CPU binary does not start. I suspect the NETWORK.FORCEOFF is holding the NET CPU in reset upon startup. I tried using the following command to bring it out of reset, but I still do not see it executing. However, using "nrfjprog -f NRF53 --coprocessor CP_NETWORK --reset" I can see my application running. 

How can I get the NET CPU executing reliably on pin/system reset?

int main(void) {
  network_gpio_allow();
  nrf_reset_network_force_off(NRF_RESET, false);

  /* Power off RAM and suspend CPU */
  disable_ram_and_wfi(&NRF_VMC->RAM[0].POWER,
                      &NRF_VMC->RAM[(sizeof(NRF_VMC->RAM)/sizeof(NRF_VMC->RAM[0])) - 1].POWER);
}
Parents Reply
  • Haakonsh,

    Thanks for the suggestion. I was almost sure that was going to solve the problem. But then I realized my upgrade procedure for the APP CPU wasn't updating flash correctly. I just made a silly mistake trying to program the device. Now I can reliably boot the NET CPU.

    Thanks. Sorry for the misdirection, but the original code is correct.

    John

Children
Related