Does somebody know where I can find examples how to use AHB access to external flash via QSPI?
AN12193 is accompanied by software but I can not find it.
Solved! Go to Solution.
I have pointed to mentioned AN12193 where such function exists.
https://www.nxp.com/webapp/Download?colCode=AN12193SW&location=null
AHB access is memory mapped access over address range 6800_0000-6FFF_FFFF. Once you have it configured you may access this space same way as internal SRAM or also you see the content by debugger memory dump window.
In the mentioned software there is a function
Quadspi_AHB_enable();
Thanks for your replay but:
Such function does not exist. I use
S32 Design Studio for ARM
Version: 2.2
Build id: 200116
Instead of Quadspi_AHB_enable() I found
status_t QSPI_DRV_AhbSetup(uint32_t instance, const qspi_ahb_config_t *config)
but have no idea how and why initialize qspi_ahb_config_t
typedef struct
{
uint8_t masters[QSPI_AHB_BUFFERS]; /*!< List of AHB masters assigned to each buffer */
uint16_t sizes[QSPI_AHB_BUFFERS]; /*!< List of buffer sizes */
bool allMasters; /*!< Indicates that any master may access the last buffer */
bool highPriority; /*!< Indicates that the first buffer has high priority */
} qspi_ahb_config_t;
Best regards, Konrad
I have pointed to mentioned AN12193 where such function exists.
https://www.nxp.com/webapp/Download?colCode=AN12193SW&location=null
Thank you very much. That really was helpful.