Odyssey X86 / Ubuntu 18 / PlatformIO - Ardiuno Core hangs after system boot

Is anyone else using Ubuntu 18 & PlatformIO to do embedded development?

When I reboot the X86 system the Arduino core doesnt start up until I execute:

cat /dev/ttyACM0 or I open the terminal monitor in Arduino or PlatformIO

The system hangs at the Serial console check

Anyone have any Suggestions?

Heres my test Code snippet:
//*****************************************************************************
void setup()
//*****************************************************************************
{

SerialUSB.begin(9600);

// Enable the Serial Console
while (!SerialUSB); // <================ HANGS HERE!
}

platformio.ini

; Added framework overide per Anson 2020-08-28 MMI
platform_packages = framework-arduino-samd-seeed@https://github.com/Seeed-Studio/ArduinoCore-samd.git

platform = atmelsam
board = seeed_zero
framework = arduino

@ansonhe97 Heres some more documentation on the system hang

This is the reason why it hangs?

while(!Serial)

means it has to open the serial to keep going, in my testing files i’ve commented this line out.

I sent you an email regarding this fix. Since the only way I can get data back to the X86 for processing I need to know that the TTYAms0 port is operational and readable from thje Arduino, or my sensors are not talking to anything and system is in a failed state and the Arduino has no idea that nothing is receiving its data stream. Thats why we do the !Serial check before we begin the processing loop.

i’ve found that you have to take that out, but that said, if you look here when it was first released we were trying to figure out what device names and other stuff was for each port,

we also discovered the wiki was wrong which they fixed but this might give you some info.