硬汉嵌入式论坛

 找回密码
 立即注册
查看: 2382|回复: 5
收起左侧

[问题解答] stm32cubeide使用h7-tool失败

[复制链接]

11

主题

122

回帖

160

积分

初级会员

积分
160
发表于 2021-8-7 10:29:01 | 显示全部楼层 |阅读模式
如题,使用stm32cubeide通过h7-tool给stm32l4r9下载程序失败。使用mdk下载是正常的。
STM32CubeIDE默认不支持DAP的,但是通过ST-Link(OpenOCD间接支持),选择连接到远程GDB服务器端口,参考如下:https://www.cnblogs.com/pathfinder-world/p/13943911.html
但实际使用出现如下错误信息:
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
Info : DEPRECATED target event trace-config
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : CMSIS-DAP: SWD  Supported
Info : CMSIS-DAP: FW Version = 2.0.0
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 500 kHz
Info : SWD DPIDR 0x2ba01477
Info : stm32l4x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for stm32l4x.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : accepting 'gdb' connection on tcp/3333
target halted due to debug-request, current mode: Thread
xPSR: 0x41000000 pc: 0x20000000 msp: 0x20001000
Info : device idcode = 0x100f6470 (STM32L4R/L4Sxx - Rev W : 0x100f - Flash single-bank)
Info : RDP level 0 (0xAA)
Info : flash size = 2048kbytes
Info : flash mode : dual-bank
Info : device idcode = 0x100f6470 (STM32L4R/L4Sxx - Rev W : 0x100f - OTP-bank)
Info : RDP level 0 (0xAA)
Info : OTP size is 1024 bytes, base address is 0x1fff7000
Info : rejected 'gdb' connection, no more connections allowed
Info : dropped 'gdb' connection (error -400)


网上有类似的错误http://vedder.se/2012/12/debugging-the-stm32f4-using-openocd-gdb-and-eclipse/,加额外的命令如:
target remote localhost:3333monitor resetmonitor haltmonitor flash protect 0 0 11 offmonitor flash write_image erase "/path/to/hex/file" 0 ihexdisconnecttarget remote localhost:3333monitor resetmonitor halt
尝试发现还是不行,想了解下硬汉大哥有没有做stm32cubeide下的下载测试或有什么解决思路,多谢。
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
107101
QQ
发表于 2021-8-7 10:48:32 | 显示全部楼层
CubeIDE没用过,有时间我研究下。
回复

使用道具 举报

11

主题

122

回帖

160

积分

初级会员

积分
160
 楼主| 发表于 2021-8-7 11:23:56 | 显示全部楼层
eric2013 发表于 2021-8-7 10:48
CubeIDE没用过,有时间我研究下。

多谢。个人也是习惯用MDK,IAR,但公司用毕竟有盗版风险,才用的免费的cubeide,使用感觉还不错,可以尝试下。
回复

使用道具 举报

11

主题

122

回帖

160

积分

初级会员

积分
160
 楼主| 发表于 2021-8-7 13:52:47 | 显示全部楼层
eric2013 发表于 2021-8-7 10:48
CubeIDE没用过,有时间我研究下。

还有个问题请教下,我更新boot和app后,emmc文件也更新了,但屏幕上文字显示有缺失,有的显示为小方块,这是字库还没烧吗
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
107101
QQ
发表于 2021-8-7 14:13:26 | 显示全部楼层
有梦为马 发表于 2021-8-7 13:52
还有个问题请教下,我更新boot和app后,emmc文件也更新了,但屏幕上文字显示有缺失,有的显示为小方块, ...

对,你的TOOL应该是好久没更新了。早期是小字库方式,现在升级为全字库了。

这么操作更新下即可

QQ截图20210807141509.png
回复

使用道具 举报

11

主题

122

回帖

160

积分

初级会员

积分
160
 楼主| 发表于 2021-8-7 17:04:20 | 显示全部楼层
eric2013 发表于 2021-8-7 14:13
对,你的TOOL应该是好久没更新了。早期是小字库方式,现在升级为全字库了。

这么操作更新下即可

已经解决,在论坛找到说明了。是好久没更新了,当时最早一批预售买的,中途更新了一次,后面就没更新了。没想到当时买的现在还升值了~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-5-18 00:18 , Processed in 0.187774 second(s), 28 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表