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

If you have a simple question and just want an answer.
Post Reply
Luanvt4_fpt
Junior Member
Posts: 7
Joined: Wed Sep 12, 2018 9:13 am

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

Post 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!


Luanvt4_fpt
Junior Member
Posts: 7
Joined: Wed Sep 12, 2018 9:13 am

Post by Luanvt4_fpt »

Done
I used tile 0 to call tile 1 use "chan".
User avatar
Yanava
Member
Posts: 8
Joined: Mon Sep 10, 2018 4:23 pm

Post 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.
Post Reply