use xip and norflash initialise make the program run slow

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

use xip and norflash initialise make the program run slow

Jump to solution
698 Views
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 Kudos
Reply
1 Solution
634 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @wangfan_1987 ,

You can check the clock.

 

Regards,

Jing

View solution in original post

0 Kudos
Reply
2 Replies
635 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi @wangfan_1987 ,

You can check the clock.

 

Regards,

Jing

0 Kudos
Reply
578 Views
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 Kudos
Reply