Page 1 of 1

[HELP] error: use of `p_i2c_4` violates parallel usage rules

Posted: Thu Oct 18, 2018 8:29 am
by Luanvt4_fpt
Hi All,

I want to using Raspberry Pi control DAC.

PI (i2c master) --(1)--> (i2c slave) XVF3000 (i2c_master) --(2)--> (i2c_slave) DAC

I configured at step (1), but got stuck at step (2).
I found the audiohw.xc file using to control DAC when the XMOS is power on.
I have written same function in audiohw.xc and call it by Pi. But the compiler was error(subject).
I want to using more thread to control the DAC.
1. From usb_audio_io (default)
2. From PI
Do you have any idea to do this?

Thank in advance!

Re: [HELP] error: use of `p_i2c_4` violates parallel usage rules

Posted: Thu Oct 18, 2018 10:42 am
by mon2

Re: [HELP] error: use of `p_i2c_4` violates parallel usage rules

Posted: Tue Oct 30, 2018 9:40 am
by Luanvt4_fpt
Done
I used tile 0 to call tile 1 use "chan".

Re: [HELP] error: use of `p_i2c_4` violates parallel usage rules

Posted: Wed Dec 26, 2018 2:41 pm
by Yanava
Given that piece of info, can you answer: without using lib_i2c, how are you supposed to share the i2c bus between multiple clients?

Regards.