QSPI AHB access on S32K148

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

QSPI AHB access on S32K148

跳至解决方案
1,277 次查看
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 项奖励
1 解答
1,232 次查看
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

 

在原帖中查看解决方案

4 回复数
1,260 次查看
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 项奖励
1,245 次查看
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 项奖励
1,233 次查看
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,224 次查看
Konrad_M
Contributor I

Thank you very much. That really was helpful.

 

0 项奖励