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.

ccs6 beta 4 "Timed out while writing to Flash memory" using Tiva launchpad

Used CCS6 beta4 to create an example project for a Tiva launchpad, using the GNU v4.7.4 (Linaro) compiler which was installed by CCS. Attempting to download the program fails with:

CORTEX_M4_0: GEL Output:
Memory Map Initialization Complete
CORTEX_M4_0: Writing Flash @ Address 0x00000000 of Length 0x00003B50
CORTEX_M4_0: Erasing Flash Page @ address 0x00000000 of size 0x00000400
CORTEX_M4_0: Erasing Flash Page @ address 0x00000400 of size 0x00000400
CORTEX_M4_0: Erasing Flash Page @ address 0x00000800 of size 0x00000400
CORTEX_M4_0: Erasing Flash Page @ address 0x00000C00 of size 0x00000400
CORTEX_M4_0: Erasing Flash Page @ address 0x00001000 of size 0x00000400
CORTEX_M4_0: Erasing Flash Page @ address 0x00001400 of size 0x00000400
CORTEX_M4_0: Erasing Flash Page @ address 0x00001800 of size 0x00000400
CORTEX_M4_0: Erasing Flash Page @ address 0x00001C00 of size 0x00000400
CORTEX_M4_0: Erasing Flash Page @ address 0x00002000 of size 0x00000400
CORTEX_M4_0: Erasing Flash Page @ address 0x00002400 of size 0x00000400
CORTEX_M4_0: Erasing Flash Page @ address 0x00002800 of size 0x00000400
CORTEX_M4_0: Erasing Flash Page @ address 0x00002C00 of size 0x00000400
CORTEX_M4_0: Erasing Flash Page @ address 0x00003000 of size 0x00000400
CORTEX_M4_0: Erasing Flash Page @ address 0x00003400 of size 0x00000400
CORTEX_M4_0: Erasing Flash Page @ address 0x00003800 of size 0x00000400
CORTEX_M4_0: Finish Writing Flash @ Address 0x00000000 of Length 0x00003B50
CORTEX_M4_0: Writing Flash @ Address 0x00003B50 of Length 0x00000958
CORTEX_M4_0: Erasing Flash Page @ address 0x00003C00 of size 0x00000400
CORTEX_M4_0: Erasing Flash Page @ address 0x00004000 of size 0x00000400
CORTEX_M4_0: Erasing Flash Page @ address 0x00004400 of size 0x00000400
CORTEX_M4_0: Flash Programmer: Timed out while writing to Flash memory
CORTEX_M4_0: Error: Debug Port error occurred.
CORTEX_M4_0: Error Writing Flash @ Address 0x00003B50 of Length 0x00000958
CORTEX_M4_0: GEL: File: C:\Documents and Settings\Mr_Halfword\workspace_v6_0\ARM_GNU_hello_world\Debug\ARM_GNU_hello_world.out: Load failed.
The same Tiva Launchpad works with examples compiles with the TI ARM compiler, so suspect this is a software problem.

The example project which caused this download failure is attached. The attachment also contains a debug_server.log file, which is the debug server output when the download failure occured. 1423.ARM_GNU_hello_world.zip

  • Chester Gillon said:
    Used CCS6 beta4 to create an example project for a Tiva launchpad, using the GNU v4.7.4 (Linaro) compiler which was installed by CCS. Attempting to download the program fails with

    The problem was originally found on CCSv6 beta 4 installed on Windows XP 32-bit.

    The same error is reported with CCSv6 beta 4 installed on CentOS 6.5 32-bit and CentOS 6.5 64-bit. As per the original Windows XP system, the CentOS systems can debug a program on the Tiva launchpad which was compiled with the TI ARM compiler.

  • Chester,

    This looks like it is related to a known bug with our erase necessary pages algorithm during Program Load. This bug will be fix for the CCS6.0 GA release.

    In the mean time, you can work around this issue by modifying the default erase option to Erase Entire Flash (the "Use the Erase Options Specified Below" option in the On-Chip Flash view).

    Please let me know if this works.

    Thanks,

    Ricky

  • Ricky Lau said:
    In the mean time, you can work around this issue by modifying the default erase option to Erase Entire Flash (the "Use the Erase Options Specified Below" option in the On-Chip Flash view).

    Please let me know if this works.

    Selecting to Erase Entire Flash allowed the program to be loaded without error.

    However, the program failed to reach main when run in the debugger, but that will be the subject of a new thread if found to be a problem with CCS.