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.

CCS/SW-EK-TM4C123GXL: File Loader: Verification failed: Values at address 0x00000100 do not match Please verify target memory and memory map.

Part Number: SW-EK-TM4C123GXL
Other Parts Discussed in Thread: TM4C123GH6PM

Tool/software: Code Composer Studio

Hello,

I have started to write stand alone ASM programs but I am getting two errors: I am using the Tiva C launchpad.

CORTEX_M4_0: File Loader: Verification failed: Values at address 0x00000100 do not match Please verify target memory and memory map.
CORTEX_M4_0: GEL: File: C:\Users\Michael\workspace_v7\ASMBlink\Debug\ASMBlink.out: a data verification error occurred, file load failed.
CORTEX_M4_0: Error: Debug Port error occurred.

I don't understand either.

The first error started when I opened up another project and then switched back to this one. The second error always existed and everything appears to work but it needs to be fixed.

With a standard C project everything is fine.

code:

.global Reset
.sect "intVec"
.word 10000
.word Reset
.text
Reset:
MOV R1, #100
MOV R2, #0x101
BX R2
command file:

/******************************************************************************
*
* Default Linker Command file for the Texas Instruments TM4C123GH6PM
*
* This is derived from revision 15071 of the TivaWare Library.
*
*****************************************************************************/

MEMORY
{
FLASH (RX) : origin = 0x00000000, length = 0x00040000
SRAM (RWX) : origin = 0x20000000, length = 0x00008000
}

/* The following command line options are set as part of the CCS project. */
/* If you are building using the command line, or for some reason want to */
/* define them here, you can uncomment and modify these lines as needed. */
/* If you are using CCS for building, it is probably better to make any such */
/* modifications in your CCS project and leave this file alone. */
/* */
/* --heap_size=0 */
/* --stack_size=256 */
/* --library=rtsv7M4_T_le_eabi.lib */

/* Section allocation in memory */

SECTIONS
{
.intVec: > 0x00000000
.text : > 0x100
}

config file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<configurations XML_version="1.2" id="configurations_0">
<configuration XML_version="1.2" id="Stellaris In-Circuit Debug Interface_0">
<instance XML_version="1.2" desc="Stellaris In-Circuit Debug Interface_0" href="connections/Stellaris_ICDI_Connection.xml" id="Stellaris In-Circuit Debug Interface_0" xml="Stellaris_ICDI_Connection.xml" xmlpath="connections"/>
<connection XML_version="1.2" id="Stellaris In-Circuit Debug Interface_0">
<instance XML_version="1.2" href="drivers/stellaris_cs_dap.xml" id="drivers" xml="stellaris_cs_dap.xml" xmlpath="drivers"/>
<instance XML_version="1.2" href="drivers/stellaris_cortex_m4.xml" id="drivers" xml="stellaris_cortex_m4.xml" xmlpath="drivers"/>
<platform XML_version="1.2" id="platform_0">
<instance XML_version="1.2" desc="Tiva TM4C123GH6PM_0" href="devices/tm4c123gh6pm.xml" id="Tiva TM4C123GH6PM_0" xml="tm4c123gh6pm.xml" xmlpath="devices"/>
</platform>
</connection>
</configuration>
</configurations>

  • Hi,
    Please try to retain your .intVec section using --retain in the cmd file. Check the www.ti.com/.../spnu118r.pdf ARM userguide for details.
    Also try to do .text: > FLASH and see if that makes a difference.

    One last thing is that you should consult with your instructor if a working example for creating a TM4C123 project in assembly is available as a starting point.
  • Hello.

    I have made the alterations you suggested, the memory location of the error has now changed

    CORTEX_M4_0: File Loader: Verification failed: Values at address 0x00000000 do not match Please verify target memory and memory map.
    CORTEX_M4_0: GEL: File: C:\Users\Michael\workspace_v7\ASMBlink\Debug\ASMBlink.out: a data verification error occurred, file load failed.
    CORTEX_M4_0: Error: Debug Port error occurred.

    I tried reinstall, I deleted and remade everything - nothing works.

    The odd thing is, it was working once before - is the error a linker error or a programmer error? Could the config file be causing a problem? Or the programmer itself? 

    edit:

    I went into project options and selected config to be managed automatically - the verification error went away but the port error persisted.

    It shouldn't be this hard to get a simple assembly program running, CCS appears to have issues(unless I am missing something obvious)

  • Michael Lowell said:
    The odd thing is, it was working once before - is the error a linker error or a programmer error? Could the config file be causing a problem? Or the programmer itself? 

    The address for which the error is reported for is valid address in flash.

    What is the full CCS version number?

    There was the bug CCBT-2023 in CCS 7.0.0 which caused data verification errors for some programs - see CCS/TM4C123GH6PM: Certain TiwaWare examples work on CSS v6, but not on CSS v7

    Bug CCBT-2023 is reported as fixed in CCS 7.1.0 - see the Release Notes for Code Composer Studio™ v7.1.0

  • Thanks for the information, I am using the current version of CCS. This morning I started up CCS and it programmed but I still got a debug port error. I then tired a different ASM program and got the verification error. I then switched back to the original program and got a verification error when I attempted to debug it again. 

    I then exited CCS blanked the device using the flash programmer, attempted to debug with the original program and it worked. '

    I think something might be being saved in CCS between projects and is being incorrectly used. I don't know what or how to find it though. 

    Also do you have any ideas what could be causing the debug port error? 

  • Michael Lowell said:
    Also do you have any ideas what could be causing the debug port error?

    I created the attached project based upon your code. With 7.1.0.00016 I do get a debug port error but the program runs:

    CORTEX_M4_0: GEL Output: 
    Memory Map Initialization Complete
    CORTEX_M4_0: Error: Debug Port error occurred.

    Whereas using the same program CCS 6.2.0.00050 don't get the debug port error.

    Therefore, there appears to be a problem in CCS 7.1.0.00016

    TM4C123_asm_example.zip

  • Thanks for checking, I am happy I am not the only one getting the error. How would we go about reporting this?
  • Michael Lowell said:
    How would we go about reporting this?

    Report the problem on the Code Composer Studio forum. Suggest you attach an example program which also generate the "File Loader: Verification failed" error.

    Michael Lowell said:
    code:
    .global Reset
    .sect "intVec"
    .word 10000
    .word Reset

    The first number 10000 in that interrupt vector table sets the initial value of the stack pointer value. The address 10000 is in flash, which is not valid for the stack pointer as will cause a hard fault on on attempt to write to the stack. The initial stack pointer should be in RAM. Not sure if this is causing any of your other problems, but just mentioning it in case the code attempt to use the stack without first setting a valid stack pointer.
  • Thanks, yes it was a throw away value. I messed with this some more values and there is something going on with CCS as I kept getting errors when I adjusted the starting location of a section. I modified my command file and then modified it back and everything worked when it was exactly the same as I had initially.

    I'm going to head over to their forum, I don't know if my board isnt loading correctly or if CCS is using some cached file and isnt updating.

    In addition I noticed a random value at memory address 0x80 during debug session which I did not add.