We use Spansion NOR flash on our S7 based controller. I get SSP error SSP_ERR_UNSUPPORTED for open() call. How do I add support for Spansion flash in BSP ?
You must create a custom BSP for your board and edit/change the bsp_qspi.h and bsp_qspi.c files.
The HAL level drivers use the BSP QSPI api to change the mode of operation of the device to/from XIP mode to normal SPI operation.
In reply to garyj:
In reply to sijug:
In reply to Prashanth:
In reply to Renesas Karol:
Are you using BSP files for DK-S7 or for Custom Board? DK-S7 BSP files cannot be modified as they will be overwritten when you build the project. I recommend that you use Custom User Board for your BSP choice and configure QSPI using overriden R_BSP_WarmStart function (which is by default weakly-defined).
In reply to adboc:
Now I can able to modify bsp_qspi.c/.h files and those files are overwritten when I build the project. But still open API errors with "SSP_ERR_UNSUPPORTED". And was looking at the forum discussion of TLHQ(https://renesasrulz.com/synergy/f/synergy---forum/8387/s7g2-qspi-mt25ql256-work-only-one-time), and tried to modify code as per their discussion but still no luck.