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.

Configure i2c with Grace

Other Parts Discussed in Thread: MSP430F2350, GRACE

Hi, i have been trying to configure the i2c bus with GRACE for (MSP430F2350) but i get this errors:

undefined first referenced                                                           
  symbol       in file                                                                
 --------- ----------------                                                           
 Rx        C:\DOCUME~1\IDZ\MISDOC~1\workspace\GracePrueba\src\csl/csl.lib<CSL_init.obj>
 Tx        C:\DOCUME~1\IDZ\MISDOC~1\workspace\GracePrueba\src\csl/csl.lib<CSL_init.obj>
 ss        C:\DOCUME~1\IDZ\MISDOC~1\workspace\GracePrueba\src\csl/csl.lib<CSL_init.obj>
 st        C:\DOCUME~1\IDZ\MISDOC~1\workspace\GracePrueba\src\csl/csl.lib<CSL_init.obj>

Rx = Receive Interrupt Handler

Tx= Transmit Interrupt Handler

ss= Start condition

st= Stop condition

I don´t know how to clear this error?, and also where can i find i2c code examples so when i get the problems clear i can start to develop my code?

thank you, hope you can help me

  • AFAIK, GRACE is creating stub ISRs if required. So there likely is an ISR for the four I2C events and this ISR is trying to call your handling functions for these four events. Yet you didn't provide them.

    try  defining a function

    void Rx(void){ [...] }

    that contains your code of what to do when you need to write a data byte into TXBUF for sending.

    Same for the other three events.

    Unfortunately, the linker doesn't know about GRACE and why these specific symbols are used in the stated object file. So it can only tell you that it cannot find them anywhere.

    I'm pretty sure, somewhere in the GRACE documentation, the need to provide the proper handler funcitons is covered.