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

full_modem_update: "Failed to get flash device: MX25R64"

I am trying to bring in the spi_nor driver into our project and was getting errors reading back the jedec id on initialisation so I tried to run the nrf/samples/nrf9160/http_update/full_modem_update sample on my nrf9160dk board and am getting the same error there.

HW v1.0.0

NCS v1.5.0

See log below

*** Booting Zephyr OS build v2.4.99-ncs1  ***␍␊
Flash regions⇥	⇥	Domain⇥	⇥	Permissions␍␊
00 00 0x00000 0x08000 ⇥	Secure⇥	⇥	rwxl␍␊
01 31 0x08000 0x100000 ⇥	Non-Secure⇥	rwxl␍␊
␍␊
Non-secure callable region 0 placed in flash region 0 with size 32.␍␊
␍␊
SRAM region⇥	⇥	Domain⇥	⇥	Permissions␍␊
00 07 0x00000 0x10000 ⇥	Secure⇥	⇥	rwxl␍␊
08 31 0x10000 0x40000 ⇥	Non-Secure⇥	rwxl␍␊
␍␊
Peripheral⇥	⇥	Domain⇥	⇥	Status␍␊
00 NRF_P0               Non-Secure⇥	OK␍␊
01 NRF_CLOCK            Non-Secure⇥	OK␍␊
02 NRF_RTC0             Non-Secure⇥	OK␍␊
03 NRF_RTC1             Non-Secure⇥	OK␍␊
04 NRF_NVMC             Non-Secure⇥	OK␍␊
05 NRF_UARTE1           Non-Secure⇥	OK␍␊
06 NRF_UARTE2           Secure⇥	⇥	SKIP␍␊
07 NRF_TWIM2            Non-Secure⇥	OK␍␊
08 NRF_SPIM3            Non-Secure⇥	OK␍␊
09 NRF_TIMER0           Non-Secure⇥	OK␍␊
10 NRF_TIMER1           Non-Secure⇥	OK␍␊
11 NRF_TIMER2           Non-Secure⇥	OK␍␊
12 NRF_SAADC            Non-Secure⇥	OK␍␊
13 NRF_PWM0             Non-Secure⇥	OK␍␊
14 NRF_PWM1             Non-Secure⇥	OK␍␊
15 NRF_PWM2             Non-Secure⇥	OK␍␊
16 NRF_PWM3             Non-Secure⇥	OK␍␊
17 NRF_WDT              Non-Secure⇥	OK␍␊
18 NRF_IPC              Non-Secure⇥	OK␍␊
19 NRF_VMC              Non-Secure⇥	OK␍␊
20 NRF_FPU              Non-Secure⇥	OK␍␊
21 NRF_EGU1             Non-Secure⇥	OK␍␊
22 NRF_EGU2             Non-Secure⇥	OK␍␊
23 NRF_DPPIC            Non-Secure⇥	OK␍␊
24 NRF_REGULATORS       Non-Secure⇥	OK␍␊
25 NRF_GPIOTE1          Non-Secure⇥	OK␍␊
␍␊
SPM: NS image at 0xc000␍␊
SPM: NS MSP at 0x2001bc88␍␊
SPM: NS reset vector at 0x1028d␍␊
SPM: prepare to jump to Non-Secure image.␍␊
E: Device id 00 00 00 does not match config c2 28 17␍␊
*** Booting Zephyr OS build v2.4.99-ncs1  ***␍␊
HTTP full modem update sample started␍␊
Failed to get flash device: MX25R64␍␊

We have seen this on two dev kits (same hw version). Both boards have solder bridge 23 still connected so the CS pin wasn't disconnected.

