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.

TMS320F28027: LFU through I2C in F28027/F28035

Part Number: TMS320F28027
Other Parts Discussed in Thread: TIDM-02011

Hi Champ, 

I am asking for my customer. They are still using F28027 and looking forward to doing LFU through I2C.

The method of LFU with reset/without reset has been implemented on F28004x(TIDM-02011) and the later F28003x which devices has the two Flash banks.

Is it possible to do dual-image on a single-bank flash F28027/035 LFU through I2C?

I think to have dual images, one is programmed in factory (factory default image) and kept unchanged, the other is the updated (updated image) and the ISRs would need to run from RAM sounds feasible.

May I have any comment on this ? 

Thanks and regards.

  • Johnny,

    I2C is just the medium to download the image from the host, so that should be independent of the LFU discussion. Yes, you can do what you have suggested - keep a factory programmed image as a backup, and an active image that is overwritten during LFU. During that time, ISRs and Flash API and code that waits in loop for the Flash APIs to execute (this is a part of the LFU Flash kernel), will need to run from RAM. Once the image is updated successfully, a device reset can activate the new image. If it fails for some reason, the factory image can be activated. A portion of the Flash (typically 1-2 sectors) will need to be allocated for the LFU Flash kernel. This kernel will also need to contain logic that selects whether to branch to the factory image or the latest image.

    Thanks,

    Sira

  • Hi Sira,

    Thanks for your reply.

    I am trying to know deeper on it, a few more questions I would like to clarify clearly.

    (1). So say so, could I say that the device F28027/035 is able to do LPU, even though the device doesn't have dual banks, am I correct ?

    (2). As I know, firmware upgrade has been separate into two category, offline FW upgrade and LFU with or without reset. Does all Gen2 C2000 device(F28027/035) support all of these ways ? Or only the offline FW way ?  For Gen3 C2000(004x/3x) support all of it.

    (3). The method you mentioned about, does the device need a reset (no output voltage) after finishing the overall progress of LFU on F28027/035 ?

    (4). If my customer is trying to do FW upgrade through I2C on F28027/035, any recommended app note and examples could make them study faster about it ?

    Thanks for all the help. 

  • Johnny,

    1. It is LFU with a device reset.

    2. Architecturally, LFU without device reset requires multiple Flash banks for straightforward implementation. And as we've discussed here, LFU with device reset is possible in general, but with constraints - like being able to fit 2 images into Flash, run code out of RAM etc. One image in Flash option is also possible with LFU with device reset, but there would be no backup image in that case. 

    3. Yes

    4. We have a MySecureSoftware release example that shows how to do LFU with device reset using F28002x (single Flash bank, single image in Flash). If that helps you, I can send you the request link by email. Email me if you want this.

    Thanks,

    Sira