paulscottrobson / neo6502-firmware

Firmware for a Neo6502 Retrocomputer
http://www.neo6502.com
MIT License
63 stars 18 forks source link

neo6502-firmware

Firmware and emulators for the Neo6502 retro-computer

The home page

All the documentation currently resides at.

Releases

The release tarballs contain pre-built firmware, emulators for windows and *nixes, scripts, utilities, documentation, and examples/demos of BASIC, C, and assembly programs.

Compilation

Sources

Note that to build the firmware, additional third-party sources are required. If not supplied, these will be downloaded automatically at build-time. These are not needed to build the emulators however. The automatic downloads, and the 'git' dependency may be avoided by collecting these sources manually.

Then explode the tarballs and set the following variables in the environment:

$ export PICO_SDK_FETCH_FROM_GIT=OFF
$ export PICO_SDK_PATH=/path/to/picosdk_sources
$ export PICO_TINYUSB_PATH=/path/to/tinyusb_sources
$ export PICO_DVI_PATH=/path/to/picodvi_sources
$ export PICO_FATFS_PATH=/path/to/picofatfs_sources

Dependencies

All of the sources and dependencies are freely available.

Most distros have the dependencies packaged. Firmware has been successfully built on Arch, Fedora, Ubuntu, Debian and Solus.

Build

Build the firmware only:

$ make firmware

Build the windows emulator only:

$ make windows

Build the *nix emulator only:

$ make linux

Build the mac emulator only:

$ make macos

Build everything (firmware, all emulators, examples, demos, etc):

$ make

Uploading Firmware

At the time of writing, to use openocd to upload with CMSIS-DAP v2 (which is Pico based programmers) requires it to be built from source, which often has libusb1 as a dependency (without this it will build).