K81 with QSPI/XIP and high IRQ rate

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

K81 with QSPI/XIP and high IRQ rate

跳至解决方案
1,258 次查看
alexklupsch
Contributor III

Hi,

i have a K81 with QSPI and some ADC code that should run from the QSPI. 

My first test gives some strange results, from internal flash averything runs ok, but when i move the IRQ handler to QSPI a simple LPUART communication lost some characters, sometimes.

My question is, can i run any code, even a high rate IRQ handler, from QSPI (XIP) without influence other stuff?

BR

Alex

1 解答
1,096 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Alex,
The max QSPI AHB buffer is 512 byte. If you can't put all the LPUART service code in AHB buffer, every "missed" access to the buffer causes the controller to clear the buffer and fetch QSPI_BUFxCR[ADATSZ] amount of data from the serial flash. If this happens in a high frequency, the average instruction execution speed could be slower than you image. So my suggestion is put those speed sensitive code in internal flash, or use DMA.

Regards

Jing

在原帖中查看解决方案

2 回复数
1,096 次查看
alexklupsch
Contributor III

Hi Jing,

thank's for the info.

BR

Alex

0 项奖励
回复
1,097 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Alex,
The max QSPI AHB buffer is 512 byte. If you can't put all the LPUART service code in AHB buffer, every "missed" access to the buffer causes the controller to clear the buffer and fetch QSPI_BUFxCR[ADATSZ] amount of data from the serial flash. If this happens in a high frequency, the average instruction execution speed could be slower than you image. So my suggestion is put those speed sensitive code in internal flash, or use DMA.

Regards

Jing