How to force CX3 to ReNumerate?

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

cross mob
geatc_3736111
Level 1
Level 1

Greetings.

In the bootloader I am creating I am trying to add the functionality that when a specific vendor request is being sent, I want the device to ReNumerate without causing a cold reset to the system. Though since I do not exactly understand what steps renumeration involves, I would appreciate your insight on how to do it as well as perhaps explaining what happens to the system during renumeration.

The bootloader is based on CyFx3Boot library.

Thank you in advance,

Georgios

0 Likes
1 Solution
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello Georgios,

- To disconnect and re-connect the device through the vendor command, you can use the CyFx3BootUsbConnect() API with the appropriate value of the connect parameter.

- When the device disconnects and re-connects, the host sees the re-enumeration as a new device connection and queries the descriptor details. The device firmware which had the callback functions to handle the setup data requests from the host get executed to provide the descriptor information. The firmware then continues its flow of execution in the vendor command.

Best regards,

Srinath S

View solution in original post

0 Likes
1 Reply
SrinathS_16
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hello Georgios,

- To disconnect and re-connect the device through the vendor command, you can use the CyFx3BootUsbConnect() API with the appropriate value of the connect parameter.

- When the device disconnects and re-connects, the host sees the re-enumeration as a new device connection and queries the descriptor details. The device firmware which had the callback functions to handle the setup data requests from the host get executed to provide the descriptor information. The firmware then continues its flow of execution in the vendor command.

Best regards,

Srinath S

0 Likes