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

Regarding error while compiling timeslot example

Hi,

   

   

 Kit : nrf5340   

SDK: nrf connect SDK

I While testing the timeslot example in nrf samples part, I am getting the below error. Kindly tell me the procedure to program a empty core app into network core for booting up the network core.

Parents
  • I was able to build the sample using NCS v1.5.0 from the Toolchain Manager

    Then I clicked on File--Open nRF Connect SDK Project.. and chose the following Options:

    Then I clcked on Build-->Build and Run and got the following otuput:

    I did not get "Failed to download", only the "Illegal value" error. I will get in contact with someone internally about the latter error.

    Regarding "Failed to download", Could you try to erase all. That is, in SES, go to:

    Target -> Connect J-link, and then
    Target -> Erase All.

    Running the recover commands may also help: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf5340.html#readback-protection 

    However, I tried to look at the flash content after downloading the timeslot sample, and I saw that the empty app core was not flashed, it is generated in ncs\v1.5.0\nrf\samples\mpsl\timeslot\build_nrf5340pdk_nrf5340_cpunet\empty_app_core\zephyr\merged_CPUAPP.hex, but not flashed.

    It seems like you have to do it manually:

    • cd ncs\v1.5.0\nrf\samples\mpsl\timeslot\build_nrf5340pdk_nrf5340_cpunet\empty_app_core\zephyr
    • nrfjprog -f NRF53 --eraseall && nrfjprog -f NRF53 --program merged_CPUAPP.hex

    Be aware if you program the network core, the application will get erased and needs to get programmed again

    I'll get back to you soon about the remaining issues.

    Best regards,

    Simon

  • Hi,

       I have connected j link, used erase all options and then used build and run option.

       Getting illegal value in reg error. Kindly tell me how to solve it.

  • Did you get rid of the issue "Failed to download application"? 

    Regarding the illegal value error, I'm not sure what's causing this, but will look into it the next days.

Reply Children
Related