External flash identification error in nrf5340

Hello,

In our project we are using FLASH 2GBIT SPI/QUAD W25N02KVZEIR external flash together with nrf5340. I have made the flash definitions on v2.6.0\zephyr\boards\arm\nrf5340dk_nrf5340\nrf5340_cpuapp_common.dts.

 

We want to use some of the external flash in the project because it is needed for the network core update. But I get an error during the build process. The error output is in the picture.

Thank you for your support.

  • # Enable Bootloader
    CONFIG_BOOTLOADER_MCUBOOT=y
    
    # Enable SMP Server
    CONFIG_MCUMGR=y
    CONFIG_MCUMGR_GRP_IMG=y
    
    # CONFIG_MCUMGR_GRP_IMG dependencies
    CONFIG_FLASH=y
    CONFIG_IMG_MANAGER=y
    
    # CONFIG_IMG_MANAGER dependencies
    CONFIG_STREAM_FLASH=y
    
    # CONFIG_MCUMGR dependencies
    CONFIG_NET_BUF=y
    CONFIG_ZCBOR=y
    
    # Required for CONFIG_IMG_MANAGER
    CONFIG_FLASH_MAP=y
    
    
    CONFIG_BT=y
    CONFIG_LOG=y
    CONFIG_BT_SMP=y
    CONFIG_BT_PERIPHERAL=y
    CONFIG_BT_DIS=y
    CONFIG_BT_DIS_PNP=n
    CONFIG_BT_BAS=n
    CONFIG_BT_HRS=n
    CONFIG_SNS_SERVICE_ENABLED=y
    CONFIG_ECG_SERVICE_ENABLED=y
    CONFIG_PPG_SERVICE_ENABLED=y
    CONFIG_MOT_SERVICE_ENABLED=y
    CONFIG_COM_SERVICE_ENABLED=y
    CONFIG_BT_DEVICE_NAME="Zephyr Heartrate Sensor"
    CONFIG_BT_DEVICE_APPEARANCE=833
    CONFIG_BT_DEVICE_NAME_DYNAMIC=y
    
    CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y
    CONFIG_I2C=y
    CONFIG_CBPRINTF_FP_SUPPORT=y
    
    CONFIG_GPIO=y
    
    
    CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y
    
    CONFIG_MCUBOOT_USE_ALL_AVAILABLE_RAM=y
    CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y
    CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU_SPEEDUP=y
    CONFIG_NRF53_UPGRADE_NETWORK_CORE=y
    CONFIG_UPDATEABLE_IMAGE_NUMBER=2
    CONFIG_ADD_MCUBOOT_MEDIATE_SIM_FLASH_DTS=y
    
    
    # Enable bonding
    CONFIG_BT_SETTINGS=y
    
    CONFIG_SETTINGS=y
    
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
    CONFIG_I2C=y
    CONFIG_CBPRINTF_FP_SUPPORT=y
    
    # Enable DK LED and Buttons library
    CONFIG_DK_LIBRARY=y
    
    # This example requires more stack
    CONFIG_MAIN_STACK_SIZE=1152
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
    
    # Config logger
    
    
    # HCI ACL buffers size
    # BT_L2CAP_RX_MTU = CONFIG_BT_BUF_ACL_RX_SIZE - BT_L2CAP_HDR_SIZE
    CONFIG_BT_BUF_ACL_RX_SIZE=251
    CONFIG_BT_BUF_ACL_TX_SIZE=251
    
    # L2CAP SDU/PDU TX MTU
    CONFIG_BT_L2CAP_TX_MTU=247
    
    CONFIG_BT_HCI_VS=y
    CONFIG_BT_HCI_VS_EXT=y
    
    CONFIG_SERIAL=y
    CONFIG_LOG=y
    
    
    # CONFIG_SHELL=y
    
    CONFIG_LOG_CMDS=y
    
    CONFIG_REGULATOR=y
    CONFIG_SENSOR=y
    CONFIG_I2C_SHELL=y
    CONFIG_NRF_FUEL_GAUGE=y
    CONFIG_REQUIRES_FLOAT_PRINTF=y
    prj.conf

  • Hi,

    I have made the flash definitions on v2.6.0\zephyr\boards\arm\nrf5340dk_nrf5340\nrf5340_cpuapp_common.dts.

    In this image you get a warning stating that you're using Partition Manager, which will cause .dts definitions to be ignored

    Could you check if the issues persists if you're not using partition manager or if you set up your partitions using partition manager instead of dts? 

    Kind regards;
    Andreas

  • I don't understand how I should do it. We don't want to set up the partition manager right now. It can create the dimensions itself. How should I do it?

  • I also have some other bad news. The flash you've selected, i.e W25N02KVZEIR  is a SPI-NAND flash. We do not support NAND-devices with our devices. We only have support for SPI/QSPI-NOR flash devices, so the first step will unfortunately be to reevaluate the choice of external flash.

    Kind regards,
    Andreas

  • Thank you for your support. We will continue through Nor flash.I'm using the W25Q128JV model winbond flash that we have at the moment. The same problem persists during identification. What can I do at this stage.

     

    Changed to jedec-id and size.

Related