I’m not an expert, there’s a lot of noob hacks here, but to encourage others, here are my notes on setting up.
32blit is very impressive how it can target so many platforms!
Sorry I wont be mentioning Mac or chrome OS’s, I’m not familiar at all with them.
I’m mostly in the 32blit discord (Chat) - 32blit
But I can try and answer/help here to.
General noob tips:
The 32blit documentation is pretty good, but I still got caught out here and there.
Keep folders names simple, ie no spaces or none ASCI chars, including user name!
Make sure your .profile or .bash_profile etc can be run correctly in your window terminal before starting!
Sometimes they have access issues, ie a quick fix can be:
chmod 777 $HOME/.bash_profile
If you want to build faster use:
make -j4
The number is the threads to run, the more the faster
I’m a git,cmake,arm noob, it’s best to git clone each repo then to download them as zips, this is required by some, but best to do for all, IE:
git clone -b master GitHub - raspberrypi/pico-sdk
Each target has it’s own build folder in the 32blit-sdk (or your game) folder
ie build.stm32 build.em etc.
Here is the directory structure at the end.
$HOME/
emsdk
pico-sdk
32blit-tools
pico-extras
pico-sdk
gcc-arm-none-eabi-9-2020-q2-update (not required, and probably a me thing)
.local/bin (auto generated - location of the 32blit tool)
32blit-beta (latest branch for pico devices)
I thought I would use a new linux flavor, I went with MX (debian based) and picked XFCE (and unknowingly stable).
Here are the links: https://distrowatch.com/?newsid=11206
First do this, give your user access to serial device!
On my debian stable, or the MX repo the gcc-arm-none-eabi package (from 2018) couldn’t build the stm32.
I had to “brought force it”… and downloaded the tar.bz2 file and extracted it and manually fixed up the paths in .profile
PATH="$HOME/gcc-arm-none-eabi-9-2020-q2-update/bin:$PATH"
32blit can printf to the TTY terminal, install one, ie:
sudo apt-get install putty cu minicom screen
I found screen to work the easiest (no params), ie:
screen /dev/ttyACM0
Updated the firmware:
Put the 32blit in DFU mode (hold X/Y and press reset) , winplug the USB cable in.
32blit flash firmware/firmware.bin
or
make firmware-update.flash
next install the launcher:
32blit install launcher/launcher.blit
or
make launcher.flash
intall all the other demos (see bottom of Makefile for more info):
make install DEMO-NAME.flash
You now should have a working and demo loaded 32blit!
thta read just blew my ADHD all to hell ,great post ,thanks for posting , I dont code ,just use otheres and I thank you and otheres for doing that part for people like me , I have the VGABoard hanging pretty on my Pi/Pico wall ,tried a few time using others instructions ,but never got anywere and Gave Up .
I put my notes on my website (somewhat formated) and linked it to archive.org, which has a downloadable Linux Virtual Box Virtual Machine, that’s what I use anyway.