Test repository for porting mbed-os to the #1
- clone mbed-os and switch to branch
target-ubirch
to get the specific ubirch #1 changes - link mbed-os into this directory at the top-level
ln -sf <MBED-OS_DIR_PATH>/mbed-os .
- add target
mbed target UBIRCH1
- add toolchain
mbed toolchain GCC_ARM
- run
mbed compile
- run
./bin/flash.sh
to flash using NXP blhost tool - alternatively, if you have SEGGER tools installed, run
./bin/flash.sh -j
- In the project directory run
mbed add http://mbed.org/users/MACRUM/code/BME280/
- run
mbed compile
#Debugging
-
Compile Debug Release
mbed compile --profile mbed-os/tools/profiles/debug.json
-
use
-c
to recompile everything -
In term start the GDB Server
JLinkGDBServer -if SWD -device MK82FN256xxx15
-
Create a gdb.init file and add this
target extended-remote localhost:2331
monitor halt
-
run
cgdb -d arm-none-eabi-gdb -x /home/user/gdb.init ./BUILD/UBIRCH1/GCC_ARM/mbed-os-porting.elf