Other Parts Discussed in Thread: ENERGIA
#define _checksum(f) ((uint8_t) ~(uint8_t)(f))
uint8_t Ult_unlockEeprom[] = {0x55, 0x0A, 0x40, 0x68, _checksum(0x0A)}
uint8_t Ult_setToProgramEeprom[] = {0x55, 0x0A, 0x69, _checksum(0x0A)}
uint8_t Ult_bulkEepromWrite[] ={…} //eeprom code too long for email
then I send these buffers all one right after another. Should this sequence work for issuing a bulk EEPROM write? What is the best method of testing if the EEPROM has been written to correctly?
I have tried multiple different sequences and have not been able to get any response back on the PGA460 yet.
Another question is that are some of the commands from master-to-slave not require a checksum? If a checksum is done on EEPROM or Threshold write then the size of the checksum is too large to fit in the 8-bit checksum data field in the transmission line.
Best,
Clint