This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

west build (intermitently) fails when OTA enabled (CONFIG_ZIGBEE_FOTA) and imgtool.py misbehaving... why?

Have a NCS/ZBoss-based Zigbee app running and I want to enable FOTA, and it was failing with missing app_update.bin file.

Thinking it might be something with my own code, I enabled FOTA for the light_switch sample and built it, that's when things got strange. 

The end of the process is (sometimes??):

Looks good.  But when I ran it again:

[Errno 2] No such file or directory: '/path/to/dev/nrf/build/zephyr/app_update.bin'

Odd... So, running west build in a loop (with -p always) and piping output to log files, I find that 11 runs out of 30 produce the update image, and the rest fail.  Same command, pristine builds, different results.  It's almost every second run for a while, but not really.

Successes:

Failures:

and it never succeeds with my own code.

The questions are basically what is causing this, or how can I get the system to at least tell me what's wrong when it's ending with:

  • Hello,

    We will look into this beginning of next week.

    Kenneth

  • Hi Pat,

    From your other ticket about FOTA (#284547) I assume you are using nRF5340 DK, and as I see there you have found the documentation that states that Zigbee FOTA is currently only supported on nRF52840. Therefore I will consider this ticket solved, and I will answer you in your other ticket regarding your questions there.

    Best regards,

    Marte

  • That is some pretty weird behaviour if that's what it's about--but yes, was trying for the nRF5340.  Hoping we can get FOTA working there to be able to make some real products around that chip. 
    Anyhow... closing this.