use xip and norflash initialise make the program run slow

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

use xip and norflash initialise make the program run slow

ソリューションへジャンプ
1,313件の閲覧回数
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,249件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi @wangfan_1987 ,

You can check the clock.

 

Regards,

Jing

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,250件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi @wangfan_1987 ,

You can check the clock.

 

Regards,

Jing

0 件の賞賛
返信
1,193件の閲覧回数
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 件の賞賛
返信