C
Infineon板闪烁指南
根据您拥有的调试探针,有两种方式可以刷新应用程序的二进制文件。假设Infineon Auto Flash Utility版本1.4已安装到默认位置。如果不是,请相应地在openocd
命令中更改路径。
注意: openocd
命令在指定二进制文件路径时需要使用正斜杠。路径中的空格需要转义。
使用MiniProg4探针:
"C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\scripts" -f interface/kitprog3.cfg -c "set ENABLE_SEMPERFLASH_0 1" -c "transport select swd" -f target/traveo2_c2d_4m.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"
"C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\scripts" -f interface/kitprog3.cfg -c "set ENABLE_SEMPERFLASH_0 1" -c "transport select swd" -f target/traveo2_c2d_4m.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"
"C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\scripts" -f interface/kitprog3.cfg -c "transport select swd" -f target/traveo2_6m.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"
"C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\scripts" -f interface/kitprog3.cfg -c "transport select swd" -f target/traveo2_6m_ddr.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"
使用J-Link探针:
"C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\scripts" -f interface/jlink.cfg -c "set ENABLE_SEMPERFLASH_0 1" -c "transport select swd" -f target/traveo2_c2d_4m.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"
"C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\scripts" -f interface/jlink.cfg -c "set ENABLE_SEMPERFLASH_0 1" -c "transport select swd" -f target/traveo2_c2d_4m.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"
"C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\scripts" -f interface/jlink.cfg -c "transport select swd" -f target/traveo2_6m.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"
"C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\scripts" -f interface/jlink.cfg -c "transport select swd" -f target/traveo2_6m_ddr.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"
刷新到TRAVEO™ T2G CYT4DN上的HyperFlash™ NOR闪存:
注意: 对于TRAVEO™ T2G CYT4DN,外部闪存仅支持TVII-C-2D-6M-327-SET (REV-01)
修订版。
"C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\scripts" -f interface/kitprog3.cfg -c "set SMIF0_LOADER TV2C2D6MB1_S0_S28HS512T.elf" -c "transport select swd" -f target/traveo2_6m_b1.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"
"C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\scripts" -f interface/jlink.cfg -c "set SMIF0_LOADER TV2C2D6MB1_S0_S28HS512T.elf" -c "transport select swd" -f target/traveo2_6m_b1.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"
刷新数据到HyperFlash™后,需要关闭并重新打开板上的电源。
刷新到TRAVEO™ T2G CYT3DL上的SEMPER™ NOR闪存:
为了将应用程序二进制文件刷新到TRAVEO™ T2G CYT3DL上的SEMPER™ NOR闪存,您应该清除引导加载程序并对开发板进行电源循环
"C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\scripts" -f interface/kitprog3.cfg -c "set ENABLE_SEMPERFLASH_0 1" -c "transport select swd" -f target/traveo2_c2d_4m.cfg -c "init; reset init; flash erase_address 0x10000000 0x8000; shutdown"
"C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\scripts" -f interface/jlink.cfg -c "set ENABLE_SEMPERFLASH_0 1" -c "transport select swd" -f target/traveo2_c2d_4m.cfg -c "init; reset init; flash erase_address 0x10000000 0x8000; shutdown"
接下来,像平常一样刷新应用程序二进制文件,最后根据Infineon板引导加载程序刷新指南页面上的说明刷新引导加载程序。
刷新到TRAVEO™ T2G CYT3DL (4M LITE KIT)上的SEMPER™ NOR闪存:
刷新数据到SEMPER™ NOR八位闪存后,需要关闭并重新打开板上的电源。无需特定的刷新程序。
刷新到TRAVEO™ T2G CYT4EN上的SEMPER™ NOR八位闪存:
"C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\scripts" -f interface/kitprog3.cfg -c "set SMIF0_LOADER TV2C2D6MDDRA0_S0_S28HS512T.elf" -c "transport select swd" -f target/traveo2_6m_ddr.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"
"C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.4\scripts" -f interface/jlink.cfg -c "set SMIF0_LOADER TV2C2D6MDDRA0_S0_S28HS512T.elf" -c "transport select swd" -f target/traveo2_6m_ddr.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"
刷新数据到SEMPER™ NOR八位闪存后,需要关闭并重新打开板上的电源。
在某些Qt许可证下可用。
了解更多信息。