Skip to content

Instantly share code, notes, and snippets.

@nickd4
Created July 14, 2017 11:06
Show Gist options
  • Save nickd4/bdb13234db7d3a12b60eeb27cc7606f5 to your computer and use it in GitHub Desktop.
Save nickd4/bdb13234db7d3a12b60eeb27cc7606f5 to your computer and use it in GitHub Desktop.
Good trace showing same test with revised Black Magic Probe firmware that writes DCCIMVAC automatically prior to reading or writing any RAM
GNU gdb (GNU Tools for ARM Embedded Processors 6-2017-q2-update) 7.12.1.20170417-git
Copyright (C) 2017 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=x86_64-pc-linux-gnu --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
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 Debug/FokliftController.elf...done.
Target voltage: 3.3V
Available Targets:
No. Att Driver
1 STM32F7xx
_Error_Handler (file=0x800a73c "../Src/Canbus/canbus.c", line=152)
at ../Src/main.c:533
533 while(1)
7BB37DAD:05:85
(gdb) load
Loading section .isr_vector, size 0x1f8 lma 0x8000000
Loading section .text, size 0xa374 lma 0x8000200
Loading section .rodata, size 0x884 lma 0x800a574
Loading section .ARM, size 0x8 lma 0x800adf8
Loading section .init_array, size 0x4 lma 0x800ae00
Loading section .fini_array, size 0x4 lma 0x800ae04
Loading section .data, size 0x12c lma 0x800ae08
Start address 0x8000620, load size 44844
Transfer rate: 15 KB/sec, 862 bytes/write.
(gdb) break StartDefaultTask
Breakpoint 1 at 0x8002210: file ../Src/main.c, line 491.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/nick/burtek/FokliftController/Debug/FokliftController.elf
Note: automatically using hardware breakpoints for read-only addresses.
Breakpoint 1, StartDefaultTask (argument=0x0) at ../Src/main.c:491
491 InitGraphics(&hltdc);
(gdb) step
InitGraphics (pNewLCD=0x2002fa04 <hltdc>) at ../Src/Graphics/graphics.c:141
141 pLCD = pNewLCD;
(gdb) quit
A debugging session is active.
Inferior 1 [Remote target] will be killed.
Quit anyway? (y or n) y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment