您尚未登录。

楼主 # 2024-07-24 15:40:30

gaoda
会员
注册时间: 2023-05-04
已发帖子: 41
积分: 9

【求助】STM32H750外置下载算法

请问有哪位大佬有H750XB基于openocd的w25q256下载算法?我现在用clion+openocd环境,下载算法怎么写都报错,用反客群友的w25q64模板修改,总是出错

离线

楼主 #2 2024-07-25 08:53:45

gaoda
会员
注册时间: 2023-05-04
已发帖子: 41
积分: 9

Re: 【求助】STM32H750外置下载算法

我的是w25q256的flash,模板用64改,也不行

离线

楼主 #5 2024-07-27 21:49:47

gaoda
会员
注册时间: 2023-05-04
已发帖子: 41
积分: 9

Re: 【求助】STM32H750外置下载算法

leifeng 说:

比较一下w25q64和w25q256的区别

试了w25q64,修改了引脚,烧录一次成功后,后面就烧录不了了,用测试qspi程序能读写flash,就是烧录不了,不知道为什么。下面是openocd的烧录信息:
Info : The selected transport took over low-level target control. The results mi
ght differ compared to plain JTAG/SWD
Info : clock speed 1800 kHz
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : STLINK V2J43S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.214708
Info : [stm32h750xbh6.cpu0] Cortex-M7 r1p1 processor detected
Info : [stm32h750xbh6.cpu0] target has 8 breakpoints, 4 watchpoints
Info : gdb port disabled
[stm32h750xbh6.cpu0] halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080015d4 msp: 0x24080000
Info : Unable to match requested speed 24000 kHz, using 4000 kHz
Info : Unable to match requested speed 24000 kHz, using 4000 kHz
** Programming Started **
Info : Device: STM32H74x/75x
Info : flash size probed value 128k
Info : STM32H7 flash has a single bank
Info : Bank (0) size is 128 kb, base address is 0x08000000
Info : No id from flash1
Info : No id - set flash parameters manually
Info : No id from flash1
Info : No id - set flash parameters manually
Info : No id from flash1
Info : No id - set flash parameters manually
Error: Bank is invalid
embedded:startup.tcl:1467: Error: ** Programming Failed **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 1532
at file "embedded:startup.tcl", line 1467

离线

楼主 #6 2024-07-27 22:14:42

gaoda
会员
注册时间: 2023-05-04
已发帖子: 41
积分: 9

Re: 【求助】STM32H750外置下载算法

@表慌张
现在我用的w25q64,使用您这个.cfg,我改成我板子的引脚,也报错,qspi flash可以确定是没有硬件问题的
libusb1 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override u
se 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results mi
ght differ compared to plain JTAG/SWD
Info : clock speed 1800 kHz
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : STLINK V2J43S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.211024
Info : [stm32h750vbt6.cpu0] Cortex-M7 r1p1 processor detected
Info : [stm32h750vbt6.cpu0] target has 8 breakpoints, 4 watchpoints
Info : gdb port disabled
[stm32h750vbt6.cpu0] halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080015d4 msp: 0x24080000
** Programming Started **
Info : Device: STM32H74x/75x
Info : flash size probed value 128k
Info : STM32H7 flash has a single bank
Info : Bank (0) size is 128 kb, base address is 0x08000000
Info : No id from flash1
Info : No id - set flash parameters manually
Info : No id from flash1
Info : No id - set flash parameters manually
Info : No id from flash1
Info : No id - set flash parameters manually
Error: Bank is invalid
embedded:startup.tcl:1467: Error: ** Programming Failed **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 1532
at file "embedded:startup.tcl", line 1467

离线

楼主 #9 2024-08-01 17:43:24

gaoda
会员
注册时间: 2023-05-04
已发帖子: 41
积分: 9

Re: 【求助】STM32H750外置下载算法

bigniudiy 说:

第一次成功,后面不成功,我好像在哪看到过,说是flash的烧写寄存器值被修改了,被改成不能烧录了,需要重新把寄存器的值重置后,才可以

是哪个寄存器?

离线

楼主 #11 2024-08-04 08:02:42

gaoda
会员
注册时间: 2023-05-04
已发帖子: 41
积分: 9

Re: 【求助】STM32H750外置下载算法

Info : No id from flash1
Info : No id - set flash parameters manually
不知道这是什么原因

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn