shenjian5050 发表于 2019-6-13 10:01:20

初试STM32CubeIDE的一些问题

今天下载了STM32CubeIDE,集成度很高,但在调试时发现一些问题,用于调试STM32L152V8T6这颗料时,可以调试;但这颗料现在ST已经不建议使用,使用STM32L152V8T6-A,两颗料的差别好像就是RAM有差别,一个是10K,一个是30K,带A的DEBUG时出现以下信息:
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a13608.srec
File          : ST-LINK_GDB_server_a13608.srec
Size          : 4360 Bytes
Address       : 0x08000000

Erasing memory corresponding to segment 0:
Error: Flash loader cannot be loaded

Error: failed to erase memory
Encountered Error when opening C:\ST\STM32CubeIDE_1.0.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_1.0.0.201904021149\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Error! Failed to read target status
Debugger connection lost.
Shutting down...

无法删除FLASH;

然后下载了STM32CubeProgrammer,用ST-LINK连接后发现问题所在:
读取的FLASH SIZE: 25152KB;(这颗料FLASH的实际大小64K)
也无法下载程序;

用其它比如KEIL可以正常调试,STVP也可以下载程序;

所以个人认为ST的STM32CubeProgrammer存在BUG,STM32CubeIDE内置的STM32_Programmer_CLI.exe也存在同样的问题!

新沂fzq 发表于 2019-11-12 15:34:36

楼主有解决办法吗
页: [1]
查看完整版本: 初试STM32CubeIDE的一些问题