How can I read USB Node and PHY configuration registers from xgdb ?
I cannot find any information how to use sysreg command
Read USB Node and PHY configuration registers from xgdb
-
- Active Member
- Posts: 44
- Joined: Fri Sep 15, 2017 2:58 pm
-
- XCore Legend
- Posts: 1913
- Joined: Thu Jun 10, 2010 11:43 am
-
- Active Member
- Posts: 44
- Joined: Fri Sep 15, 2017 2:58 pm
Thanks, I already have a look to this thread but I can't find information about fields to access USB node and USB PHY configuration registers.
The thread describe how to access node configuration registers
The thread describe how to access node configuration registers
-
- XCore Legend
- Posts: 1913
- Joined: Thu Jun 10, 2010 11:43 am
Hi. Have you seen the details inside the XU208 datasheet? There is info on the USB Node and PHY inside this document. Perhaps this is what you are after?
You do not have the required permissions to view the files attached to this post.
-
- Active Member
- Posts: 44
- Joined: Fri Sep 15, 2017 2:58 pm
That's exactly the information I want to read but through xgdb. I have to use "sysreg" command.
As far as I understand the sysreg syntax command is "sysreg read $node $switch $reg".
To access node configuration $node = 0, $switch = 1 and $reg is the register address.
But I can't find which parameter values I have to use to access USB node and phy registers.
As far as I understand the sysreg syntax command is "sysreg read $node $switch $reg".
To access node configuration $node = 0, $switch = 1 and $reg is the register address.
But I can't find which parameter values I have to use to access USB node and phy registers.
-
- XCore Legend
- Posts: 1913
- Joined: Thu Jun 10, 2010 11:43 am
I think you may have answered your own question...
Start with $reg = 0 and validate that the response = Device ID as per datasheet - no harm to test since this is a RO = read only register.
then proceed as per datasheet with:
$reg = 4 ; Node configuration register
and so on...USB node and PHY offsets are listed in the same document.
Is this what you are after?
$reg = 0 ; Device Identification RegisterTo access node configuration $node = 0, $switch = 1 and $reg is the register address.
Start with $reg = 0 and validate that the response = Device ID as per datasheet - no harm to test since this is a RO = read only register.
then proceed as per datasheet with:
$reg = 4 ; Node configuration register
and so on...USB node and PHY offsets are listed in the same document.
Is this what you are after?