Skip to content

Conversation

@rahmanih
Copy link
Contributor

for each erased block write the word (1 | LX_NOR_ERASED) at the first word. this is actually equivalent to 0x80000001.
When the lx_nor_flash_open_extended() is called, only the erase count will remain valid.

@fdesbiens fdesbiens moved this to In review in ThreadX Roadmap Jan 6, 2026
for each erased block write the word (1 | LX_NOR_ERASED) at the
first word. this is actually equivalent to 0x80000001.
When the lx_nor_flash_open_extended() is called, only the erase count will remain
valid.

Remove the LX_DISABLE/LX_RESTORE sequence.
@rahmanih rahmanih force-pushed the fix_nor_flash_format branch from e82e42f to 9bf1c24 Compare January 8, 2026 11:12
@fdesbiens fdesbiens changed the title fix: force initial erase count to 1 Fix: force initial erase count to 1 Jan 12, 2026
@fdesbiens fdesbiens merged commit c032239 into eclipse-threadx:dev Jan 12, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from In review to Done in ThreadX Roadmap Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants