Hello,
I'm now using nrf5340dk. I want to use its net core to connect ina219 through i2c. I knew that net core i2c is &i2c0, so I set the overlay file like follow,
So I want to know that whether net core can connect sensor through i2c?
Hello,
I'm now using nrf5340dk. I want to use its net core to connect ina219 through i2c. I knew that net core i2c is &i2c0, so I set the overlay file like follow,
Hi,
Can you elaborate why you want to do this? The problem is that doing this is very complicated, because you would need to pass data from the netcore to the appcore, and then back to the netcore using the host controller interface. It's only intended to run the BLE stack on the netcore.
But to answer your question; You will likely need to add the pins in question to the overlay file for the appcore, such that control of the pins in questions are forwarded from the appcore to the netcore. If you look for "fwd" in the appcore board files you likely will find some mention already.
Kenneth
Hello,
Thank you for your response. I’m working on this project because I want to connect two sensors—ICM20948 and INA219—to the nRF5340DK and process their data simultaneously. To achieve this, I plan to utilize the dual-core architecture of the nRF5340DK by assigning each sensor to a separate core: one to the application core and the other to the network core.
I also have a few questions. What does "fwd" refer to? Additionally, why is it necessary to specify the pins in the overlay file for the application core? How does this approach help address my issue?
Sincerely,
Thomaddd
There is no problem to connect multiple sensors to the same i2c bus, it's kind of designed for the purpose, if two threads try to read/write to the i2c bus at the same time, one will just wait until the other is finished. The appcore also have several i2c buses, so there is no problem that two threads read/write to their own i2c bus at the same time if you want to do that instead.
Kenneth
Ok, I understood what you mean. You mean I can connect two sensors to appcore, then using multithreads to process the data?
Thomad