cancel
Showing results for 
Search instead for 
Did you mean: 

Wi-Fi Combo

Anonymous
Not applicable

I’m trying to add usb host on CYW943907AEVAL1F reference CYW943907AEVAL1F USB Host Application Explained .But I have not distribution IC. so:

Pull WICED_USB_HOST_POWER_ENABLE pin low through a 10k resistor (based on the pin defined in platform.h)

Pull WICED_USB_HOST_OVERCURRENT pin high through a 4.7k resistor (based on the pin defined in platform.h)

Log:

+-------------------------------------------------+

+ USB20 Host HID Mouse Class Application          +

+-------------------------------------------------+

> USB20 Host init starting...

Detected board strapping is in USB-PHY mode!!

Detected board is in USB Host mode!!

USB Host support 2 HCI resource

USB20 Host init completed!!!

hid_mouse

+++START: hid mouse test

Please plug in USB mouse...

Please plug in USB mouse...

Please plug in USB mouse...

Please plug in USB mouse...

Please plug in USB mouse...

(plug in usb mouse...and... the board reboot...

+-------------------------------------------------+

+ USB20 Host HID Mouse Class Application          +

+-------------------------------------------------+

> USB20 Host init starting...

Detected board strapping is in USB-PHY mode!!

Detected board is in USB Host mode!!

USB Host support 2 HCI resource

USB20 Host init completed!!!

Does anyone have any suggestions?

0 Likes
1 Solution
PriyaM_16
Moderator
Moderator

Replace the start_GCC.S file provided in WICED/platform/MCU/BCM4390x/start_GCC.S and use the one provided here.

View solution in original post

8 Replies
PriyaM_16
Moderator
Moderator

Kindly increase the thread stack size by changing the value of this macro USB_HOST_THREAD_STACK_SIZE.

ew
New Contributor II

Hi riya

I have the same problem !

Default size is (8 * 1024), how much shall it be increased ?

Thanks

0 Likes
PriyaM_16
Moderator
Moderator

I was able to recreate the issue of resetting in CYW943907AEVAL1F. We are looking into this issue internally.

Can you try to increase the size to 10*1024 and report back the result? The device should stop resetting but I want to know whether the mouse gets enumerated when it is connected.

ew
New Contributor II

Hi riya

Please respect my privacy and don't mention my name, which is not seen by other community members, except Cypress employes !

Even with 32 *1024 it reboots and if you debug this issue, you will find an ALLIGMENT FAULT in the USBX binary !

I found out that all USBX snip examples work in SDK 6.1, so this is my workaround at the moment !!!

Take care and with the next SDK release, make USB work again !

Your Software Quality Management needs to be deeply improved !!!

0 Likes
PriyaM_16
Moderator
Moderator

Kindly add -debug flag in the make target.

snip.usbx_usb_host.usb_host_hid_mouse-CYW943907AEVAL1F-debug download run

This should solve the problem.

ew
New Contributor II

Riya

This is not the correct answer !!!

No snip.usbx apps are working in SDK 6.2 and I know how to debug the apps !

I told you already that the bug in an ALLIGMENT FAULT in the USBX binary,

so normal user cannot debug further, because we don't have the source code of the

USBX stack !!!

Fortunately all snip.usbx host & client apps are working in the older SDK 6.1 !

After you said, that you could reproduce the bug (which is actually trivial to reproduce),

please tell us all, when will you release a working USBX stack ?

0 Likes
PriyaM_16
Moderator
Moderator

Replace the start_GCC.S file provided in WICED/platform/MCU/BCM4390x/start_GCC.S and use the one provided here.

View solution in original post

ew
New Contributor II

Hi Riya

This is now really the correct answer, thank you very much 🙂

All USB snip apps are working now in the newest SDK 6.2 !

Please confirm, that the next SDK release will correct this very important bug !

Best regards