Make project PlatformIO compilable#207
Open
maxgerhardt wants to merge 18 commits into
Open
Conversation
The *.s files were renamed to *.S because PlatformIO, under Linux, treats .s files differently (it runs them through the arm-none-eabi-as instead of the wanted arm-none-eabi-gcc -x assembler-with-cpp). To make this project still buildable with the Makfile, the wildcard is changed accordingly.
|
Builds fine directly from an unzip. Just the two trivial warnings which we've had all along - src\cr_startup_lpc21.S:63:1: warning: "/*" within comment [-Wcomment] src\cr_startup_lpc21.S:79:1: warning: "/*" within comment [-Wcomment] Also, again trivial, PlatformIO complains if there isn't an /include directory, empty or not. |
eoa-electronics
pushed a commit
to eoa-electronics/T-962_ImprovementsV2
that referenced
this pull request
Feb 15, 2023
Make Firmware PlatformIO compatible as of UnifiedEngineering#207
ImNoahDev
added a commit
to Lexithean/T-962_ReflowOS
that referenced
this pull request
Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PlatformIO is a Python commandline tool with supplementary VSCode and CLion extensions for building embedded firmwares in a platform-independent way. PlatformIO is also able to generate project files for 11 desktop IDEs in which the project can be seamlessly edited and uploaded.
Based on issue #206 and the related community topic I've created
platformio.iniconfiguration file so thatMakefilewould apply for compilation are applied during the PlatformIO buildversion.cfromgit describelpc21ispfor Windows (compiled with Visual Studio) and LinuxSo, building this firmware on the CLI is as simple as having PlatformIO installed (
pip install platformio) and executingpio runfor compiling andpio run -t uploadfor upload. (Or use the VSCode plugin to nicely load and edit the project). The experience is that it's an easily loadable, editable and uploadable project.The
Makefilebuildsystem still works exactly as before, and has been slightly adapted to be PlatformIO as well as Makefile compilable. These changes include renaming.sfiles to.S(PIO treats these extension differently) and removing the PlatformIO-generatedversion.cfile.