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.

TMS570LS1227: How to choose at boot time to load one of two programs, both stored in the same internal FLASH memory (if possible at all)

Part Number: TMS570LS1227

Dear all,

I am currently working on a project that requires a voting mechanism to load one of two programs, both stored in the same internal FLASH memory.

By "programs" I mean two distinct software application builds created with TI CCS (v8.1.0.00011_win32).

Is it possible to:

1. write to only specific areas of internal flash memory? If so, what is the smallest amount of memory that you can write to?

2. create a custom bootloader or configure the MCU boot sequence in such a way that one of two existing builds are loaded? If so, could you also point me to further related documentation or code examples?

Based in your experience, is it normal to implement such custom boot mechanisms in this type of MCUs? Are there any concerns related to it from your side?

Than you very much for your time,

Luis

  • Hello Luis,

    1. Yes, you can load 2 programs to different locations of the flash. The minimum size for 1 write is 16 bytes. I suggest to put 2 programs to different flash sectors.

    2. We have examples for CAN/UART bootloader to download one image from the host and program the image to the flash. The host tells the bootloader where to put the downloaded image.