XMOS not recognized after the sleep Topic is solved

Sub forums for various specialist XMOS applications. e.g. USB audio, motor control and robotics.
mbrico
Junior Member
Posts: 5
Joined: Tue Dec 23, 2014 11:08 am

XMOS not recognized after the sleep

Postby mbrico » Wed Apr 13, 2016 9:01 am

Hi to all,

In my project I use the USB Audio 2.0 Device Reference Design Software 6.15.2rc1, with the application base "app_usb_aud_xk_u8_2c".
I use the external power supply for xMOS so I set into "customdefines.h":

Code: Select all

#define     SELF_POWERED            (1)
All work fine on my PC with Windows 10 OS, but when the PC it wake up after it went in sleep mode the xmos isn't recognized. I must disconnect the device and reconnect it. I tried to change the usb cable, but the behaviour it's the same.
Is there a specific setting in Windows 10 which must be set?
or is there a command to use in xmos code?
Do you have some suggestion?

Thanks to everyone in advance,
mbrico
View Solution
User avatar
Ross
XCore Expert
Posts: 768
Joined: Thu Dec 10, 2009 9:20 pm

Postby Ross » Wed Apr 13, 2016 11:12 am

Mod edit: moved to applications from tools
mbrico
Junior Member
Posts: 5
Joined: Tue Dec 23, 2014 11:08 am

Postby mbrico » Thu Apr 14, 2016 8:10 am

I tried to use the Bus Powered, removing the external power supply and I set into "customdefines.h":

Code: Select all

#define     SELF_POWERED            (0)
Now all work fine on my PC with Windows 10 OS when the PC it wake up after it went in sleep mode, the xmos is recognized.
I suppose that there is a unusual behaviour of xmos chip.
Is it possible to use the xmos with external power supply so that it functions to waking from sleep?
Do you have some suggestion?

Thanks to all,
mbrico
User avatar
Ross
XCore Expert
Posts: 768
Joined: Thu Dec 10, 2009 9:20 pm

Postby Ross » Thu Apr 14, 2016 11:29 am

That board was only designed to work via bus power - the VBUS input to the XMOS device was therefore omitted (probably a bad choice on reflection). In self powered mode it will be looking for VBUS, which it will never see and therefore hang forever.

Powering the device and using it in BUS_POWERED mode will lead to not quite USB compliant behaviour but will probably work in most circumstances.
mbrico
Junior Member
Posts: 5
Joined: Tue Dec 23, 2014 11:08 am

Postby mbrico » Thu Apr 14, 2016 1:23 pm

Hi Ross,

thanks you for the answer, but in my project the VBUS it's connected to USB_VBUS pin of xMOS.
This means that xMOS it's able to looking for VBUS, so I don't understand why if I use the xMOS in Self Powered mode the xMOS doesn't start when Win10 wakes from sleep.

The only way to don't have problem with the awakening from the sleep with a PC it's only using the Bus Powered Mode. It's correct?
So, What does it the Self Powered mode and when use it?

Thanks for support
mbrico
User avatar
Ross
XCore Expert
Posts: 768
Joined: Thu Dec 10, 2009 9:20 pm

Postby Ross » Thu Apr 14, 2016 2:16 pm

Ah okay, I had assumed you were using the xmos U8 4 channel board due to:
"app_usb_aud_xk_u8_2c".
When your board is in the broken state please run xrun --dumpsate youapplication.xe and post the results.

What voltage do you have at the XMOS vbus pin?

Who is online

Users browsing this forum: No registered users and 0 guests