use xip and norflash initialise make the program run slow

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

use xip and norflash initialise make the program run slow

跳至解决方案
1,316 次查看
wangfan_1987
Contributor I

I encountered a strage problem with the norflash write read.

  1. I have vertified a program run in norflash with XIP mode,it can process incomming usart data efficiently.
  2. I want to use part of the norflash to save some data,such like baudrate configiration,which only will be write and read during the system start up.I a the example in "MIMIX1176\SDK_2_12_0_MIMXRT1170-EVK\boards\evkmimxrt1170\driver_examples\flexspi\nor\polling_transfer\cm7".I have located the flexspi_nor_flash_ops and fsl_flexspi in ITCM,and it can write and read the norflash normally.
  3. When I merged the two programs,the norflash write and read still work normally.But It can not process incoming usart data efficently.The data queue continue full,seems like the program do not run fast enough.
  4. When I commnet out the function including flexspi_nor_flash_init(EXAMPLE_FLEXSPI) and flexspi_nor_enable_quad_mode(EXAMPLE_FLEXSPI),the program run fast as it used to be.

Is there someting changed the XIP configuration during the flexspi_nor_flash_init() and flexspi_nor_enable_quad_mode()?Or there is another possible?

 

0 项奖励
回复
1 解答
1,252 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @wangfan_1987 ,

You can check the clock.

 

Regards,

Jing

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,253 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @wangfan_1987 ,

You can check the clock.

 

Regards,

Jing

0 项奖励
回复
1,196 次查看
wangfan_1987
Contributor I

Thanks for your reply!

When comment out the line flexspi_clock_init() in the function void flexspi_nor_flash_init(FLEXSPI_Type *base), the speed of the program seems work normally.

0 项奖励
回复