This contains files to build MMbasic V6.00.01 to run on both RP2040 and RP2350
Compile with GCC 13.3.1 arm-none-eabi
Build with sdk V2.1.0 but replace gpio.c with the one included here
Change CMakeLists.txt line 4 to determine which variant to build
RP2040
set(COMPILE PICO)
set(COMPILE VGA)
set(COMPILE PICOUSB)
set(COMPILE VGAUSB)
set(COMPILE WEB)
RP2350
set(COMPILE PICORP2350)
set(COMPILE VGARP2350)
set(COMPILE PICOUSBRP2350)
set(COMPILE VGAUSBRP2350)
set(COMPILE HDMI)
set(COMPILE HDMIUSB)
set(COMPILE WEBRP2350)
Any of the RP2350 variants or the RP2040 variants can be built by simply changing the set(COMPILE aaaa)
However, to swap between a rp2040 build and a rp2350 build (or visa versa) needs a different build directory.
The process for doing this is as follows:
Close VSCode
Rename the current build directory - e.g. build -> buildrp2040
Rename the inactive build directory - e.g. buildrp2350 -> build
edit CMakeLists.txt to choose a setting for the other chip and save it - e.g. set(COMPILE PICO) -> set(COMPILE PICORP2350)
Restart VSCode