Infineon PSoC™ Troubleshooting

Adding the BDH Code Template

  • Open modus-shell

modus-shell
  • Navigate to directory ModusToolbox and Adding the BDH code Template:

cd ~/.modustoolbox/
echo 'https://raw.githubusercontent.com/Advance-Innovation-Centre-AIC/mtb2-bdh-academy-manifests/master/bdh-academy-basic-app-super-manifest.xml' > ~/.modustoolbox/manifest.loc

Update Firmware

🖥️ For Windows

  • Open modus-shell

ให้สังเกตชื่อไดเรกทอรี tools_3.1 จะต้องให้ตรงกับ version ของ modusToolbox เช่น version 3.1

  • Navigate to directory ModusToolbox/tools_3.1/fw-loader/bin/

$ cd ModusToolbox/tools_3.1/fw-loader/bin/
$ ./fw-loader --update-kp3
./fw-loader --update-kp3

🖥️ For Mac

  • Checking fw’s version

ให้สังเกตชื่อไดเรกทอรี tools_3.1 จะต้องให้ตรงกับ version ของ modusToolbox เช่น version 3.2

$ cd /Applications/ModusToolbox/tools_3.2/fw-loader/bin/
$ ./fw-loader --device-list
Infineon Firmware Updater, Version: 3.6.0.2303
(C) Copyright 2018-2024 by Cypress Semiconductor Corporation (an Infineon company)
All Rights Reserved

Info: Start the API initialization
Info: Connected - KitProg3 DAPLink CMSIS-DAP-190B1301f808151401f8081500000000000000002e127069
Info: The hardware initialization has completed in 290 ms
The connected supported devices:
	1: KitProg3 DAPLink CMSIS-DAP-190B1301f808151401f8081500000000000000002e127069	FW Version 2.50.1383 [outdated]
Warning: The firmware on the KitProg3 DAPLink CMSIS-DAP-190B1301f808151401f8081500000000000000002e127069 device(s) is outdated. Use --update-kp3 [full-device-name|serial-num|all] to update.

ในกรณีที่มีข้อความเตือนว่า "is outdated" ให้ทำการอัพเดท firmware ดังรายละเอียดข้างล่างนี้

  • Update firmware

$ ./fw-loader --update-kp3
Infineon Firmware Updater, Version: 3.6.0.2303
(C) Copyright 2018-2024 by Cypress Semiconductor Corporation (an Infineon company)
All Rights Reserved

Info: Start the API initialization
Info: Connected - KitProg3 DAPLink CMSIS-DAP-190B1301f808151401f8081500000000000000002e127069
Info: The hardware initialization has completed in 286 ms
Found a KitProg firmware image: "/Applications/ModusToolbox/tools_3.2/kp-firmware/kitprog3.cyacd"
Info:  The device FW is 'KitProg3' ver. 2.50 b1383.  The upgrade file is 'KitProg3' ver. 2.50 b1401.
Info: Disconnected - KitProg3 DAPLink CMSIS-DAP-190B1301f808151401f8081500000000000000002e127069
Info: Connected - KitProg3 Bootloader-F801020815140714
Info: Bootloader Version: Major 1, Minor 1, Build 60
Info: FW Upgrade to version: 2.50 b1401
Info: Bootloading of KitProg FW.
Info: Verifying of KitProg FW.
Info: Bootloading of DAPLink.
Info: Verifying of DAPLink.
Info: The upgrade completed.
Info: Disconnected - KitProg3 Bootloader-F801020815140714
Info: Connected - KitProg3 DAPLink CMSIS-DAP-190B1301f808151401f8081500000000000000002e127069
The firmware update has completed successfully.

ในกรณีที่โหมดการเขียนโปรแกรมยังเป็น "KitProg3 DAPLink CMSIS-DAP" ให้เปลี่ยนโหมดการเขียนโปรแกรมให้เป็น "KitProg3 CMSIS-DAP BULK" ดังคำสั่งนี้

./fw-loader --mode kp3-bulk      
                                                                                                             ─╯
Infineon Firmware Updater, Version: 3.6.0.2303
(C) Copyright 2018-2024 by Cypress Semiconductor Corporation (an Infineon company)
All Rights Reserved

Info: Start the API initialization
Info: Connected - KitProg3 DAPLink CMSIS-DAP-190B1301f808151401f8081500000000000000002e127069
Info: The hardware initialization has completed in 292 ms
Info: Disconnected - KitProg3 DAPLink CMSIS-DAP-190B1301f808151401f8081500000000000000002e127069
Info: Connected - KitProg3 CMSIS-DAP BULK-141508F801071400
The mode switching completed successfully.

Bug issue

Error: It looks like your debug probe is in DAPLink mode. Please switch to KitProg3 mode or use CMSIS-DAP driver instead.

Error alert when launching the Application

How to Fix

Button for Switching mode

In case pressing the switch button doesn't yield any response, you may need to first update the firmware. Follow the steps below:

  1. Open the Modus shell.

  2. Navigate to the necessary directory by entering the following command:

$ cd ModusToolbox/tools_3.1/fw-loader/bin/
  1. Update the firmware by executing the command:

$ ./fw-loader --update-kp3
  1. After updating the firmware, verify the available devices with the command:

$ ./fw-loader --device-list

Once the firmware is updated, you should be able to use the switch mode button successfully.


Bug #002 : "Error: IMU init failed (0x0000)!" message

Bug issues

How to Fix

Find mtb_shared folder in your project and change the BMI160_CHIP_IP

bmi160_defs.h

Firmware update

  • Update firmware:

$  cd ~/ModusToolbox/tools_3.1/fw-loader/bin
$  ./fw-loader --update-kp3
$  ./fw-loader --device-list

Bug#003 Can't install edge-impulse-cli

Visual Studio installer error.

How to fix:

1. Install Visual Studio Installer

Installation
Open and select "Desktop development with C++" then install
Install complect

Important: You need to use python3.11.x

Install edge-impulse-cli again:

npm install -g edge-impulse-cli --force
Sucessfully install the edge-impulse-cli

Last updated

Was this helpful?