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.

Compiler/TMS570LS1114: A Problem about TMS570LS1114PGE API EEPROM Module ?

Part Number: TMS570LS1114
Other Parts Discussed in Thread: HALCOGEN

Tool/software: TI C/C++ Compiler

Hello:

With regard to the TMS570LS1114PGE EEPROM module, I have the following questions.

1.According to the example given by HALCoGen, only the FEE module brushes the EEPROM. I looked at the Fapi document and still didn't feel like a complete example of reading and writing EEPROM. What are the difference of FAPI and FEE, and what are the applicable circumstances?

  1. according to document spnu501h.pdf, I need to initialize the device before I read and write. Do it specifically refer to the HaLCoGen module?

3.to achieve a fixed address, Read, Write, Erase, to achieve what operation, I have transferred the FEE module, transplantation to FAPI what is the difference?

Explanation: the function I'm trying to achieve is simply to store some important fault detection codes and a lot of calibration parameters, store them into EEPROM, and use the CCP protocol to communicate with an address datas.

Looking forward to your reply

Qiu Chi

  • What you refer to as the EEPROM module is actually just a bank (bank 7) of flash that is useful for EEPROM emulation. The F021 FAPI is a software library for erasing and programming flash memory on the TMS570 devices. HALCoGen provides a FEE (Flash EEPROM Emulation) driver. You can think of the flash APi as the lowest software layer and the FEE driver as a higher level.

    In your case, if you only want to program some parameters at a fixed location in bank 7, you do not need to use the FEE driver. You do need to use the F021 Flash API.

    chi qiu said:
    according to document spnu501h.pdf, I need to initialize the device before I read and write. Do it specifically refer to the HaLCoGen module?

    If you used HALCoGen to do the startup (setup wait states and PLL), then this step is already complete by the time your code gets to main().

  • Hi,Bob Crosby,
    Thank you very much for your answer .
    Qiu Chi