Virtual machine crashes when executing the csp exmaple

81 views
Skip to first unread message

Embedded Systems Engineering

unread,
Dec 5, 2022, 11:40:49 AM12/5/22
to cubesat-space-protocol
Dear CSP community Hello,
I am new to CSP, I am trying to execute the example in this git for client-server protocol.
csp_server_client.c example.
I am running this example on a virtual machine and when I execute these lines my machine crashes and reboots.


  /* Wait for execution to end (ctrl+c) */
  while (1)
    {
      sleep (3);

      if (test_mode)
    {
      /* Test mode is intended for checking that host & client can exchange packets over loopback */
      if (server_received < 5)
        {
          csp_print("Server received %u packets\n", server_received);
          exit (1);
        }
      csp_print("Server received %u packets\n", server_received);
      exit (0);
    }
    }


Do you have any idea about this issue?
Normally, the code should run il a loopback if any device is connected to my host computer.
Thank you in advance for your help

Embedded Systems Engineering

unread,
Dec 5, 2022, 11:47:24 AM12/5/22
to cubesat-space-protocol
I am using Ubuntu with Vmware
Reply all
Reply to author
Forward
0 new messages