-
Notifications
You must be signed in to change notification settings - Fork 3k
Define SD and STORAGE for the MAX32630FTHR and prevent warnings during compilation on Mbed 5.12 and above #13743
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
MAX32630FTHR has an on-board uSD slot, but targets.json did not contain info about this until now. Handling it in targets.json is a better idea than doing it via mbed_app.json as most people can not figure out how to do that.
@idea--list, thank you for your changes. |
In Mbed OS 5.12.0 mbed_toolchain.py has been introduced, that automatically defines the macro TARGET_NAME (on line 241). This leads to a high number of generating the following warning: 'TARGET_NAME' macro redefined while compiling code for MAX32630FTHR on Mbed OS 5.12 and above. This patch fixes it, while it keeps the definition in place for lower versions that lack mbed_toolchain.py
In Mbed OS 5.12.0 mbed_toolchain.py has been introduced, that automatically defines the macro TARGET_NAME (on line 241). This leads to a high number of generating the following warning: 'TARGET_NAME' macro redefined while compiling code for MAX32625 on Mbed OS 5.12 and above. This patch fixes it, while it keeps the definition in place for lower versions that lack mbed_toolchain.py
In Mbed OS 5.12.0 mbed_toolchain.py has been introduced, that automatically defines the macro TARGET_NAME (on line 241). This leads to a high number of generating the following warning: 'TARGET_NAME' macro redefined while compiling code for MAX32620C on Mbed OS 5.12 and above. This patch fixes it, while it keeps the definition in place for lower versions that lack mbed_toolchain.py
targets/targets.json
Outdated
"PORTINOUT", | ||
"PORTOUT", | ||
"PWMOUT", | ||
"SD", |
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.
please fix the alignment here
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.
@0xc0170
Opened up targets.json in github's file editor. It seemed it was aligned properly to all the other lines.
Copied that line from Mbed Studio, that might have handled indentation different from what github expects.
Now i deleted any tabbing for that line (at some point it jumped several characters at once, so there might have been a special tabbing) and indented that line with plain space characters. Hope it is fine now.
@0xc0170 |
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
MAX32630FTHR has an on-board uSD slot, but targets.json did not contain info about this until now.
Handling it in targets.json is a better idea than doing it via mbed_app.json each time as most people can not figure out how to do that.
Summary of changes
Tells Mbed this target has an SD slot, thus when using SD related APIs it can compile without errors.
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers