抱歉,您的浏览器无法访问本站
本页面需要浏览器支持(启用)JavaScript
了解详情 >

环境

配置过程

  • 第一步

  • 第二步

  • 第三步

  • 第四步

  • 第五步

  • gdb命令如下

1
2
3
(gdb) load bin/Debug/arm-none-eabi/arm/test
(gdb) file bin/Debug/arm-none-eabi/arm/test
(gdb) j Reset_Handler

stm32mp1xx 的openocd 配置文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# This is an genericBoard board with a single STM32MP157DAAx chip
#
# Generated by STM32CubeIDE - mpu
# Take care that such file, as generated, may be overridden without any early notice. Please have a look to debug launch configuration setup(s)



# This is an genericBoard board with a single STM32MP157DAAx chip


source [find interface/stlink-dap.cfg]


set WORKAREASIZE 0x8000

transport select "dapdirect_swd"

set CHIPNAME STM32MP157DAAx
set BOARDNAME genericBoard



# Enable debug when in low power modes
set ENABLE_LOW_POWER 1

# Stop Watchdog counters when halt
set STOP_WATCHDOG 1

# STlink Debug clock frequency
set CLOCK_FREQ 8000

# ACCESS PORT NUMBER
set AP_NUM 2
# GDB PORT
set GDB_PORT 3333

# Single/Dual Cortex-A7 plus Cortex-M4

source [find target/stm32mp1x.cfg]

# MPU Reset
reset_config srst_only

后记

先继续进行后续开发先,虽然相对麻烦,但还是可以接受,后面如果有时间看看可不可能弄方便一点,或者能大佬给点提点最好,哈哈

评论