Conan custom command providing libhal development tools for embedded systems.
You must have Conan 2 installed and available on your machine for this to work.
Copy and paste the command below to install the hal conan command extension.
conan config install -sf extensions -tf extensions https://github.com/libhal/conan-hal-command.gitTest by writing:
conan hal --versionShould respond with something like the text below:
conan-hal-command: x.y.z
Set up your libhal development environment by configuring remotes and installing profiles.
What it does:
- Adds/updates the
libhalremote repository - Installs baremetal settings for embedded development
- Detects your OS/architecture and installs the appropriate host profile
- Installs ARM MCU device profiles (lpc4078, stm32f103c8, etc.)
- Installs ARM GCC compiler profiles
Note
This command will continue to be updated with additional platforms, and compilers as they roll out.
Usage:
# Basic setup
conan hal setup
# Verbose output
conan hal --verbose setup
# Skip remote configuration
conan hal setup --skip-remotes
# Skip user settings installation
conan hal setup --skip-user-settings
# Skip default host profile installation
conan hal setup --skip-default-profile
# Skip target device profiles installation
conan hal setup --skip-target-profiles
# Skip compiler profiles installation
conan hal setup --skip-compiler-profiles
# Combine multiple skip flags
conan hal setup --skip-default-profile --skip-compiler-profilesOptions:
--skip-remotes- Skip adding/updating the libhal remote--skip-user-settings- Skip user settings (baremetal settings) installation--skip-default-profile- Skip default host profile installation--skip-target-profiles- Skip target device profiles installation--skip-compiler-profiles- Skip cross compiler profiles installation
conan hal new- Create a new libhal project, device library, platform library, or board libraryconan hal download-compilers- Download & install all cross-compilersconan hal build-matrix- Cross build a library against every supported libhal targetconan hal package-matrix- Cross build package for a library against every supported libhal targetconan hal flash- Flash binary to target deviceconan hal debug- Start debug session with target device
--verbose- Enable verbose output (shows debug information)--version- Show version and exit