Skip to content

Instantly share code, notes, and snippets.

//raspberry pi based pic 18f2550 programmer
//only meant as a bootstrap (e.g. for http://openprog.altervista.org/OP_eng.html), not for production use
//only bulk erases then writes programm data (including empty areas) and config, does no verification.
//hardcoded to 16bit adresses for program data (search for "//WARNING" to find the location)
//based on rpp by Giorgio Vazzana (http://holdenc.altervista.org/rpp/rpp.html)
#!/bin/bash
#requirements:
#sha1sum (part of coreutils)
#xxd (part of vim)
#https://github.com/socram8888/ulread
#https://github.com/socram8888/amiitool
#put ulread, ulwrite and amiitool in the same directory as this script
if [ $# -ne 2 ]