-
Notifications
You must be signed in to change notification settings - Fork 27
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
Resize ROM and FW_RAM, add RESETINFO partition inside FW_RAM. #320
Conversation
f06b964
to
66e5877
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The FW RAM test in testfw says Testing FW_RAM (takes 15s on hw)...
. This is no longer true since FW RAM size has increased. Please update the time estimate.
ff4a312
to
96a499c
Compare
I've tested on real hardware with both firmware and the testfw. I loaded the signer and did the usual: getting public key, signing a message, verifying. Everything works, all tests pass. I've also tested the firmware.bin created with |
In order to be able to leave data for firmware signalling the intention with a reset or to leave data for the next app in a chain of apps, we introduce a part of FW_RAM that can be used to store this data. In order to do this, we: - Change size of ROM from 6 KB to 8 KB. - Change size of FW_RAM, from 2 KB to 4 KB. - Add RESETINFO memory partition inside FW_RAM. - Add generation of map file. - Change CFLAGS from using -O2 to using -Os. - Update address ranges for valid access to ROM and FW_RAM. - Move stack to be located before data+bss and the RESETINFO data above them. This also means we introduce hardware stack overflow protection through the Security Monitor. - Revise firmware README to the new use of FW_RAM.
bd7f055
to
3c74f93
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Added docs to firmware about the new use of FW_RAM.
- Changed commit message (shorter title, with prefix and not ending in "."), added info about hardware-assisted stack overflow protection. Squashed doc updates.
I'm happy with these changes.
Description
Type of change
Please tick any that are relevant to this PR and remove any that aren't.
Submission checklist