i.MX8 shared (USB) peripherals between cores

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX8 shared (USB) peripherals between cores

504 Views
Earthshine
Contributor II

I have a suspicion the answer may be no "no", but is there any possible way to share a single USB host peripheral between the two i.MX8 cores (A53 and M7)?  Ideally, the A53 talking to a USB camera and the M7 communicating via VCP, over a single USB cable.  The A53 will be running Linux or Android - which I suspect is what may preclude this... I'm thinking any attempt to put something else in control of the USB host (with a mutex or such) will probably break the V4L2 connection...?

More generally, can less-sophisticated peripherals (such as GPIO, I2C, UART, etc) be shared (with mutex perhaps) between both cores?

0 Kudos
Reply
1 Reply

498 Views
igorpadykov
NXP Employee
NXP Employee

Hi Brian

 

unfortunately answer is no. The only solution to share some module between M4/7 and A53

is to implement a client-server approach using RPMSG and only one core to program module.

i.MX7ULP MCUXpresso SDK includes some examples of access service via RPMSG on the M4 side .

https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/i2c/busses/i2c-rpmsg-imx.c?h=lf-5....

 

Best regards
igor

0 Kudos
Reply