This repo uses submodules, so execute this after cloning:
git submodule update --init --recursive
This app requires GCC toolchain - it is set by default, but can be reset with mbed toolchain GCC_ARM
command.
To build:
mbed target WUNDERBAR
(only needed once, default target isWUNDERBAR_APP_BIN
)mbed compile --profile tools/debug.json -l tools/wunderbar.ld
(--profile tools/release.json
can be used to compile release/optimized binary)
To flash:
JLinkExe -commanderscript flashwb.jlink
To build:
mbed compile --profile tools/debug.json -l tools/wunderbar.ld
To flash:
- Switch Wunderbar to DFU mode (press & release reset button while user button is pressed)
dfu-util -R -d 15a2:1000 -a 0 -D BUILD/WUNDERBAR_APP_BIN/GCC_ARM/wunderbarv2_application.bin
- Reset Wunderbar to APP mode (reset Wunderbar with reset button only)