Program Lattice MachXO2/3 with CircuitPython
Program Lattice MachXO2/3 with CircuitPython
This is a CircuitPython library that allows updating the internal flash in a MachXO2/3 device through I2C with a CircuitPython board.
This library depends on:
It is highly recommended to use an ARM Cortex M4 board with sufficient memory to run CircuitPython. External SPI memory is likely required to store the MachXO image. This code was developed with the Adafruit Feather M4 Express
Some example hex and jedec files are provided in the examples folder for demonstration purposes.
This can currently program the configuration flash through I2C and has a variety of helper functions for erasing and status.
To be done:
This was based loosely on Adafruit_CircuitPython_AVRprog, but the code was all written from scratch