-
Notifications
You must be signed in to change notification settings - Fork 3k
Compile time config flag MBED_CONF_SD_CRC_ENABLED for CRC in SD #8573
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
Conversation
b6290a9
to
810eb3c
Compare
810eb3c
to
651ed87
Compare
@@ -8,7 +8,8 @@ | |||
"FSFAT_SDCARD_INSTALLED": 1, | |||
"CMD_TIMEOUT": 10000, | |||
"CMD0_IDLE_STATE_RETRIES": 5, | |||
"SD_INIT_FREQUENCY": 100000 | |||
"INIT_FREQUENCY": 100000, |
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.
Why did the the name change?
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.
Initial name setting was a typo, "SD_" was not needed as the tools append "MBED_CONF_SD_" for all the config options, with old name the macro would be "MBED_CONF_SD_SD_INIT_FREQUENCY"
CRC class adds to the ROM size even when disabled runtime, because of addition of ROM tables. Addition a compile time option to disable CRC is required for reducing code size of SD driver component. Library config option `SD_CRC_ENABLED` is added, set it to 0 to disable CRC feature in SD.
651ed87
to
e7bdf3c
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.
LGTM - thanks
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.
wooh!
/morph build |
Build : SUCCESSBuild number : 3583 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 3193 |
Test : FAILUREBuild number : 3357 |
Not sure what happened to |
/morph test |
Note: This PR is now a part of a rollup PR (#8686). No further work is needed here, as once that PR is merged, this PR will also be closed and marked as merged. If any more commits are made in this PR, this PR will remain open and have to go through CI on its own. |
Test : SUCCESSBuild number : 3360 |
This is on top of 5.11 changes |
Description
CRC class adds to the ROM size even when disabled runtime, because addition of ROM tables.
Addition a compile time option to disable CRC is required for reducing code size of SD driver component.
Pull request type
Not sure if this is breaking change, though CRC functionality was added but default was disabled as runtime option and now it will be disabled as default with compile time option.Config option in mbed_lib.json provides CRC feature as default.