To protect bootloader, first 2MB of flash can be
write protected by flash vendor specific commands.
fujprog segfaults trying to write over write protected range.
some reporting of current flash protection status and reason
why it can't flash would be nice to users,
and of course options to set and remove write protection too
For Winbond and ISSI on ULX3S boards, here is esp32
micropython code, it's simple and can be used as reference
for fujprog https://github.com/emard/esp32ecp5/blob/master/ecp5wp.py
To protect bootloader, first 2MB of flash can be
write protected by flash vendor specific commands.
fujprog segfaults trying to write over write protected range.
some reporting of current flash protection status and reason
why it can't flash would be nice to users,
and of course options to set and remove write protection too
For Winbond and ISSI on ULX3S boards, here is esp32
micropython code, it's simple and can be used as reference
for fujprog https://github.com/emard/esp32ecp5/blob/master/ecp5wp.py