Skip to content

Instantly share code, notes, and snippets.

@pietrushnic
Created December 20, 2016 00:34
Show Gist options
  • Save pietrushnic/c2e74de9ff1d11e8e2d442dd30d8ae0a to your computer and use it in GitHub Desktop.
Save pietrushnic/c2e74de9ff1d11e8e2d442dd30d8ae0a to your computer and use it in GitHub Desktop.
[1:32:31] pietrushnic:hello_world git:(arm) $ make BOARD=nucleo_f411re debug
make[1]: Entering directory '/path/to/src/zephyr-project'
make[2]: Entering directory '/path/to/src/zephyr-project/samples/hello_world/outdir/nucleo_f411re'
Using /path/to/src/zephyr-project as source for kernel
GEN ./Makefile
CHK include/generated/version.h
CHK misc/generated/configs.c
CHK include/generated/offsets.h
CHK misc/generated/sysgen/prj.mdef
Open On-Chip Debugger 0.9.0-dirty (2016-08-02-16:04)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : clock speed 1800 kHz
Info : STLINK v2 JTAG v27 API v2 SWIM v15 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.233136
Python Exception <type 'exceptions.ImportError'> No module named gdb:
/home/pietrushnic/projects/2016/workaround/zephyr_support/src/sdk/sysroots/i686-pokysdk-linux/usr/bin/arm-poky-eabi/arm-poky-eabi-gdb: warning:
Could not load the Python gdb module from `/opt/zephyr-sdk/2.0.1/sysroots/i686-pokysdk-linux/usr/share/gdb/python'.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.
GNU gdb (GDB) 7.9.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pokysdk-linux --target=arm-poky-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.a
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /path/to/src/zephyr-project/samples/hello_world/outdir/nucleo_f411re/zephyr.elf...Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
done.
TargetName Type Endian TapName State
-- ------------------ ---------- ------ ------------------ ------------
0* stm32f4x.cpu hla_target little stm32f4x.cpu running
target state: halted
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0x00000003 pc: 00000000 msp: 0x20001030
Remote debugging using :3333
Info : accepting 'gdb' connection on tcp/3333
Debugger attaching: halting execution
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080020a0 msp: 0x20000750
force hard breakpoints
Info : device id = 0x10006431
Info : flash size = 512kbytes
0x080020a0 in _sys_device_do_config_level (level=<optimized out>) at /path/to/src/zephyr-project/kernel/unified/device.c:75
75 for (info = config_levels[level]; info < config_levels[level+1]; info++) {
(gdb) break main
Breakpoint 1 at 0x80007fe: file /path/to/src/zephyr-project/samples/hello_world/src/main.c, line 22.
(gdb) c
Continuing.
Note: automatically using hardware breakpoints for read-only addresses.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment