I'm having issues read/writing to a CPS1432 switch. There are some settings that do not seem to be quite right when I have been able to set the 6670 in boot mode and communicate (using maintenance packets) to the TMS320C6670 (1.0, 1GHz silicon), reading/writing tag/vendor/assembly information. I have also setup the SRIO peripheral manually (using the pdk loopback example as a basis) and have also been able to communicate from the switch to the dsp.
My set it up function can be found here: http://pastebin.com/hCDnsptV, we are using a 156.25MHz
I seem to be having 2 problems, first is that link status is not always valid, My main issue comes when trying to initiate communications from the DSP to the switch. I set/read the CAR register for link reset/status and do not always get the "0x80000010" returned (unless I enable loopback), however the switch always sees the DSP (and can read/write to it). Not sure why the switch can see the link w/o any issues while the DSP doesn't always see a good link status.
The other issue I have is that I can play with the settings so the link does look good, however I cannot get maintenance packets to read/write w/ a valid code. Sometime if I play w/ the switch settings, I can write maintenance packets, and the ackid's increment, however the completion code back I get is always timeouts. I know the write is working because the switch's property changes, however I never seem to get read data back.
Here is what I am doing for Direct I/O access using maintenance read/writes http://pastebin.com/FcCnSdhk
Any help figuring out what is wrong with either of these issues would be greatly appriciated