Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

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

cross mob
YongseokJeon
Level 4
Level 4
Distributor - Changnam (South Korea)
50 replies posted 50 questions asked 25 replies posted

Hi,
I'm testing Basic_Device_Firmware_Upgrade example on CY8CKIT-062-WIFI-BT.
Is there a way to make it support both USB_CDC and UART?

Thanks and Regards,
YS

0 Likes
1 Solution
Sidramesh_S
Moderator
Moderator
Moderator
250 sign-ins 100 replies posted 25 solutions authored

Hi @YongseokJeon ,

Applying multiple options like TRANSPORT_OPT?=USB_CDC, UART is possible with DFU MW 5.0.

Regarding your 2nd question :-Should I create USB_CDC and UART projects individually and implement them by combining functions?
Answer :-It is possible but we are not guarantee whether it will work since we are not tested with our end.

Thanks and regards,
Sidramesh

View solution in original post

0 Likes
5 Replies
Sidramesh_S
Moderator
Moderator
Moderator
250 sign-ins 100 replies posted 25 solutions authored

Hi @YongseokJeon ,

The Basic Device Firmware Upgrade CE supports UART, I2C, SPI and USB_CDC.
I2C is configured as the default DFU transport. To change the DFU transport, edit the Makefile to set TRANSPORT_OPT?=<transport>.

Please go through Readme for detailed explanation on CE.

Please let me know are you looking for the same or do you looking for anything else.

Thanks and regards,
Sidramesh

0 Likes
YongseokJeon
Level 4
Level 4
Distributor - Changnam (South Korea)
50 replies posted 50 questions asked 25 replies posted

Hi Sidramesh,

It seems that only one option can be set in TRANSPORT_OPT.
Can I apply multiple options like TRANSPORT_OPT?=USB_CDC, UART?

What I want is to support both USB_CDC and UART.
Should I create USB_CDC and UART projects individually and implement them by combining functions?

Thanks and Regards,
YS

0 Likes
Sidramesh_S
Moderator
Moderator
Moderator
250 sign-ins 100 replies posted 25 solutions authored

Hi @YongseokJeon ,

Applying multiple options like TRANSPORT_OPT?=USB_CDC, UART is possible with DFU MW 5.0.

Regarding your 2nd question :-Should I create USB_CDC and UART projects individually and implement them by combining functions?
Answer :-It is possible but we are not guarantee whether it will work since we are not tested with our end.

Thanks and regards,
Sidramesh

0 Likes
YongseokJeon
Level 4
Level 4
Distributor - Changnam (South Korea)
50 replies posted 50 questions asked 25 replies posted

Hi Sidramesh,I confirmed that it works well when only USB_CDC is applied in DFU v5.0.
Could you please explain how to apply the USB_CDC and UART multi-options in detail?

Thanks and Regards,
YS

0 Likes
Sidramesh_S
Moderator
Moderator
Moderator
250 sign-ins 100 replies posted 25 solutions authored

Hi @YongseokJeon ,

Write a code such that by Default the USB transport is selected and press the User Button to switch the Transport interface. By pressing user button the transport interface and colour of RGB LED should change. On each button press the transport interface will change in cycle as USB_CDC to UART and vice versa.
For every transport interface configure the RGB LED indicating the different colour as shown in below:

Transport Interface Colour of RGB LED

USB_CDC                      Red
UART                              Green
 
Thanks and regards,
Sidramesh

0 Likes