libhal compatible device library for the micromod device.
In order to build applications using the micromod library, you need the micromod profiles. To install them onto your system run:
conan config install -sf conan/profiles/v1 -tf profiles https://github.com/libhal/libhal-micromod.git
If you haven't already, install the ARM GCC profiles as well:
conan config install -tf profiles -sf conan/profiles/v1 https://github.com/libhal/arm-gnu-toolchain.git
Run the following command to build the applications in the demos/
directory:
conan build demos -pr mod-lpc40-v5 -pr arm-gcc-12.3
conan build demos -pr mod-stm32f1-v4 -pr arm-gcc-12.3
The final build files will be in the libhal-micromod/demos/build/micromod/<insert_profile_name>/Release
.
The usual rules for a libhal build directory exists here. For every .cpp
source file in the applications directory, there will be a .elf.bin
file in
the build directory. Use the following flashing commands for the micromod
processors. Replace /dev/tty.usbserial-1102
with the appropriate serial
device.
nxpprog --device /dev/tty.usbserial-1102 --control --cpu lpc4078 --binary demos/build/micromod/mod-lpc40-v5/blinker.elf.bin
stm32loader -p /dev/tty.usbserial-1102 -e -w -v demos/build/micromod/mod-stm32f1-v4/blinker.elf.bin
stm32loader -p /dev/tty.usbserial-1102 -e -w -v demos/build/micromod/mod-stm32f1-v5/blinker.elf.bin
See CONTRIBUTING.md
for details.
Apache 2.0; see LICENSE
for details.