cancel
Showing results for 
Search instead for 
Did you mean: 

ModusToolbox PSoC 6 SDK

AnBr_3203316
New Contributor II

Hi,

I am trying to use USB block on Modus Toolbox for a PSoC6 device (CY8C6247BZI-D54).

In the Cypress USB Device Middleware Library I see that I need to initialize using the following function:

(void) Cy_USB_Dev_Init(USBFS0, &USBD_drvConfig, &USBD_drvContext,

  &USBD_devices[0], &USBD_devConfig, &USBD_devContext);

but the structures

&USBD_drvConfig, &USBD_drvContext, &USBD_devContext

are not automatically generated in Modus Toolbox, as they are in PsoC Creator.

Can anyone help me with this or provide an example of USB simple usage implemented with Modus Toolbox?

0 Likes
1 Solution
AnkitaS_51
Employee

Hello,

Please find the Code Example  attached present for USB CDC class in Modus Toolbox 1.1.

In ModusToolbox 1.1 go to File>New>Modus ToolBox IDE Application >Choose Target Hardware (as CY8CKIT-062-WIFI-BT( CY8C6247BZI-D54)) > Import

Then Import the modus.mk file present inside USBCommDevice_mainapp folder

View solution in original post

1 Reply
AnkitaS_51
Employee

Hello,

Please find the Code Example  attached present for USB CDC class in Modus Toolbox 1.1.

In ModusToolbox 1.1 go to File>New>Modus ToolBox IDE Application >Choose Target Hardware (as CY8CKIT-062-WIFI-BT( CY8C6247BZI-D54)) > Import

Then Import the modus.mk file present inside USBCommDevice_mainapp folder

View solution in original post