Skip to content
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

Manually maintain memory maps instead of parsing them from cubeprogdb. #460

Merged
merged 3 commits into from
Apr 9, 2024

Conversation

Dirbaio
Copy link
Member

@Dirbaio Dirbaio commented Apr 9, 2024

  • Remove OTP from memory map.
  • Sort memory regions by addr.
  • Manually maintain memory maps instead of parsing them from cubeprogdb.

First step towards fixing #301

The cubeprogdb has turned out to be a quite bad data source. It's not granular
enough (it has one entry per chip die, not per chip) so the previous code joined
the data with the C headers and cubedb to fill in the gaps, essentialy "guessing"
stuff. This has been quite error prone (see #301) and hard to make fixes to.

Instead, we're going to manually maintain memory maps in a .rs file. This way, if
something is wrong we can simply go and fix it.

This commit just migrates the existing data, even if it's wrong. (it does fix
a few very minor mistakes). Next steps is actually fixing the memory maps.

@embassy-ci
Copy link

embassy-ci bot commented Apr 9, 2024

First step towards fixing #301

The cubeprogdb has turned out to be a quite bad data source. It's not granular
enough (it has one entry per chip die, not per chip) so the previous code joined
the data with the C headers and cubedb to fill in the gaps, essentialy "guessing"
stuff. This has been quite error prone (see #301) and hard to make fixes to.

Instead, we're going to manually maintain memory maps in a .rs file. This way, if
something is wrong we can simply go and fix it.

This commit just migrates the existing data, even if it's wrong. (it does fix
a few very minor mistakes). Next steps is actually fixing the memory maps.
@embassy-ci
Copy link

embassy-ci bot commented Apr 9, 2024

@Dirbaio Dirbaio added this pull request to the merge queue Apr 9, 2024
Merged via the queue into main with commit 1f79295 Apr 9, 2024
1 check passed
@rmja
Copy link
Contributor

rmja commented Jun 3, 2024

It is a shame that we lost the otp information and that embassy-rs/embassy@1f3b690 was merged. What is the proper way to restore this functionality?

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.

2 participants