-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error message and question for example flash algorithm #12
Comments
It delivers at least some more expected error, when changing the parameters this way:
(changed
Question is: Why is |
Please copy a permalink if you're going to refer to code (so it's clear what you're talking about when someone notices months later). I assume it's this line: Going to paste it here so it's easier to refer to: assert!(props.sectors[0].address == 0);
It's not flash-start-address that's asserted to be 0, it's that the first sector start address is 0. You can have multiple groups of sectors (because some flash has sectors of different sizes). Example of a flash chip with multiple sector sizes:
|
Thank You very much for looking at it. Yes, it was that line (for future reference the "old" permalink: https://github.com/probe-rs/probe-rs/blob/54748e51d8dff83d80251f44ed95e6def5f60d93/probe-rs/src/flashing/flash_algorithm.rs#L106). Thank You, this sheds some light, obviously I misunderstood the source. Still I'd be interested in some working example rust source code for a flash algorithm for some common SPI NOR flash memory. Any idea where to find those? I was not lucky with a general internet search. |
After running this:
I get the follwing:
I'd expect to have a working "empty" test. Am I wrong or is there something wrong?
Are there any example rust source code for a flash algorithm for some common SPI NOR flash memory? I see only binaries, for instance in https://github.com/probe-rs/probe-rs/blob/master/probe-rs/targets/STM32H7_Series.yaml.
The text was updated successfully, but these errors were encountered: