USB XUD lib problem

Technical questions regarding the XTC tools and programming with XMOS.
homerJ
Member
Posts: 15
Joined: Tue Mar 08, 2011 12:06 pm

USB XUD lib problem

Post by homerJ »

Hi,

i try to include the XUD-Lib in my XS1-L1 project.
Therefore I have compiled the XUD-HID example without any errors.
But when I start the program, xgdb.exe crashes, with optimization level 3.
While optimization level ist set to zero, xgdb.exe reports no error, but the HID-example doesn't work.

What is the problem?? :shock:


addition: the optiomization level has no effect...


User avatar
XMatt
XCore Addict
Posts: 147
Joined: Tue Feb 23, 2010 6:55 pm

Post by XMatt »

Could you attach the binary? What development hardware are you running on and if you could let me know the tools version and OS I will take a look. If you could post the output you are getting also that would be helpful to understand your problem.
homerJ
Member
Posts: 15
Joined: Tue Mar 08, 2011 12:06 pm

Post by homerJ »

I used the XMOS Development Environment (V11.2.0, OS = XP) and I attached the "libxud.a" by setting the "library search path" and library name ("xud") under project/properties/cxc build/settings/MapperLinker/Libraries...

compiling and linking was successful.

my hardware is an own designed board...i can upload/debug/running other programs on it.

.... and there is no error report, only the Visual Studio-Debugger tells me that xgdb.exe was crashed and the program isn't running..
User avatar
XMatt
XCore Addict
Posts: 147
Joined: Tue Feb 23, 2010 6:55 pm

Post by XMatt »

Any chance you could attach the .xe file to the post so I can see what is going one?
homerJ
Member
Posts: 15
Joined: Tue Mar 08, 2011 12:06 pm

Post by homerJ »

this is my hid xe file...
HID_Debug.zip
You do not have the required permissions to view the files attached to this post.
homerJ
Member
Posts: 15
Joined: Tue Mar 08, 2011 12:06 pm

Post by homerJ »

by the way, how can I activate the ULPI???
the documentation is very bad :cry:

is the ULPI a hardware feature??

has someone tried to run the HID-Demo or other USB-ULPI programs???
User avatar
leon_heller
XCore Expert
Posts: 546
Joined: Thu Dec 10, 2009 10:41 pm
Location: St. Leonards-on-Sea, E. Sussex, UK.

Post by leon_heller »

I can't even build it (USB-Library-and-HID-Example(1.0.0beta1))! I've raised a support ticket.