it now works with f072 somehow

doublebuf
Ondřej Hruška 7 years ago
parent 88cdcb8c49
commit 7ed045bf81
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 5
      Makefile
  2. 2
      User
  3. 4
      attach.gdb
  4. 3
      dbg-client.sh
  5. 3
      dbg-server.sh
  6. 7
      gdb-pipe.cfg
  7. 10
      openocd.cfg
  8. 25
      openocd.log
  9. 4
      run.gdb

@ -16,7 +16,7 @@ GEX_PLAT=F072_DISCOVERY
######################################
# target
######################################
TARGET = gex-f072
TARGET = firmware
######################################
@ -139,7 +139,8 @@ AS_DEFS =
# C defines
C_DEFS = \
-DUSE_HAL_DRIVER \
-DSTM32F072xB
-DSTM32F072xB \
-DARM_MATH_CM0PLUS
C_DEFS += -DGEX_PLAT_$(GEX_PLAT) $(GEX_CDEFS)

@ -1 +1 @@
Subproject commit ce80895b25b5b85cbedc7ca3bb200b2d31812563
Subproject commit 6f749f0198656a76526bc28206e62fd07454f917

@ -0,0 +1,4 @@
target remote | openocd -f openocd.cfg -f gdb-pipe.cfg
monitor halt
monitor gdb_sync
stepi

@ -0,0 +1,3 @@
#!/bin/bash
xterm -e "telnet localhost 4444" &

@ -0,0 +1,3 @@
#!/bin/bash
xterm -e "openocd -f openocd_f072.cfg" &

@ -0,0 +1,7 @@
gdb_port pipe
log_output openocd.log
$_TARGETNAME configure -event gdb-detach {
echo "Debugger detaching: resuming execution."
resume
}

@ -0,0 +1,10 @@
# This is an ST NUCLEO F103RB board with a single STM32F103RBT6 chip.
# http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF259875
source [find interface/stlink-v2.cfg]
#transport select hla_swd
source [find target/stm32f0x.cfg]
#reset_config srst_only

@ -0,0 +1,25 @@
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Info : STLINK v2 JTAG v29 API v2 SWIM v0 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 2.913574
Info : stm32f0x.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : accepting 'gdb' connection from pipe
Info : device id = 0x20016448
Info : flash size = 128kbytes
undefined debug reason 7 - target needs reset
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0x41000003 pc: 0xfffffffe msp: 0x20004fe0
Warn : stepi ignored. GDB will now fetch the register state from the target.
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
adapter speed: 950 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x08009658 msp: 0x20005000
Debugger detaching: resuming execution.
Debugger detaching: resuming execution.
Warn : target not halted
Info : dropped 'gdb' connection

@ -0,0 +1,4 @@
source attach.gdb
monitor reset halt
tbreak main
continue
Loading…
Cancel
Save