mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-20 20:58:09 +08:00
8d72c2a7b2
PUBLISHED_FROM=d9d979057d5269ac32d16545dd2489485bda642a
1.4 KiB
1.4 KiB
nRF52 example project
This example shows how to use mongoose on nRF52 boards. To run it you will need:
- nRF52 DK dev board
- Linux machine with 6lowpan module enabled. There are a few tutorials out there, e.g this one
- Docker
Building firmware and cleaning
Nothing special: make
and make clean
.
Flashing
make flash
Watch debug output
This is a two-step process:
- In a separate terminal, invoke
make jlinkexe
. It will runJLinkExe
utility, in which you'll need to typeconnect
. You can actually do a lot of things there, including halting and stopping the target, flashing firmware, etc. You can type?
to get the list of all available commands. - Now, in another terminal, invoke
make rtt
. It will start RTT client which will connect to the runningJLinkExe
and will show logs from the device.
Debug with GDB
This is a two-step process:
- In a separate terminal, invoke
make gdbserver
. Note thatmake jlinkexe
andmake gdbserver
, unfortunately, cannot run sumultaneously. - Now, in another terminal, invoke
make gdb
. It will start GDB session which will connect to the running GDB server.