NRF52840: How to get the actual Nordic API Error that caused the QSPIF SFDP Read Error

ajayk
Mon, 15 Feb 2021 20:56:18 +0000
Mbed OS

I have a custom board with an External NOR based flash, which supports the SFDP feature. Currently when using the QSPIF Block Device API to read and write to the Flash, the Block Device Initialization fails with error below:

QSPIF_BD_ERROR_PARSING_FAILED = -4002, SFDP Parsing failed

However I am trying to figure out the actual Nordic error that is causing this failure and If I add a printf statement in the mbed-os\targets\TARGET_NORDIC\TARGET_NRF5x\qspi_api.c in the sfdp_read method, the actual error is not being printed out, so I was wondering if there is a way to get the actual Nordic API error when the SFDP read fails?

FYI this the external flash we are using on the custom board is Winbond W25Q80DVSNIG

Thanks,
Ajay

4 posts - 3 participants