-
-
Notifications
You must be signed in to change notification settings - Fork 8
flash-start-address
put into sector start address
#16
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
Comments
I don't believe this is incorrect. I believe the assert is incorrect. It is ARM specific. Flash sectors can be mapped to any address space. |
@9names, could you look at it again? |
But why would the sector point to 0 if the flash is not there? I feel like that might just be an assumption rather than anything else. |
It's not really saying address zero though. It's algo base address (0x40000) + offset (0x0).
Yes, I am making an assumption that the reference example implementation was written this way specifically to convey this information. The choice of 0x40000 for the algo flash address is odd enough for me to consider it contrived. We could look at what mcu vendors have done when they encountered this issue if we want to confirm what the de-facto standard is here. |
Ah, sorry, I meant that the flash algo example makes the assumption that flash is always at 0. Let's investigate :) |
@9names, did You mix up a line here? I see the device start address 0x00000000. So, this example doesn't proof anything in our discussion here, since we can't see in the example, whether the sector start adress is absolute or relative. I think, some of the misunderstanding also has something to do with this: |
One thing I found that supports our thesis: |
No, I was viewing that example on mobile and the comments are displayed on the next line instead of inline. Oops. |
If I start a new project with
I see whatever I enter into
flash-start-address
ends up as the first (and only) sector start address inmain.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 intemplate.yaml
in line 20Nvm/range/start
and inmain.rs
in line 12:flash_address
.The text was updated successfully, but these errors were encountered: