DEVICE NOT FOUND IN DEVICE TREE

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

cross mob
clinton
Level 2
Level 2
First solution authored 5 questions asked 25 sign-ins

Hi   @AliAsgar 
i came across some problem with super speed explorer kit 
its enumerating while i flash with blink example given with sdk 
But while flashing my firmware its not enumerating in the device tree but its giving the debug prints

and aslo after setting the all descriptors i am calling connectstate parameters both are true After i am checking getspeed() its returning 0 

again its went to renumerating repeatdliy

 

 

/* Connect the USB pins and enable super speed operation */
status = CyU3PConnectState(CyTrue, CyFalse);
//CyU3PDebugPrint(4,"\n\rCyU3PUsbGetSpeed() is %d",CyU3PUsbGetSpeed());
/*if(CyU3PUsbGetSpeed() != CY_U3P_SUPER_SPEED)
{
status = CyU3PConnectState(CyFalse, CyFalse);

CyU3PGpioSetValue(TYPEC_MUX_GPIO, CyFalse);

status = CyU3PUsbControlUsb2Support (CyTrue);
status = CyU3PConnectState(CyTrue, CyFalse);
if (status != CY_U3P_SUCCESS)
{
CyU3PDebugPrint(4, "\n\rUSB Connect failed, Error code = %d", status);
}
}
*/

if i am configuring as above its connected to full speed device
 and also i configured gpio 45 as interrupt its connected to pushbutton
that one also not called while pressing the push button 

Thanks in advance
Best Regards 

clinton

0 Likes
1 Solution
clinton
Level 2
Level 2
First solution authored 5 questions asked 25 sign-ins

Hello @AliAsgar 

I created dma channel before the connectstate thats the problem i think 
after keeping the connect state before the channel creation the device is successfully enumerated

Best Regards 

clinton

View solution in original post

0 Likes
5 Replies
AliAsgar
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 750 replies posted

Hi Clinton,

Can you please share your firmware project folder with us for us to try to reproduce the issue?

Also please share the UART debug prints with us.

Best Regards,
AliAsgar

0 Likes
clinton
Level 2
Level 2
First solution authored 5 questions asked 25 sign-ins

Hello @AliAsgar 

apolize for late reply 

I thouroughly debuged it connect state api is failing 

0 Likes
lock attach
Attachments are accessible only for community members.
0 Likes
AliAsgar
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 750 replies posted

Hi,

Please share your firmware project with us to reproduce the issue at our end.

BTW, from your post I see that ConnectState API is called with CyTrue, CyFalse. These arguments will enable the connection in USB 2.0 mode. Calling the connect state API with CyTrue, CyTrue, will enable the connection in USB 3.0 mode.

Best Regards,
AliAsgar

clinton
Level 2
Level 2
First solution authored 5 questions asked 25 sign-ins

Hello @AliAsgar 

I created dma channel before the connectstate thats the problem i think 
after keeping the connect state before the channel creation the device is successfully enumerated

Best Regards 

clinton

0 Likes