Tool/software:
Trying to load patch bundle from MCU (ESP32-S2) over I2C (400kHz), according to docs, but for some reason I get !CMD. I have tried loops with different delays, but nothing seem to work even if all commands are correct. Reading and writing seems to work correctly. I have tried two different chips, same result.
I also have a question about IRQ_Event. In the Register Overview, register 14h, Ready for Patch is bit 81, but in forum I have seen to look for bit 1, which according to docs is PD Hardreset? When I read register 14h I get 2, i.e. bit 1, i.e. PD Hardreset from my understanding?
Attaching log below.
Attempting to load patch...
Attempting to read 11 bytes from register 14
Register 0x14: 0x00 (0b00000000) '.' 0x00 (0b00000000) '.' 0x00 (0b00000000) '.' 0x00 (0b00000000) '.' 0x00 (0b00000000) '.' 0x00 (0b00000000) '.' 0x00 (0b00000000) '.' 0x00 (0b00000000) '.' 0x00 (0b00000000) '.' 0x00 (0b00000000) '.' 0x02 (0b00000010) '.'
Locking for PTCH
Attempting to read 4 bytes from register 3
Register 0x03: 0x50 (0b01010000) 'P' 0x54 (0b01010100) 'T' 0x43 (0b01000011) 'C' 0x48 (0b01001000) 'H'
MODE found: PTCH
Bundle size: 13184
Writing DATA1
Attempting to write 6 bytes to register 9: 0x80 (0b10000000) '.' 0x33 (0b00110011) '3' 0x00 (0b00000000) '.' 0x00 (0b00000000) '.' 0x0F (0b00001111) '.' 0x32 (0b00110010) '2'
I2C write successful
Writing DATA1 successful
Attempting to write 4 bytes to register 8: 0x50 (0b01010000) 'P' 0x42 (0b01000010) 'B' 0x4D (0b01001101) 'M' 0x73 (0b01110011) 's'
I2C write successful
Attempting to read 4 bytes from register 8
Register 0x08: 0x21 (0b00100001) '!' 0x43 (0b01000011) 'C' 0x4D (0b01001101) 'M' 0x44 (0b01000100) 'D'
CMD1 is !CMD, checking again
Upload failed, restarting procedure...