i2C_ROMEngine - Help
davidpzk
Posts: 19
I seem to be having trouble writing a string to the EEPROM using i2C_ROMEngine.
The following code writes successfully to the rom
However this code writes blanks to the EEPROM. It seems the string is not being passed to the i2C_ROMEngine. I cant figure out why. Any ideas?
The following code writes successfully to the rom
[SIZE=3]EEPROMxPORT.ROMEngineStart(29, 28, 0) waitcnt (10000+cnt) EEPromxPORT.writeLong ($7fd0, string("TestWrite)) waitcnt (10000+cnt) EEPROMxPORT.ROMEngineStop [/SIZE]
However this code writes blanks to the EEPROM. It seems the string is not being passed to the i2C_ROMEngine. I cant figure out why. Any ideas?
[SIZE=3]EEPROMxPORT.ROMEngineStart(29, 28, 0) waitcnt (10000+cnt) bytemove (@TestData, string("TestWrite")) EEPromxPORT.writeLong ($7fd0, @TestData)) waitcnt (10000+cnt) EEPROMxPORT.ROMEngineStop [/SIZE]
Comments