aboutsummaryrefslogtreecommitdiff
path: root/stm-ice40mkm.c
AgeCommit message (Collapse)Author
2021-12-20Reworked the way iCE40-based MKM is configured. The bitmap is now stored rightice40mkmPavel V. Shatov (Meister)
after the main FPGA's bitstream (was placed at the very end of the configuration memory previously). This makes it possible to flash two devices at the same time, but needs a somewhat smarter supporting routine. Instead of just looking at the very last sector of the config memy we now to need to swipe through all the sectors looking for the Lattice magic bitmap marker to determine where the MKM firmware starts.
2021-09-13This adds two routines, ice40mkm_init() and ice40mkm_configure(). The formerPavel V. Shatov (Meister)
should be called once during startup. The latter configures the iCE40 chip with a bitstream stored in the very end of the main FPGA's configuration memory. It should be called after startup and potentially after MKM bitstream is upgraded.