This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

iicEEPROM read and write

Other Parts Discussed in Thread: MSP430F6779

Hi All,

Trying to get the iicEEPROM_read and iicEEPROM_write to work with the MSP430F6779.

All I need to do is write a byte into spare memory and then read back from the same memory location.

The void pointer is confusing me... can someone explain the code required? I understand the theory, just struggling with actual code.

My attempt which doesn't seem to work...

{
                      void *ptr;
                      int data = 0x0F; 
                      int read_data;
                      ptr = &data;
                      /**((int*)ptr);*/
                      iicEEPROM_write(0x20, ptr, sizeof(ptr));  
                      iicEEPROM_read(0x20, &read_data, sizeof(read_data));
}

Thanks

Jack