QSPI AHB access on S32K148

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

QSPI AHB access on S32K148

Jump to solution
1,297 Views
Konrad_M
Contributor I

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.

0 Kudos
1 Solution
1,252 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

I have pointed to mentioned AN12193 where such function exists.

https://www.nxp.com/webapp/Download?colCode=AN12193SW&location=null

 

View solution in original post

4 Replies
1,280 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

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();

0 Kudos
1,265 Views
Konrad_M
Contributor I

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

 

0 Kudos
1,253 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

I have pointed to mentioned AN12193 where such function exists.

https://www.nxp.com/webapp/Download?colCode=AN12193SW&location=null

 

1,244 Views
Konrad_M
Contributor I

Thank you very much. That really was helpful.

 

0 Kudos