使用 Trace 32 将图像闪烁到 STM3220g-EVAL 板
Flashing image to STM3220g-EVAL board using Trace 32
我有一块STM3220g-EVAL板。它现在似乎没有预加载图像,因为它被用于其他目的。
当我打开它时,显示屏显示空白。
我没有 STLINK/V2 硬件。我正在使用 Trace32 和 Lauterbach 来刷新和调试代码。
我创建了一个简单的 C 程序,使用 arm-none-eabi-gcc 工具链创建了一个 elf 文件,并能够使用提供的 stm32 的 cmm 脚本将其闪存到 STM3220g-EVAL 板中在 Trace32 的演示文件夹中。
我需要的是使用 Trace32 刷新 STM3220g-eval 的默认图像。
谁能给我提供 link 来获取引导映像和 cmm 脚本来刷新它们。
我尝试了下面提供的演示生成器平台和演示固件link
http://www.st.com/web/en/catalog/tools/FM116/SC959/SS1532/PF250374
因为他们提供十六进制文件,我使用Trace 32命令data.load.asciihex加载十六进制文件。当我按下去时,出现错误(仿真电源失败)。
有人可以提供正确的 cmm 脚本来将 .hex 文件刷写到开发板上吗?
如果我对你的理解正确,你正试图在你的 STM3220G-EVAL 板上刷写 "STM3220G-EVAL demonstration firmware"。
所以你说的 hex 文件是 "STM322xG_EVAL_FW_V1.2.0.hex",对吧?
此 hex 文件采用 Intel HEX 文件格式。 (参见 https://en.wikipedia.org/wiki/Intel_HEX)
要加载 Intel HEX 格式的文件,您应该使用 Data.LOAD.IntelHex
这就是在 CPU 中刷入文件的方法:
- Select 你的 CPU 和
SYStem.CPU STM32F207IG
- 使用
SYStem.Up
连接到您的 CPU
- 使用
DO ~~/demo/arm/flash/stm32f2xx.cmm PREPAREONLY
准备闪存编程
- 使用
FLASH.ReProgram ALL
的 Arm 闪存编程
- 使用
Data.LOAD.IntelHex STM322xG_EVAL_FW_V1.2.0.hex
加载您的 Intel Hex 文件
- 使用
FLASH.ReProgram OFF
完成闪存编程(这将开始实际编程。)
STM3220 带有通过 USB 端口内置的 STLink 硬件。请参阅 here
中的第 2.20 节
Version 2 of the ST-LINK, called ST-LINK/V2, is embedded on the board.
This tool allows onboard program loading and debugging of the STM32F
using the JTAG or SWD interface. Third-party debug tools are also
supported by the JTAG (CN14) or Trace (CN13) connectors. To
communicate with the embedded ST-LINK/V2, a specific driver needs to
be installed on your PC. To download and install this driver, refer
to the software and development tools page for the STM32F family
available on www.st.com (the install shield is called
ST-LINK_V2_USBdriver.exe).
我有一块STM3220g-EVAL板。它现在似乎没有预加载图像,因为它被用于其他目的。 当我打开它时,显示屏显示空白。
我没有 STLINK/V2 硬件。我正在使用 Trace32 和 Lauterbach 来刷新和调试代码。
我创建了一个简单的 C 程序,使用 arm-none-eabi-gcc 工具链创建了一个 elf 文件,并能够使用提供的 stm32 的 cmm 脚本将其闪存到 STM3220g-EVAL 板中在 Trace32 的演示文件夹中。
我需要的是使用 Trace32 刷新 STM3220g-eval 的默认图像。 谁能给我提供 link 来获取引导映像和 cmm 脚本来刷新它们。
我尝试了下面提供的演示生成器平台和演示固件link http://www.st.com/web/en/catalog/tools/FM116/SC959/SS1532/PF250374
因为他们提供十六进制文件,我使用Trace 32命令data.load.asciihex加载十六进制文件。当我按下去时,出现错误(仿真电源失败)。
有人可以提供正确的 cmm 脚本来将 .hex 文件刷写到开发板上吗?
如果我对你的理解正确,你正试图在你的 STM3220G-EVAL 板上刷写 "STM3220G-EVAL demonstration firmware"。 所以你说的 hex 文件是 "STM322xG_EVAL_FW_V1.2.0.hex",对吧?
此 hex 文件采用 Intel HEX 文件格式。 (参见 https://en.wikipedia.org/wiki/Intel_HEX)
要加载 Intel HEX 格式的文件,您应该使用 Data.LOAD.IntelHex
这就是在 CPU 中刷入文件的方法:
- Select 你的 CPU 和
SYStem.CPU STM32F207IG
- 使用
SYStem.Up
连接到您的 CPU
- 使用
DO ~~/demo/arm/flash/stm32f2xx.cmm PREPAREONLY
准备闪存编程
- 使用
FLASH.ReProgram ALL
的 Arm 闪存编程
- 使用
Data.LOAD.IntelHex STM322xG_EVAL_FW_V1.2.0.hex
加载您的 Intel Hex 文件
- 使用
FLASH.ReProgram OFF
完成闪存编程(这将开始实际编程。)
STM3220 带有通过 USB 端口内置的 STLink 硬件。请参阅 here
中的第 2.20 节Version 2 of the ST-LINK, called ST-LINK/V2, is embedded on the board. This tool allows onboard program loading and debugging of the STM32F using the JTAG or SWD interface. Third-party debug tools are also supported by the JTAG (CN14) or Trace (CN13) connectors. To communicate with the embedded ST-LINK/V2, a specific driver needs to be installed on your PC. To download and install this driver, refer to the software and development tools page for the STM32F family available on www.st.com (the install shield is called ST-LINK_V2_USBdriver.exe).