As recommend in this topic, I decided to implement updating the firmware for XMOS XU316 MCU using and ESP32 in the following way:
- Reset the XU316 MCU by pulling the RST_N pin to the ground. (This prevents communication to the QSPI Flash chip)
- Use the SPI interface on the ESP32 to write the binary image to the QSPI Flash Memory According to the, I assume, specifications provided in the XU316 Datasheet: 9
- Program size and CRC as LSB first.
- Followed by each byte of the binary image as LSB Nibble first.
- Stop pulling the RST_N pin to the ground. Allowing the device to restart.
Is there any application note/implementation available that shows how the data should be written to the flash when not using another XMOS device to update the firmware?
Kind regards.
Bram