C
Flashing Instructions for Infineon/Cypress boards
There are two ways to flash an application binary, depending on which debug probe you have. These commands assume that QUL_DIR
is set to the root of the Qt for MCUs installation that is being used, for example C:/Qt/QtMCUs/2.5
. It's also assumed that Infineon Auto Flash Utility 1.2 is installed to the default location. If not, change the paths accordingly.
Note: The openocd
command requires using forward slashes when specifying the path to the binary. Spaces in its path need to be escaped.
Using the MiniProg4 probe:
set QUL_DIR=C:/Qt/QtMCUs/2.5 "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.2\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.2\scripts" -f interface/kitprog3.cfg -c "transport select swd" -f target/traveo2_c2d_4m.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"
set QUL_DIR=C:/Qt/QtMCUs/2.5 "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.2\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.2\scripts" -f interface/kitprog3.cfg -c "transport select swd" -f target/traveo2_6m.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"
Using the J-Link probe:
set QUL_DIR=C:/Qt/QtMCUs/2.5 "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.2\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.2\scripts" -f interface/jlink.cfg -c "transport select swd" -f target/traveo2_c2d_4m.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"
set QUL_DIR=C:/Qt/QtMCUs/2.5 "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.2\bin\openocd.exe" -s "C:\Program Files (x86)\Infineon\Auto Flash Utility 1.2\scripts" -f interface/jlink.cfg -c "transport select swd" -f target/traveo2_6m.cfg -c "program <PATH_TO_BINARY>/your_binary.elf verify exit"
Available under certain Qt licenses.
Find out more.