

The ZIP file contains the entire project and consists of very few files. At the time, I had some ESP32 hardware available so I could test that setup on a Windows(10), Linux and an OSX host machine and it worked on all platforms.Īs I now have only a Window 10 host and a RaspBerry PI3B running Raspbian as target, I have tried and managed to get it working from my Windows 10 host but all in all, it should be pretty much platform independent as a lot of the scripting relies on Environment variables which need a slightly different setup on the various platforms but they are common to all the possible platforms, particularly because I use the Mingw32 shell on my Windows machine. Then, I recently went from an Eclipse/ESP32 toolchain combination to a Visual Studio Code/ESP32 toolchain which turned out to be much easier to set up than the Eclipse/ESP32 toolchain one.

The last couple of years, I have done quite a lot of software cross development using a combination of Eclipse and various gcc/g++ development toolchains on multiple platforms (Bare metal/FreeRTOS/Linux on all sorts of processors: ARMcortex M0+.dual core ARM9, ESP32, Power5.) so I do have a basic knowledge on how these things work. My Raspberry PI is running the Raspbian Linux distro so it is probably not a bad example on how to set things up on other development boards running various Linux distros as well Background I think the main reason for that is that "C/C++" is not very popular on the Raspberry PI, Python appears to be much more popular.Īs I have been able to assemble all the necessary stuff to pull it off, I decided to make the summary myself.

There is lots of info out there but no summary of how to set up things to make an example " Hello world" from a Windows host on a remote Raspberry target.

Oddly enough, how to do that from a Windows (10) host to do the cross compilation/ build and also do remote debugging from the host computer is very hard to find. The one line description explains most of it: I have a Raspberry PI 3B for which I have wanted to build some C/C++ projects.
