question

SimonLuk-6407 avatar image
1 Vote"
SimonLuk-6407 asked asergaz commented

Nand Flash that can be used by LevelX

I have some Samsung Nand Flash, models that are K9F1G08U0E.
In the chip manual, it is emphasized that each Page can only be Program once after Block Erase.

96881-screen-shot-2021-05-15-at-150649.png

I carefully studied the implementation process of LevelX, it seems that this kind of Nand Flash can not support, I need to find another way to achieve wear balance, is my understanding correct?


azure-rtos
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SimonLuk-6407 ,
From the documentation "Chapter 3 - Azure RTOS LevelX NAND support" I can see that you have full control to Erase the pages on a NAND Block

 INT nand_driver_block_erase(ULONG block, ULONG erase_count);

And then verify that the specified page of the specified block of the NAND flash is erased

 INT nand_driver_page_erased_verify( ULONG block, ULONG page);

And finally write to the Page into the specified block of the NAND flash

 INT nand_driver_write_page( ULONG block,  ULONG page, ULONG *source, ULONG words);

Can you please share if you were unsuccessful doing so on model K9F1G08U0E ?

Thanks!




0 Votes 0 ·

The characteristic of the K9F1G08U0E chip is that the same Page can only be written once after erasing. If you repeat it for the second time in the same place, it will produce error byte.

LevelX has many actions that are written repeatedly in the same location, such as lines 282-297 of the file lx_nand_flash_open.c.

97399-screen-shot-2021-05-18-at-163332.png

I tried to solve the problem of LevelX reading and writing on this chip on the portable read-write interface, but found that it didn't seem to solve the problem. Because it takes a large amount of Block-erase, and then Copy-back at the cost, affecting the read and write time and erase life.


1 Vote 1 ·

1 Answer

BhupendraNaphade-1986 avatar image
1 Vote"
BhupendraNaphade-1986 answered asergaz commented

Hi @SimonLuk-6407
This is a bug in the code which was recently reported from github.
We will be working on a fix.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Fyi this issue is also reported on github repo: https://github.com/azure-rtos/levelx/issues/9

0 Votes 0 ·