Combining AVB+USB Code Resulted In Constraints Check Errors

Technical questions regarding the xTIMEcomposer, xSOFTip Explorer and Programming with XMOS.
fabra
Member
Posts: 13
Joined: Sat May 09, 2020 4:20 pm

Re: Combining AVB+USB Code Resulted In Constraints Check Errors

Postby fabra » Tue Jun 30, 2020 9:58 am

Did someone test the proposed solution?
fabra
Member
Posts: 13
Joined: Sat May 09, 2020 4:20 pm

Postby fabra » Tue Jul 14, 2020 8:54 pm

I did the proposed changes and was able to run the USB endpoint and the ethernet mac with PTP. Unfortunately there is not enough cores available to run the full AVB stack in combination with USB audio. Is it possible to make a modified version of the ethernet mac that runs at 100 Mbit and uses less cores?
User avatar
akp
Respected Member
Posts: 451
Joined: Thu Nov 26, 2015 11:47 pm

Postby akp » Wed Jul 15, 2020 6:33 pm

Refer to this thread viewtopic.php?f=26&t=4731
fabra
Member
Posts: 13
Joined: Sat May 09, 2020 4:20 pm

Postby fabra » Tue Jul 28, 2020 8:23 am

Thanks! This link was very helpful.

Next step is to figure out how to reduce the number of used chanends in order bring up the full AVB stack. Any ideas are welcome!
User avatar
akp
Respected Member
Posts: 451
Joined: Thu Nov 26, 2015 11:47 pm

Postby akp » Tue Jul 28, 2020 9:20 am

Glad you got it working.

There are several ways to remove used chanends if you just need them for communication between tasks on the same tile.
For data streaming you can use ring buffers / fifos.
For other uses of chanends you can look at the ways to share memory here viewtopic.php?f=26&t=3061

And refer to module_xc_ptr on the xcore github https://github.com/xcore/sc_util/tree/m ... ule_xc_ptr and of course lib_locks if you need to handle synchronization in your software that would have normally been handled by the chanends themselves.

Who is online

Users browsing this forum: No registered users and 1 guest