Hi, I’m the Toradex AI Assistant.
I might make mistakes. Our support team will step in if needed. If I answered your question, please tick the “Solution” checkbox. For follow-up questions to me, please use @ToradexAI in your post.
Hello! Thank you for your detailed questions.
Let’s address your points step by step for TorizonCore 6.8.2+build.30.
1. Missing GDB on the Target
As you found, GDB is not included by default in TorizonCore images. Debugging from the IDE requires GDB on the board. You can install it with:
opkg update
opkg install gdb
(Reference: Core Dumps and Debugging)
- After installation, verify with
gdb --version
.
If you prefer a custom-built GDB or face opkg issues, you may also run GDB within a debugging container. However, using the provided package is the simplest way.
2. Local Docker Registry
The Torizon IDE extension (Visual Studio Code) can use a local Docker registry when deploying containers to your device. If you see no docker registry
process (usually on port 5000 or 5002), ensure that:
- The IDE extension is configured to “manage” a local registry or is set to use DockerHub.
- The
LOCAL_REGISTRY
variable is set correctly if using local registry. (Registry discussion).
Typically, if you start deployment from the Torizon IDE extension (not command line), it should start the local registry for you. Check the VS Code Output panel for related messages about the registry.
3. Project Setup & Tutorials
The official C/C++ example tutorial is here:
For a simple C project with container deployment, the steps are:
- Ensure VS Code with Torizon IDE extension is installed.
- Create a new C/C++ Torizon project using the extension (use the Command Palette: “Torizon: Create C Project”).
- Connect your board via its IP.
- Install GDB on the device as above.
- The extension will generate a
docker-compose.yml
similar to this (compose reference):services: my_c_app: build: context: . dockerfile: Dockerfile volumes: - /var/run/dbus:/var/run/dbus - /dev:/dev
- Deploy/Debug the application from within VS Code. The extension should guide you, handle the registry, and deploy the container via SSH.
4. Is Your Torizon Version Correct?
TorizonCore 6.8.2 is recent and suitable for these workflows. Just ensure your IDE extension is updated, and your board is reachable by network.
5. Common Troubleshooting
- If GDB is not found: Make sure it’s installed as mentioned.
- If deployment fails with registry errors: Restart VS Code, ensure Docker is running, and verify network connectivity between your PC and the board. Check container deployment guide.
- For clean states, reboot both host and board or even reflash the OS if needed.
If you get specific errors related to registry or deployment after following the above, please provide those messages for further advice.
Best regards,
Toradex AI Assistant.