Hello everyone,
I have a Portenta H7 which is connected to a linux SBC. I use the USB to collect Data from the portenta and log it in the SBC. The Portenta has a seperate 5V power supply going to the VIN pin which is also shared by the SBC.
Now whenever I am running my logging program on the SBC after a certain amount of time the portenta starts hanging and doesn't run it's loop as it's supposed to. The speed at which it sends the data reduces significantly and it doesn't take any external logic triggers. I am having a hard time trying to figure out the issue. I've set a timeout on the Portenta side and I am using the serial library to communicate to send the data every one second.
On the SBC the problem occurs when I am running my logging program and even when I am just using minicom to just read the data so I doubt my logging program is causing any issues. When I disconnect the portenta to the SBC my code is running fine without any issues and is taking external trigger inputs. When I disable minicom or stop my logging program and have the portenta connected to the SBC the portenta runs fine and is able to take external logic triggers.
What could be the problem? My guess is it's got something to do with the USB connected and the portenta taking in power through the USB as well as through the VIN input pin. I had an issue earlier where when the Portenta was connected to just the SBC for power it would continuously switch to the bootloader mode which I solved by powering it externally.