nrf5340 2.6 to 2.9 migration issues

We have developed device that used 2.6 and when moving to 2.9 everything broke apart and I cant get it to boot and I cant get any output from device. Be it from USB or SWD pins (as its custom board). 

It worked a week ago but one day it just broke, note that it worked for months on 2.9. I've isolated the issue to configuration and not code. 

As I need P0.11 and P0.09 I've remaped them based on 

 RE: nrf5340 Gpio forwarder availibility 

but that triggered something in build. It looked like there were some remnant 2.6 configs or something. 

Now, im totaly confused. Anything I do results in failed compilation and if it does not for some reason or a another (a lot of testing) the device wont boot and I cant get any debug information out of it. 

Please provide what files or info you need to help me diagnose this issue.

Regards, 

Parents Reply Children
  • any idea how to resolve this ? Ive tried it on 6 different boards and its not the flash issue, that is hardware issue. 

  • Need more details and debug information to be able speculate on what the issue could be.  When you tried the other boards, did you confirm that the program got stuck at the same line? And were you able to interface with the onboard flash when using in the previous version of your project? And are you able to read from the external flash by using the debugger? For example with nrfjprog : nrfjprog --memrd 0x10000000 --n 0x100 -f nrf53.

  • Same line.

    EDIT: This is from current. Will try with older version.
    EDIT2: Ran the command on older working code that boots up and everything works and got the same response.

    EDIT3: Please note that older version does not use external flash!


    ﲖ nrfjprog --memrd 0x10000000 --n 0x100 -f nrf53
    [ #################### ] 0.000s | Reading external memory, 0x0100 bytes @ 0x00000000 - Done
    0x10000000: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................|
    0x10000010: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................|
    0x10000020: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................|
    0x10000030: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................|
    0x10000040: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................|
    0x10000050: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................|
    0x10000060: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................|
    0x10000070: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................|
    0x10000080: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................|
    0x10000090: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................|
    0x100000A0: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................|
    0x100000B0: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................|
    0x100000C0: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................|
    0x100000D0: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................|
    0x100000E0: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................|
    0x100000F0: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF |................|

  • managed to solve issue. mostly it was because configs were in child_image and not in sysbuild folder. 

Related