Simple Mbed OS app
List Hello World requirements here
To clone and deploy the project in one command, use mbed import
and skip to the
target and toolchain definition:
mbed import https://gitlab.com/catie_6tron/hello-world.git hello-world
Alternatively:
-
Clone to "hello-world" and enter it:
git clone https://gitlab.com/catie_6tron/hello-world.git hello-world cd hello-world
-
Create an empty Mbed CLI configuration file:
-
On Linux/macOS:
touch .mbed
-
Or on Windows:
echo.> .mbed
-
-
Deploy software requirements with:
mbed deploy
Define your target (eg. ZEST_CORE_STM32L496RG
) and toolchain:
mbed target ZEST_CORE_STM32L496RG
mbed toolchain GCC_ARM
Export to Eclipse IDE with:
mbed export -i eclipse_6tron
Compile the project:
mbed compile
Program the target device (eg. STM32L496RG
for the Zest_Core_STM32L496RG) with a J-Link
debug probe:
python dist/program.py STM32L496RG BUILD/ZEST_CORE_STM32L496RG/GCC_ARM/hello-world.elf
Debug on the target device (eg. STM32L496RG
for the Zest_Core_STM32L496RG) with a
J-Link debug probe.
-
First, start the GDB server:
JLinkGDBServer -device STM32L496RG
-
Then, in another terminal, start the debugger:
arm-none-eabi-gdb BUILD/ZEST_CORE_STM32L496RG/GCC_ARM/hello-world.elf
Note: You may have to adjust your GDB auto-loading safe path or disable it completely by adding a .gdbinit file in your $HOME folder containing:
set autoload safe-path /