Closed
Description
If I start a new project with
cargo generate gh:probe-rs/flash-algorithm-template --name=algotest \
-d target-arch=thumbv7em-none-eabihf \
-d ram-start-address=0x20000000 \
-d ram-size=0x20000 \
-d flash-size=0x8000000 \
-d flash-page-size=0x100 \
-d flash-sector-size=0x10000 \
-d empty-byte-value=0xff
I see whatever I enter into flash-start-address
ends up as the first (and only) sector start address in main.rs
in line 18: sectors: [{address: ### }]
, which is wrong, because this is asserted to be zero here, as I learned here: #12 (comment).
In my opinion, the flash-start-address
is supposed to only end up in template.yaml
in line 20 Nvm/range/start
and in main.rs
in line 12: flash_address
.
Metadata
Metadata
Assignees
Labels
No labels