Starting out the cheapest way is simply to put your executible on a USB stick and learn the couple of commands on linux to mount and copy the file. The issue is the SDcard where you want to put the file to run will be a linux format partition. Linux you build your executable then you must transfer it to the SD card running linux. Lots of code in the baremetal stickies and plenty of help on the baremetal forum Onto it you place your compiled kernel.img file and you need the files bootload.bin, fixup.dat and start.elf which you get from here The make without guile from this link will do the job or you can just use CMake if that is known to youīaremetal you simply need a blank empty SD card formatted with FAT32 (they come like that straight out of packet)
You may also want a windows makefile executable so you use makefiles GCC for ARM 32bit linux always include "arm-none-linux-gnueabihf" sometimes the none is omitted and it is simply "arm-linux-gnueabihf"
Note: GCC for ARM 32bit baremetal always include "arm-none-eabi" in it's name
The first two listed cover intel windows system but compiling for ARM 32bit cpus for either baremetal (No OS) and Linux Personally I do all my coding on stock standard VS2019 community which is free from Microsoft and is a pretty neat GUI but if you have used VSCode or any of the GUI code editors they are all fine.Īs you are looking at the PiZeroW your code will be 32bit the windows cross compiler you can download direct from ARM It simply differs where and how between the two. Ultibo suggested above is Pascal so not sure how useful that will be for you given you have asked on C/C++ forum.Īnyhow with C/C++ in both baremetal and linux you can CROSS COMPILE from the WINDOWS PC, that is do all your coding and compiling on the PC and simply put the code on the SD CARD. In the baremetal forum there are a bunch of stickies at the top but equally you can just download the standard Rasbian no GUI version and run the unit just with linux executables.