Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lx_nand_flash_open takes too long time and continuously read pages within a block again and again #49

Open
kaotao opened this issue Jul 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kaotao
Copy link

kaotao commented Jul 17, 2024

Describe the bug
We have successfully making levelx working together with filex on a nxp 1052 board with a nand flash of 4Gb。We made out test program based on demo_filex_nand_flash.c. The performance especially lx_nand_flash_open is poor. After board startup and levelx & filex format, the first several times of lx_nand_flash_open consumes about several seconds, but later increases to more than 10 seconds and at last takes 30 seconds, which is too long( 12 seconds without logs on). Our nand spi clock speed is 40M HZ

Checking through the log, we found during lx_nand_flash_open, levelx will continuously read some pages within a block again and again(eg, read block 2047 pages 42 to 0, and then read block 2047 pages 42 to 2, and then read block 2047 pages 42 to 3 and keep on doing like this until read block 2047 pages 42 to 16). Can't levelx read pages within a block once and get all the required information, so as to increase performance? Meanwhile, i didn't find any cache function for nand flash.

Please also mention any information which could help others to understand
the problem you're facing:
We are using the latest levelx
Maybe we will implement cache function for nand flash

To Reproduce
After power on , levelx behaves all the same

levelx_performance_test.txt

@kaotao kaotao added the bug Something isn't working label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant