Identify between two CYUSB3KIT-003

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
WGT_4383351
Level 5
Level 5
First like received

(1) When two CYUSB3KIT-003 is connected to the same PC using USB boot mode, is there a way to know which is which? The serial number are both SerialNumber="0000000004BE"

(2) How to debug them at the same time? Using one eclipse or two?

0 Likes
1 Solution

Hello,


The traces of the JTAG pins are routed on the top layer to the USB-Serial chip on the FX3 board.

The design files of the board can be found at the link: https://www.cypress.com/file/133841/download

There's no other solution to debugging two kits at a time using OpenOCD and Segger J-Link can only be used with a custom board where you have the JTAG lines disconnected from the USB-Serial chip.


Regards,
Yashwant

View solution in original post

0 Likes
9 Replies
YashwantK_46
Moderator
Moderator
Moderator
100 solutions authored 50 solutions authored 50 likes received

Hello,

1.) Please refer to the following KBA: Distinguishing Different FX3 Devices with Same VID/PID on Host Application – KBA225775

2.) What do you mean by debugging the boards? Can you please elaborate?

Regards,

Yashwant

0 Likes
WGT_4383351
Level 5
Level 5
First like received

(1) That work for production FX3, but can't be used to identify two CYUSB3KIT-003 working in USB boot mode which is decided by code in the boot ROM. Possible solution is the boot ROM can read some SN from EEPROM.

(2) Debug the source code.

0 Likes
lock attach
Attachments are accessible only for community members.

Hello,

1.) Please find the attached firmware that can read the serial number of 4 bytes from EEPROM's 0x3FFFC location and then updates the serial number string in AppInInit() function and can be visible in the control center as well as the Device Manager.

    You can change the location and the number of bytes but will have to take care that the change has been mapped to the corresponding values in the dscr.c file.

2.) Can you please clarify if you are referring to JTAG debugging using Segger J-Link or OpenOCD?

Regards,

Yashwant

0 Likes
WGT_4383351
Level 5
Level 5
First like received

I'm using OpenOCD now, but OpenOCD not only seems to be the result of the slow debug problem, but also doesn't support multiple FX3 devices. So I can use JLINK too.

0 Likes

Hello,


You will have to use two J-Link with two kits since Segger J-Link needs a physical connection with the JTAG interface of the device and so, you will have to use two eclipse debug sessions.

Regards,

Yashwant

0 Likes
WGT_4383351
Level 5
Level 5
First like received

Segger J-Link needs a physical connection with the JTAG interface of the device” How can that be done? The CYUSB3KIT-003 have JTAG signals connected on board to the Cypress USB to serial chip.

0 Likes

Hello,


Segger JLink can't be used with CYUSB3KIT-003 for the reasons you mentioned above and you will have to make your custom board with JTAG lines of FX3 chip pulled out to be able to use Segger JLink with the board.

Also, as you pointed out, its not possible to use OpenOCD to debug 2 kits at a time, unless they are connected in a JTAG chain.

Alternatively, you can cut the JTAG traces on the CYUSB3KIT-003 and solder wires to them and connect it to the JTAG lines of the other kit to use OpenOCD to debug both the kits

or

You can cut the JTAG traces on both the kits and use 2 Segger JLink's to debug the kits on two different windows without an issue.

You can get the schematics and the layout files of the board from the link: https://www.cypress.com/file/133841/download


Other than these, there's no other possibility to debug two kits simultaneously.

Regards,

Yashwant

0 Likes
WGT_4383351
Level 5
Level 5
First like received

"cut the JTAG traces on the CYUSB3KIT-003 and solder wires to them" This is not possible, not even sure the trace is on surface layer.

0 Likes

Hello,


The traces of the JTAG pins are routed on the top layer to the USB-Serial chip on the FX3 board.

The design files of the board can be found at the link: https://www.cypress.com/file/133841/download

There's no other solution to debugging two kits at a time using OpenOCD and Segger J-Link can only be used with a custom board where you have the JTAG lines disconnected from the USB-Serial chip.


Regards,
Yashwant

0 Likes