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.

TMS570LS3137: I need to read a variable value from flash memory in code for my application

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

Hi ,

For my application , I need to write assign ip address externally for each boards and have to read the value from flash memory for further operation. Kindly suggest me software to write the value of ip address in board like in ST Link utility software , and have toread it in code. 

  • Hi Manivannan,

    I recommend to use FEE which is emulated EEPROM built in chip. HALCoGen generates FEE driver, and has a simple sample code for reading/writing data to FEE.

    Regards,
    QJ
  • As QJ suggests, you could use the FEE bank for this or there is also the Customer OTP section of the device memory if you want the value written to be permanent. This also preserves the FEE bank for real EEPROM emulation operations if needed later. Customer OTP can be written during device programming in a production process as well.
  • I undrestood by using FEE sample we can read value from EEPROM , but How to write a IP address value to each board externally , not through code , is any software available for that ?
  • If you would choose to program into FEE, there are a few choices. First, you could have a simple SCI, SPI, CAN communication scheme (like a simple boot loader) that would program the value into FEE memory based on the data received over the chosen protocol.

    Or, if you don't want to have the protocol support and FEEd rivers in your project, you could do this task by programming a separate HEX file containing only the information you want to store in flash at the specific location specified by your system design. In this latter case, you could use FEE or standard Flash memory. If you want to avoid a second programming operation in production, the second HEX file could be merged through a utility with the application hex file.