Dear XMOS community,
I have launched development of XS1-U8A-128-FB217 based device.
Now I am trying to add lib_usb to the project. I have number of compilation errors.
1. Initially I got errors related to REF_CLK_FREQ and XUD_SERIES_SUPPORT. I solved them using changing Makefile and adding flags -DREF_CLK_FREQ=100 -DXUD_SERIES_SUPPORT=XUD_U_SERIES. Is it correct way? Is there any other way to set project definitions?
2. The next issue is “../lib_usb/lib_usb/xudlib/XUD_G_Crc.S:23: Error: A00049 no format matching for instruction: 'in'”
It is related to not defined “RXD” symbol in this flag. I solved that adding to make file -DRXD=r0
3. The third issue is
“../lib_usb/lib_usb/xudlib/included/XUD_Token_Out.S:124: Error: A00050 Instruction 'setc' does not allow a label as an immediate”
It is related to mising include of xs1b_user.h file. It can be solved by including it into asm source.
4. Another issue is “../lib_usb/lib_usb/xudlib/included/XUD_Token_Out.S:132: Error: A00049 no format matching for instruction: 'ldw'” It is related to missing “STACK_EXTEND” definition.
Please advise how to deal with mentioned issues, what is wrong?
Thank you,
Peter
Using lib_usb Topic is solved
-
- Junior Member
- Posts: 4
- Joined: Fri Apr 22, 2016 12:12 pm
-
- XCore Expert
- Posts: 972
- Joined: Thu Dec 10, 2009 9:20 pm
- Location: Bristol, UK
Can you build the examples without issues?
-
- Junior Member
- Posts: 4
- Joined: Fri Apr 22, 2016 12:12 pm
Yes, I compiled basic things like led blinking and so on. Now I want to get some results with USB. After adding lib_usb (HUD) to the project I got strange issues.
-
- XCore Expert
- Posts: 972
- Joined: Thu Dec 10, 2009 9:20 pm
- Location: Bristol, UK
Sorry, i mean the USB examples, the HID mouse etc.
-
- Junior Member
- Posts: 4
- Joined: Fri Apr 22, 2016 12:12 pm
The issue was solved by using and customizing the full USB Audio package. Now the custom board works properly.