Skip to content

Conversation

@jmaralo
Copy link
Member

@jmaralo jmaralo commented Oct 23, 2024

This PR adds support for both compilation for the simulator on the host target (linux support only) or for the MCU. The compilation is configured by passing the -sim flag with either "ON" or "OFF" to the python build.py script or by calling CMake with -DSIMULATE=TRUE or -DSIMULATE=FALSE.

The code for the simulator still doesn't compiles because there are still includes from the hal, wich cannot be compiled for the host architecture (it has ASM instructions for the ARM MCU embedded in the code). That should be fixed once all modules are converted, but will take too much for the scope of this PR.

Also the vscode config files have been updated to reflect the changes and the build script now chooses the output path based on the options selected, so that the incremental build is more useful if for example the ST-LIB is first compiled for a project with ethernet and then recompiled for a project without ethernet.

@jmaralo jmaralo self-assigned this Oct 23, 2024
Copy link
Member

@g0nz4I0 g0nz4I0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still doesnt compile I believe due to ARM inlined assembly

@jmaralo jmaralo merged commit bda01eb into development Oct 26, 2024
@jmaralo jmaralo deleted the bugfix/not-compiling-after-changes branch October 26, 2024 17:07
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.

3 participants