[开发工具] 如何实现OpenOCD 烧录 N32G45x 的芯片固件

[复制链接]
3882|28
kmzuaz 发表于 2023-4-7 22:53 | 显示全部楼层
利用 openocd 来进行调试简单很多的。
sdCAD 发表于 2023-4-7 23:56 | 显示全部楼层
OpenOCD是一个开源的功能强大的调试器
wilhelmina2 发表于 2023-4-8 14:04 | 显示全部楼层
是要批量烧录程序的 吗?              
qinchuan12345 发表于 2024-12-22 09:26 | 显示全部楼层
我用的是国民 N32L403 请问可以直接支持吗,需要怎么写对应这个芯片的配置文件,谢谢
niceguy 发表于 2024-12-23 15:13 | 显示全部楼层
qinchuan12345 发表于 2024-12-22 09:26
我用的是国民 N32L403 请问可以直接支持吗,需要怎么写对应这个芯片的配置文件,谢谢 ...

也许你需要的是这个

基于OpenOCD 实现N32 MCU下载调试应用笔记.pdf

1.93 MB, 下载次数: 14

qinchuan12345 发表于 2024-12-26 13:22 | 显示全部楼层
niceguy 发表于 2024-12-23 15:13
也许你需要的是这个

谢谢
LOVEEVER 发表于 2024-12-28 16:54 | 显示全部楼层
OpenOCD 烧录一定要注意适配
Fillped 发表于 2025-9-18 17:13 | 显示全部楼层
iceant 发表于 2023-3-8 17:26
已经完美支持n32g45x flash 和 debug,代码如下
https://github.com/iceant/openocd

楼主楼主,你的cfg怎么使用,直接将cfg复制到我的openocd的taget目录下吗,但是不能下载成功,有没有移植教程呀
edwardhey 发表于 2025-10-2 17:20 | 显示全部楼层
本帖最后由 edwardhey 于 2025-10-2 17:25 编辑

Open On-Chip Debugger 0.12.0+dev-gdb9bb7924 (2025-10-02-15:34)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : Using CMSIS-DAPv2 interface with VID:PID=0x0d28:0x0204, serial=947266851FC1A550F924479DFAB5FD38
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: Atomic commands supported
Info : CMSIS-DAP: Test domain timer supported
Info : CMSIS-DAP: FW Version = 2.1.0
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 4000 kHz
Info : SWD DPIDR 0x0bb11477
Info : [n32g031.cpu] Cortex-M0 r0p0 processor detected
Info : [n32g031.cpu] target has 4 breakpoints, 2 watchpoints
Info : SWD DPIDR 0x0bb11477
Error: Failed to write memory at 0xffffffff
Info : starting gdb server for n32g031.cpu on 3333
Info : Listening on port 3333 for gdb connections
N32G031 CMSIS-DAP configuration loaded
Target: N32G031 (Cortex-M0)
Debugger: CMSIS-DAP
Transport: SWD
Speed: 4MHz


我遇到这个 memory 的问题,请问楼主如何解决的呀
Info : SWD DPIDR 0x0bb11477

Error: Failed to read memory at 0xffffffff
Warn : Failed to read device ID from address 0x40015800: -4
Warn : N32G45x auto_probe failed: -4. This may be normal if no hardware is connected.
Error: auto_probe failed
2025-10-02 17:22:28 - Flash信息测试: 失败 - Flash 信息读取错误:
2025-10-02 17:22:28 - 内存访问测试: 开始 - 测试内存读写功能
Info : [n32g031.cpu] external reset detected
2025-10-02 17:22:28 - 内存访问: 成功 - SRAM 读写测试通过
2025-10-02 17:22:28 - 内存访问测试: 失败 - 内存访问错误: 1

9659368de4393b7743.png
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 在线客服 返回列表 返回顶部