Parents
  • Hi!

    Since the older versions of the DK's don't have an external flash, you need to make sure to specify the board revision when building the project (see Board revisions). 

    Best regards,

    Heidi

  • Hi Heidi,

    I missed that in the docs but unfortunately it is still throwing the same error.

    I used the following command to build

    west build -b [email protected] -p

    New log

    *** Booting Zephyr OS build v2.4.99-ncs1  ***␍␊
    Flash regions⇥	⇥	Domain⇥	⇥	Permissions␍␊
    00 00 0x00000 0x08000 ⇥	Secure⇥	⇥	rwxl␍␊
    01 31 0x08000 0x100000 ⇥	Non-Secure⇥	rwxl␍␊
    ␍␊
    Non-secure callable region 0 placed in flash region 0 with size 32.␍␊
    ␍␊
    SRAM region⇥	⇥	Domain⇥	⇥	Permissions␍␊
    00 07 0x00000 0x10000 ⇥	Secure⇥	⇥	rwxl␍␊
    08 31 0x10000 0x40000 ⇥	Non-Secure⇥	rwxl␍␊
    ␍␊
    Peripheral⇥	⇥	Domain⇥	⇥	Status␍␊
    00 NRF_P0               Non-Secure⇥	OK␍␊
    01 NRF_CLOCK            Non-Secure⇥	OK␍␊
    02 NRF_RTC0             Non-Secure⇥	OK␍␊
    03 NRF_RTC1             Non-Secure⇥	OK␍␊
    04 NRF_NVMC             Non-Secure⇥	OK␍␊
    05 NRF_UARTE1           Non-Secure⇥	OK␍␊
    06 NRF_UARTE2           Secure⇥	⇥	SKIP␍␊
    07 NRF_TWIM2            Non-Secure⇥	OK␍␊
    08 NRF_SPIM3            Non-Secure⇥	OK␍␊
    09 NRF_TIMER0           Non-Secure⇥	OK␍␊
    10 NRF_TIMER1           Non-Secure⇥	OK␍␊
    11 NRF_TIMER2           Non-Secure⇥	OK␍␊
    12 NRF_SAADC            Non-Secure⇥	OK␍␊
    13 NRF_PWM0             Non-Secure⇥	OK␍␊
    14 NRF_PWM1             Non-Secure⇥	OK␍␊
    15 NRF_PWM2             Non-Secure⇥	OK␍␊
    16 NRF_PWM3             Non-Secure⇥	OK␍␊
    17 NRF_WDT              Non-Secure⇥	OK␍␊
    18 NRF_IPC              Non-Secure⇥	OK␍␊
    19 NRF_VMC              Non-Secure⇥	OK␍␊
    20 NRF_FPU              Non-Secure⇥	OK␍␊
    21 NRF_EGU1             Non-Secure⇥	OK␍␊
    22 NRF_EGU2             Non-Secure⇥	OK␍␊
    23 NRF_DPPIC            Non-Secure⇥	OK␍␊
    24 NRF_REGULATORS       Non-Secure⇥	OK␍␊
    25 NRF_GPIOTE1          Non-Secure⇥	OK␍␊
    ␍␊
    SPM: NS image at 0xc000␍␊
    SPM: NS MSP at 0x2001bc88␍␊
    SPM: NS reset vector at 0x1028d␍␊
    SPM: prepare to jump to Non-Secure image.␍␊
    E: Device id 00 00 00 does not match config c2 28 17␍␊
    *** Booting Zephyr OS build v2.4.99-ncs1  ***␍␊
    HTTP full modem update sample started␍␊
    Failed to get flash device: MX25R64␍␊

  • That's a bit strange. I will test on an nRF9160 DK v0.14 or later tomorrow to see if I can reproduce this. 

    It might be a hardware issue.

  • I'm not able to reproduce your issue, unfortunately, and from the log, specifically

    E: Device id 00 00 00 does not match config c2 28 17

    it doesn't look like any flash device is found (see drivers/flash/spi_nor L1064).

    Are you sure you're using the version of the DKs that have external flash? Could you send me a picture so I can confirm as well? 

  • Hi Heidi,

    Sorry for the delay, I was off for most of last week. Yes, I believe we have the boards with external flash. Attached are pictures of one of the two boards we tested

Reply Children
No Data
Related