Skip to content

Fixed NOR extended cache zero base handling#79

Open
fdesbiens wants to merge 1 commit into
eclipse-threadx:devfrom
fdesbiens:fix-nor-zero-base-extended-cache
Open

Fixed NOR extended cache zero base handling#79
fdesbiens wants to merge 1 commit into
eclipse-threadx:devfrom
fdesbiens:fix-nor-zero-base-extended-cache

Conversation

@fdesbiens

@fdesbiens fdesbiens commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixed NOR extended cache handling when lx_nor_flash_base_address is 0.

The extended cache previously used LX_NULL as the implicit invalid cache-entry marker, which made address zero unusable as a valid logical NOR flash address. This change adds an explicit cache-entry validity flag and updates read/write/block erase cache handling accordingly.

Testing

  • Added a regression-only zero-base NOR driver that treats flash addresses as logical offset tokens.
  • Verified cache fill, repeated read cache hit, write cache update, and block erase invalidation at logical address zero.
  • Code compiles and full regression test suite passes.

Co-authored-by: Codex <codex@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant