nrf9160dk fota using external flash

Hi all,


I'm wondering if there is a sample code that implements FOTA (would be great if it's from AWS S3 bucket) for nrf9160dk. 

This was the closest thing I was able to find, but it works for nrf52840dk. I guess I could add an overlay file for nrf9160dk, but I still don't know how to build/run test applications. Also this was done with ncs 1.7.1 and our product currently uses ncs 1.6.1. 


Cheers,
Aleksa

Parents
  • Hi Aleksa, 

    I would suggest to get familiar with the NCS simple examples before testing with something more complex. 
    Please try and test with the blinky example and make sure you can build and can see the LED blink. 

    It's recommended to use Visual Studio Code instead of Segger embeded Studio as the IDE. Please follow the instruction videos here.

    I tried again using west to compile and can see the partitions.yml generated correctly, so I don't know why the configuration in the overlay file was not used. You may want to edit the .dts file directly to add the configuration in the overlay file in. 

  • I am very familiar with the NCS NRF examples. I've tried setting up VSCode for ncs months ago, it had some weird errors so I gave up on it. I might give it another chance. I prefer working from shell though unless I really need to debug something. So SES is good enough in these ocassions. 

    I've tried building your example with the ncs v1.9.1, and it throws me following error:
    devicetree error: /chosen: undefined node label 'mx25r64'. 

    But I wasn't able to get zephyr samples to work on neither nrf9160dk or nrf52840dk, not even the hello world. I flash it, but logs never show up. Many examples in NCS behave this way, I have to edit prj.conf in order to get any log to work.

  • Hi Aleksa, 

    The nRF9160dk is slightly different from the nRF52840dk. mx25r64 is not configured by default in the nrf9160dk_nrf9160_common.dts (you can find it in nrf52840dk_nrf52840.dts) 

    So you would need to define it manually. Please follow the case that I pointed to in the last reply: https://devzone.nordicsemi.com/f/nordic-q-a/72543/mcu-boot-with-external-flash-littles-partition-and-secondary-image-partition

    In addition, the external flash may not work out of the box because it shared between nRF52840 and nRF9160. See here.

    Regarding the issue with zephyr examples, I would suggest to test again with a fresh copy of the SDK. Please install it via the Tool Chain Manager. You may want to create a new case to report the issue with zephyr sample. Have you tried to test with the blinky example and try to debug it ? 

Reply Children
No Data
Related