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.

TMS570LS1225: Flashing memory issues

Genius 16630 points
Part Number: TMS570LS1225
Other Parts Discussed in Thread: UNIFLASH

Hi Experts,

Seeking your assistance on this query about TMS570LS1225 flash memory:

We have a TMS570LS1225 microcontroller and we want to download a software in it. When the size of the sofware is less than 0x20000 we download the software correctly but when the size of the software is bigger than 0x20000 we can not finish the download, the download process blockes when it arrives to 0x20000. We start downloading the software in the sector 7 of bank 0. The initial address of this sector is 0x00020000 and its size is 0x20000. We can not continue downloading the software in sector 8 (0x00040000). Have you seen any similar problem? Must we modify the bootloader software?

For your guidance please.

Thank you.

Regards,
Archie A.

  • Hi Archie,

    Do you use CCS or uniflash for loading? 

  • Hello Wang,

    Refer below the response from Cx:

    We download the SW using a CANBUS communication program. But before that, we download the bootloader using Uniflash. Firstly we generate the “Bootloader.out” file with CCS and then we load this “Bootloader.out” file into our microcontroller using Uniflash. Finally, we have a program to download the SW via CANBUS communication.

    For your guidance. Thank you very much.

    Regards,
    Archie A.

  • You use CAN bootloader to download your application to flash. 

    Does the flash header file define the bank size properly? and does your code enable the all the flash sectors?

    Please refer to the example code in TI CAN bootloader:

    bl_flash.h,

    bl_flash.c,

    and flash_defines.h --> define flash sector number and sector size

  • Thanks, Wang.

    Cx responded:
    I think the sectors are well defined. We use the files I have attached in this e-mail.
    I don´t know if our code enables correctly all the sectors. Which function enables the sectors?

    Regards,
    Archie A.

    Attached:

    5342.flash_defines.h
    8422.bl_flash.h

    6685.bl_flash.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    //*****************************************************************************
    //
    // bl_flash.c : Flash programming functions used by the boot loader.
    // Author : QJ Wang. qjwang@ti.com
    // Date : 9-19-2012
    //
    // Copyright (c) 2006-2011 Texas Instruments Incorporated. All rights reserved.
    // Software License Agreement
    //
    // Texas Instruments (TI) is supplying this software for use solely and
    // exclusively on TI's microcontroller products. The software is owned by
    // TI and/or its suppliers, and is protected under applicable copyright
    // laws. You may not combine this software with "viral" open-source
    // software in order to form a larger program.
    //
    // THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
    // NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
    // NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    // A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi Archie,

    Please check 0xFF in your code to 0xFFFF:

    Fapi_enableMainBankSectors(0xFF);        /* used for API 2.01*/

    0xFF means the sector 0 ~ sector 7 are enabled, but the sector 8 is not enabled.