TEST-TRACK now supports running an external program as part of a test script. How can I use this feature to program the Infineon processor and on-board FLASH memory?
Answer
Programming on-board FLASH can be done in a two stage process in which the first step consists of programming a small boot loader program into the processor that is provided by Infineon. The second step is to let the processor run this bootloader. Using an Infineon application that communicates with this boot loader, it is then possible to update the contents of any FLASH memory on the board.
The code to be used in TEST-TRACK could be like this:
//--- Working directory is the script directory. So you can use relative paths from there.
//--- 'serialbsl' loads the Infineon boot loader into the controller
RUN "BootLoader\serialbsl.exe BootLoader\MBC00A7R.bsl AS FS S29JL B38400 COM1 Eth 00:12:FF:00:51:3B" ;
//-- Using the boot loader, program the on-board flash with the application
RUN "BootLoader\PC2EL_W.exe BootLoader\MBC80923.BX AS FS COM1 B38400";
The program 'serialbsl' is used for programming the Infineon SAF-C167CS-L16M processor with the bootloader. When this little piece of code is running on the board, PC2EL_W is run to load the actual application into the S29JL032H70 Flash memory that is also present on the board. Note that the two applications and the bootloader code are provided by Infineon.
The following file (script file van TEST-TRACK) can be downloaded for the complete sequence of commands

