Commit Graph

9 Commits (5c22c271e808ac9a98e41d5a0e5fce89d19e3264)

Author SHA1 Message Date
Daniele Lacamera 5c22c271e8 F-12061: RP2350: RMW partial pages in hal_flash_write
flash_range_program() requires a page-aligned address and a
page-multiple length (pico-sdk ROM, invalid_params_if on both). The
partition-state path without NVM_FLASH_WRITEONCE issues 1-byte
(trailer) and 4-byte (magic) writes that violated the contract on
every state transition.

Keep the direct-program fast path for page-aligned page-multiple
writes; otherwise read the page back from XIP, merge the write, and
program the full page. The AND program keeps the trailer flag
accumulation intact.

Add unit-rp2350-flash-write: runs the extracted hal_flash_write
against a mock flash_range_program() that enforces the ROM contract
(4/6 checks fail pre-fix, 6/6 pass post-fix).
2026-09-02 12:15:51 +02:00
Daniele Lacamera 776378ca78 Preparing release v2.8.0 + update copyright 2026-04-16 13:11:56 +02:00
Daniele Lacamera d6ba220e55 [rp2350] Added cache in RAM for hal_flash_write 2025-09-05 14:45:35 +02:00
Daniele Lacamera d120000a63 rp2350: Added flash driver 2025-01-27 17:33:45 +01:00
Daniele Lacamera b6ed896086 Cleanup initialization code for rp2350.
+ TZEN=1 in config
+ Changed SRAM settings (allocated 256KB to the secure supervisor)
+ Updated documentation
+ Added FLASH_NSC area for sg stubs
2025-01-27 12:36:19 +01:00
Daniele Lacamera 6681e54a6a Working TZ supervisor 2025-01-27 10:29:28 +01:00
Daniele Lacamera ae82a60a88 rp2350: custom ldscript + TZEN work in progress 2025-01-24 13:06:38 +01:00
Daniele Lacamera 359c59fa47 Added IDE/pico-sdk dir to build wolfboot+blink app 2025-01-24 13:06:36 +01:00
Daniele Lacamera 0791d76d65 Draft: support for rp2350 2025-01-24 13:06:08 +01:00