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

Elf sections size check before flashing #284

Merged
merged 3 commits into from
Oct 19, 2020
Merged

Conversation

ceres-c
Copy link
Contributor

@ceres-c ceres-c commented Oct 14, 2020

Lately some issues have been popping up in both this repo #281 and RRG RfidResearchGroup#43. I also faced similar "randomic" issues but initially discarded them as unlucky flash.
When investigating the issue, @fptrs pointed me in the right direction and all these issues were due to code being written in the FRAM section used to store card configs. @maxieds opened an issue (#283) to confront on the best way to properly solve this problem, but I believe checking memory usage might be useful in any case.

I have tested this code on both linux and windows (cygwin basic install)

Due to the addition of new codecs and applications, code size grew to
overwrite the part of FRAM currently used to store card slots (settings).
This simple (although hacky) makefile command verifies if such an
issue will occur before flashing the firmware.
Had to make some minor changes to Commands.c and CommandLine.c
to allow building without these codecs
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