External flash integration with nRF5340 custom board

Hi

I'm currently working on integrating an AT25EU0021A-MAHN-T external flash onto my custom board, which features the nRF5340 chip. I'm using ncs v2.2.0, and I'm facing difficulties configuring the device tree for this external flash. 

I attempted to replicate the structure of the mx25r64 DTS from the nrf5340dk_nrf5340 DTS files, but unfortunately, I haven't been successful in getting it to work.

When I run the spi_flash example, I encounter the following error:

JEDEC ID [1f 11 01] expect [c2 28 17]

I suspect this issue is related to ID matching within the qspi nor drivers. When I commented out the checking part, the device initializes, but the spi_flash writing tests fail.

I'd greatly appreciate if you could specify the steps including the changes in device tree and configurations to properly integrate AT25EU0021A-MAHN-T with my custom board.

Thanks,

Roshan

Parents Reply Children
No Data
Related