Utilize external flash with nrf9160 SiP on Custom board.

Hi,

I would like to use the external flash to increase the internal flash, no intention, at the moment, to use it for MCUBoot file or FOTA .

How do I configure it, if it is even possible.

Info:

- nRF Connect SDK: 2.0.0

- nrf9160 SiP on custom board.

- Flash commuincate over SPI.

- Flash is working.

Thanks in advance.

Parents
  • DevZone does not let me reply inline to the last comment, so I reply in the "top" instead.

    Replay said:
    I have not found anything that is giving me an idea of why it should not work.

    If you upload these files, I can have a look myself.
    Also include the same files for the application alone (since it works).

    Replay said:
    boards/arm/customBoard_nrf9160/c

    If you post the board folder, I can have a look at this as well.

    If you do not want to upload your files in a public case, you can just create a new private ticket for these, and then   and I will find it.

    Do you have a nRF9160DK?
    Cause if you do, we can try to reproduce for the DK and then I can have a similar project on my end.

    Replay said:
    and I'm totally lost on the cause for this failure.

    This case is approaching the point where I struggle to help without being able to reproduce.
    If you have an extra custom PCB laying around, you can ship it to me, and I can reproduce the issue here.
    This way, I can use the experience and tools I got at my disposal to debug this issue.
    Let me know if you want this, and I will send you my shipping info on your DevZone-registered email.

    Regards,
    Sigurd Hellesvik

  • Hi Sigurd

    I really appreciate the support.

    There has been a development in the situation. I cannot explain how but the mcuboot secondary image is now placed in external flash and the user app is being booted.

    The problem is now that im getting this on boot:

     

    *** Booting Zephyr OS build v3.1.99-ncs1-2  ***
    I: Starting bootloader
    W: Failed reading sectors; BOOT_MAX_IMG_SECTORS=256 - too small?
    W: Cannot upgrade: not a compatible amount of sectors
    I: Bootloader chainload address offset: 0x10000
    I: Jumping to the first image slot
    *** Booting Zephyr OS build v3.1.99-ncs1-2  ***
    
    ... Main app started ...

    Maybe this can be solved with a easy setting?

    I have tried increasing CONFIG_BOOT_MAX_IMG_SECTORS=512.

    - Replay

Reply
  • Hi Sigurd

    I really appreciate the support.

    There has been a development in the situation. I cannot explain how but the mcuboot secondary image is now placed in external flash and the user app is being booted.

    The problem is now that im getting this on boot:

     

    *** Booting Zephyr OS build v3.1.99-ncs1-2  ***
    I: Starting bootloader
    W: Failed reading sectors; BOOT_MAX_IMG_SECTORS=256 - too small?
    W: Cannot upgrade: not a compatible amount of sectors
    I: Bootloader chainload address offset: 0x10000
    I: Jumping to the first image slot
    *** Booting Zephyr OS build v3.1.99-ncs1-2  ***
    
    ... Main app started ...

    Maybe this can be solved with a easy setting?

    I have tried increasing CONFIG_BOOT_MAX_IMG_SECTORS=512.

    - Replay

Children
Related