Running F prime GDS with custon Ref app in a Docker container #2770
-
Hello! I have ported successfully the Ref app to the SAMV7 board. I am running F prime inside a Docker container using the Dev container tool for VSCode, same as done by the Melbourne Space Program in their feat/osal branch. I want now to run the Ref app with fprime-gds tool for this specific board, and this is the command I execute inside the Ref/ folder:
And this is the error message I get:
The Ref.log file is empty, and the comm.py.log file throws me this:
I don't know if it is because my Ref app is not correct or because there is some problems when exposing the ports in the dev container in VSCode. Find attached the devcontainer.json file I am using. If needed, I can probably upload the code to a repo. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
My guess from looking at this (and because Ref log is empty) is that your Ref application is not formatted right for the container you are running in. What happens if you run it directly:
I'd expect there is some form of executable format error. In that case what does the following command return:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Okay thank you! Makes sense the binary cannot run inside the Docker since the executable if for a 32-bit ARM MCU and the container is running Ubuntu. |
Beta Was this translation helpful? Give feedback.
I think you are on the right track! The file cannot be run in the container, but must be run on the board. Therefore, you need to run the GDS as you said:
Then run the file on the board and have it connect back to the GDS. Note: if you cannot supply command line arguments to the app when running on the board, then you likely need to hard code the address of the GDS and the port.
You also need to make sure there is a forward for port
50000
of the GDS as the board needs to connect to that port.The RED X means the GDS is running and waiting for your connection from the board. …