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.

TMS570LS1224: FEE addressable driver

Part Number: TMS570LS1224
Other Parts Discussed in Thread: HALCOGEN

Dear Support,

I would like to use bank 7 of the flash for Calibration data, accessed via XCP CAN.

I realized that the Halcogen uses sectors and data blocks to access the region. Do we have a driver that can access the FEE using address directly?

If not, can you guide me how to implement that?

Many thanks,

Phil

  • Hello,

    The data in bank 7 written using FEE driver can not be read using the address directly. It has to be read by block number using the FEE driver.

    How often do you update your calibration data? If the calibration data is constant, you can program the data to a dedicated address using F021 API.

    If you keep changing the calibration data during your application, you need to use the FEE driver to write the data to bank 7.

  • Hi QJ Wang,

    Many thanks for your reply. I don't need to update it regularly, only when XCP requested to change the data.

    Do you have an example using F021 API for bank 7? I was trying to use F021 API, but I found an issue that I don't know how to do it properly.

    For example I wanna change a calibration data type uint32 at 0xF0200008, how can I do that? Do I have to delete the whole sector first? If so, it will affect the other calibration data. What is the correct way to use it?

    Many thanks

    Phil

  • Hi Phil,

    Please use the attached files example of using F021 flash API library:

    8055.bl_flash.h

  • I can erase the sector and program the data to the sector in bank7:

    status = Fapi_BlockErase(7, 0xF0200000, 64);   //erase the sector 0 of bank 7
    status = Fapi_BlockProgram(7, 0xf0200000, (unsigned long)&Success, 64); //program 64 bytes of data located at &Success