Flashing your custom firmware using ModusToolbox™
This topic provides instructions for flashing custom firmware onto Infineon boards using ModusToolbox™ to facilitate real-time data collection and model evaluation.
To facilitate understanding, we will demonstrate the process of flashing custom firmware on Infineon PSoC™ 6 AI Evaluation Kit. You can follow the same steps to flash the firmware on other Infineon boards that support flashing through ModusToolbox™.
For flashing information on boards other than Infineon boards, refer to your specific board documentation.
Pre-requisites:
- Download and Install ModusToolbox™ (opens in a new tab)(version 3.3 or later)
- Custom Firmware Repository
- Infineon PSoC™ 6 board
Flashing the firmware using ModusToolbox™
Flashing the firmware using ModusToolbox consists of two parts:
- Create and build the project
- Flash and run the project
Create and Build the project
-
Open ModusToolbox™ > Eclipse IDE for ModusToolbox™ from the Windows Start menu. The Eclipse IDE for ModusToolbox window appears.
-
Browse and select the workspace directory for your project.
-
Click Launch to open the ModusToolbox™ workspace.
-
Select New Application from the Quick Panel or navigate to File> New> Modus Toolbox™ Application to open the Project Creator Tool.
-
Expand PSoC™6 BSPs, select CY8CKIT-062S2-AI as the BSP for your board and click Next. The Select Application window appears.
-
Click Browse for Application and select the folder containing your Custom Firmware.
-
Select the checkbox against the firmware and click to change the firmware name to something concise, for instance custom_firmware.
-
Click Create to create the project. After the project is created successful, the following window appears.
-
Right-click the custom_firmware project and select Build Project or click Build Application in the Quick panel to build the project.
Flash and Run the project
-
Connect the KitProg3 USB connector (J1) port on the board with the PC using the USB cable.
-
In Quick Panel> Launches, click custom_firmware_Program. The firmware is flashed on the development kit.
-
Disconnect the USB cable from KitProg3 USB connector (J1) and connect to KitProg3 USB connector (J2) port on the board.
You can start collecting the real-live data using the PSoC™ 6 AI Evaluation Kit, refer to Collect real-time data using Graph UX to know more.