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.

RTOS/MSP432E401Y: WRITING & READING EXTERNAL EEPROM

Part Number: MSP432E401Y
Other Parts Discussed in Thread: TMP116

Tool/software: TI-RTOS

Hi..

As per the previous thread, I got the information that "eeprom_erase_pgm_read " is the best example to start with for external eeprom programming.

However in that example i haven't seen any method to initialize the slave address and frequency setting. So can we add that slave addressing and frequency settings using I2cHandle.

like        i2cParams.bitRate = I2C_100kHz;

Also  tell me whether my way of thinking is right or not?

Thank you

Regards

Kalyan.

  • Hello Kalyan,

    I apologize for misleading you in the post referenced by "Original Question"! Your question was how to access external EEPROM and my recommendation was for accessing internal EEPROM.

    Thanks for being patient with us!

    Since you had originally requested (in the referenced post) that you want to use RTOS, the example that is closest to your needs is i2ctmp116 (./examples/rtos/MSP_EXP432E401Y/drivers/i2ctmp116/). This example uses I2C to talk to a temperature Sensor (TMP116), but you can use it as a starting point and modify it to talk to an External EEPROM that communicates over I2C.

    Hope this helps!

    Thanks,
    Sai
  • Hello Sai,
    Thank you for the reply.

    ----------------------------------------
    ''I apologize for misleading you in the post referenced by "Original Question"! Your question was how to access external EEPROM and my recommendation was for accessing internal EEPROM"
    ----------------------------------------
    Its ok sir, mistakes do happen. I know that you are suggested an internal EEPROM accessing program - Thank you for that one as well. Because now i got an idea, how to write and read internal EEPROM in RTOS.

    Now coming to external EEPROM accessing, as you mentioned there is one example in RTOS - i2ctmp116. However in order to write and read to a particular location, i haven't seen any function for that in I2C driver.

    Guide me sir if i am wrong?. and help me in writing and reading to a particular location.

    Thank you
    Kalyan.
  • Hello,
    Please reply to my above post.

    Thank you
    Regards
    Kalyan.
  • Hello Kalyan,

    kalyan konidela said:
    Now coming to external EEPROM accessing, as you mentioned there is one example in RTOS - i2ctmp116. However in order to write and read to a particular location, i haven't seen any function for that in I2C driver.

    Not sure what you mean here. Please review the file i2ctmp116.c in the folder ./examples/rtos/MSP_EXP432E401Y/drivers/i2ctmp116/. There is sample code that reads two bytes of data from the die temperature register. You should be able to use this sample to expand writing to memory location.

    Thanks,

    Sai

**Attention** This is a public forum