Tool/software:
Hi i2c expert,
We now want to move I2C1 from mcu2_0 to the A core end, so that we can use I2C1 in the linux A core, what modifications should we make?
Very urgent question, looking forward to your reply.
Tool/software:
Hi i2c expert,
We now want to move I2C1 from mcu2_0 to the A core end, so that we can use I2C1 in the linux A core, what modifications should we make?
Very urgent question, looking forward to your reply.
Hi Barry,
Are you using Linux + RTOS? Are you using I2C1 within your RTOS code?
Thanks,
Neehar
Hi Neehar,
We are using Linux+RTOS, I2C1 can be used by us in MCU2_0, but because there is a device driver loaded and used on the Linux side and needs to use I2C1 communication, we must be able to use I2C1 in Linux A core;
#1: When mcu2_0 starts, I2C1 can be used in MCU2_0, and after the system starts, Linux A core can also use I2C1. Is this feasible? How to modify it?
#2: Directly move I2C1 from MCU2_0 to Linux A core, so that I2C1 can only be accessed and used in A core. What should I do?
Looking forward to your reply, thanks
Hi Barry,
#1: When mcu2_0 starts, I2C1 can be used in MCU2_0, and after the system starts, Linux A core can also use I2C1. Is this feasible? How to modify it?
We do not recommend doing this and using the same instance for two different cores. The only case is if you are certain about timing where you can ensure the A core will not access I2C1 until after MCU2_0. Another case is if you are using I2C1 within MCU2_0 solely for SBL and after boot up it is not used again.
Otherwise we recommend solely using I2C1 on the Linux A72 core.
Thanks,
Neehar
Hi Neehar,
Thanks for your reply.
#1:
When mcu2_0 starts, it will use I2C1 to initialize serdes. When Linux starts, it will use I2C1 for communication.
In SDK8.6, how to support I2C1 in this way? How should we modify?
#2:
In SDK8.6, I2C1 is only enabled for use in A-core Linux. How should it be modified?
Hi Barry,
Are these two separate queries? Or are you asking which implementation would be better?
Thanks,
Neehar
The requirement is that I2C1 can be used in both MCU2_0 and Linux A.
(The current usage scenario is that mcu2_0 will use I2C1 during the initialization phase, and will also use I2C1 communication after the A core is started)
We need to know how to modify the software to achieve simultaneous use of I2C1. Please help me confirm the modification points. This question has not received an effective answer. look forward to your confirmation.
Hi Barry,
Like I said before, we don't recommend using the same instance on two separate cores and would not be able to provide support on how to do so. We don't have any implementation that does this. The best way would be to ensure there is no overlap and to close the instance immediately after it is done being used such as after SBL.
Thanks,
Neehar