XMOS not recognized after the sleep Topic is solved

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

XMOS not recognized after the sleep

Post by mbrico »

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: 962
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

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

Post by mbrico »

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: 962
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

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

Post by mbrico »

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: 962
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

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?
Post Reply