Skip to content

Instantly share code, notes, and snippets.

@sidprice
Created March 19, 2018 19:09
Show Gist options
  • Save sidprice/0102ed5a9ce886b096bc4bae3477d2da to your computer and use it in GitHub Desktop.
Save sidprice/0102ed5a9ce886b096bc4bae3477d2da to your computer and use it in GitHub Desktop.
This first set of commands are from a BMP attached to CN7 of a Nucleo-F411RE
(gdb) target extended-remote //./com14
Remote debugging using //./com14
(gdb) mon sw
Target voltage: 3.3V
Available Targets:
No. Att Driver
1 STM32F4xx
(gdb) attach 1
Attaching to program: C:\iccv9_samples\oscar_test\bin\Debug\oscar_test.elf, Remote target
0x00000000 in ?? ()
Note the result of the "attach 1" command.
The following is a test with a Nucleo-F411RE using the BMP-flashed STLink of this Nucleo
(gdb) target extended-remote //./com4
Remote debugging using //./com4
(gdb) mon sw
Target voltage: unknown
Available Targets:
No. Att Driver
1 STM32F4xx
(gdb) attach 1
Attaching to program: C:\iccv9_samples\oscar_test\bin\Debug\oscar_test.elf, Remote target
NMI_Handler () at C:\iccv9_samples\oscar_test\Setup\Debug\Startup.S:162
162 def_default_handler NMI_Handler
Both tests were made with the same instance of GDB and the same ELF file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment