I successfully ported the USB audio SW to my custom board. Working with linux and windows with a single stereo output port, 192kHz/24b with a TI DAC.
I'm trying to make the hid function to work. I have some switches connected on tile 0 and declared as follow:
in UserReadHIDButtons, the following code does not work:
Code: Select all
in port p_sw1 = on tile : XS1_PORT_4C; // PREV, SRC, NEXT, ON in port p_sw2 = on tile : XS1_PORT_4E; // PLAY, DST, VOL-, VOL+
I have random values in sw1 and sw2.
Code: Select all
unsigned int sw1, sw2; p_sw1 :> sw1; p_sw2 :> sw2;
I'm suspecting that UserReadHIDButtons is executed on tile 1, when ports are located on tile 0. Quite strange, because :
- When accessing a port located on tile 1 in this function, the compiler warns
- It didn't warn accessing port on tile 0
=> How can I know the location of a function (tile 0/1) ?
Also, I found in the documentation :
ok, so how to configure the port ? I'm using an output port without any config, and it works... Basic examples of port usage on the web don't do any config. I found some init functions but only for a more complex usage with clock.A port is initially OFF with its pins in a high impedance state. Before it is used,
it must be configured to determine the way it interacts with its pins, and set
ON, which also has the effect of starting the port
Finally, does someone makes this adaptation of eclipse working ?
- CTRL+H regularly fails
- CTRL+clic almost never works
- right clic + open call hierarchy and other usefull things don't works.
Very bad to debug a spaghetti plate when even the main() is hidden and not visible in the project explorer tab.