Make project compilable with latest PlatformIO and STM32 platform 11 #38
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since version 10 of https://github.com/platformio/platform-ststm32/, custom board JSON files need to have a
product_line
value with which the startup script is selected.Without that, compiling this project gives
After correcting that, more errors arise during compilation
because this project includes its own CMSIS library but there is no
core_cmInstr.h
file. That was added.Finally, the value of the ldscript path is corrected.
Please note that
iap.py
is still wrong, it does aenv.Replace(LDSCRIPT_PATH="buildroot/ldscripts/BIGTREE_S42B_V1.ld")
and that file doesn't exist anywhere in this repo. But since thatextra_scripts
directive is commented out, it is not used anyways.You should be able to reproduce the errors if you update your PlatformIO core (
pio upgrade --dev
) and platforms (pio platforms update
) in the CLI.Another way of fixing would be of course to correct the line
to include the exact version with which it compiled, e.g.
[email protected]
. Since I don't know which versions you used, I fixed it by updating.Note that I only tested that the firmware compiled, not that it runs. Someone else would have to verify that, since I don't have the hardware.