I2C: EEPROM writes
A logic analyser recorded the I2C bus on the board, and the Saleae Logic export is i2c.csv. Columns: Time [s],Packet ID,Address,Data,Read/Write,ACK/NAK. Each row is one transferred byte; rows with the same Packet ID form one I2C transaction, and Address is the device's 7-bit address. If a NAK comes right when the device address is sent, Data is empty.
There are two devices on the bus: 0x68 (clock/RTC) and 0x50, a 24C02 EEPROM (256 bytes, 8-byte page). A write to the EEPROM works like this: the first byte is the memory address (word address) and the following bytes are data; a page boundary is a multiple of 8 bytes. The writes were sent out of order by address. Bytes that the device did not accept (NAK) do not end up in memory.
Reconstruct the EEPROM contents; the flag is stored inside it in ASCII form. Flag format: BAYROQ{...} (the last 16 characters are lowercase hexadecimal digits).