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.

loader error



HI, I'm trying to work with USB stick 5505. Compiling is fine. But when we are trying to debug it, it says that target connection is successfully established and then gives the following message,:

C55xx: Loader: One or more sections of your program falls into a memory region that is not writable.  These regions will not actually be written to the target.  Check your linker configuration and/or memory map.

We are using CCS v4.

What should we do? Please help. 

  • Hi,

    It sounds like you have a mismatch between the available memory ranges in your linker command file (*.cmd) and the debugger memory map.

    http://processors.wiki.ti.com/index.php/Memory_map

    Note that the above topic refers to CCSv3.3. In v4, you can see the memory map via 'Tools->Memory Map' when you are in a debug session.

    ki

  • Hi,

    I have the same problem. I'm strying to program on the Flash memory with  eZdsp for F2808 and TI exemple (F2808_example_nonBios_Flash.pjt).

    when I debug, I had this message:

    Loader: One or more sections of your program falls into a memory region that is not writable.  These regions will not actually be writtenen to the target.  Check your linker configuration and/or memory map.

    and  winfows says:

    data verification failled at adress 0x3E8000 please verify target memory and memory map.
    data verification failled at adress 0x3E85B2 please verify target memory and memory map....................

    How can I lmanage memory map via tools->Memory Map?

    Can you help me please?

     

  • If you are using CCS3.x, you need to use the F28xx Flash programmer plugin to program code into Flash. You cannot just program using File->Load Program. The F28xx Onchip Flash Programmer is available under the Tools menu.

    In CCS4, the plugin is built into the debugger. Just telling the debugger to load the code to target will do it automatically whether you are loading to internal Flash or RAM.

  • thanks for replying so far .

     

    I have CCS3.1 and whene a  launch on-chip flash programmer, i have errors:

     

    Target halted during Flash operation.
    Flash operation aborted.
    Erase/Program/Verify Operation failed
    **** End Erase/Program/Verify Operation. ***
    An invalid Flash API Interface file has been
    been loaded onto the target. Please verify that
    the file selected in the Flash Programmer Settings
    is a valid Flash API Interface file.
    Erase/Program/Verify Operation failed
    **** End Erase/Program/Verify Operation. ***

    I check the version of the API it is    \FlashAPIInterface2808V3_02.out   I think it the correct one...

    I'm very confused, cause I want simly to run application from flash and it doesn'r work with any program I load.

    I changed the SW1 configuration to boot from SCI A ---> same ( GPIO18     GPIO29    GPIO34
                                                                                                                     Open-1 Open-1 Closed-0 SCI-A)

    I changed the SW1 configuration to boot from flash ---> same (GPIO18     GPIO29    GPIO34
                                                                                                                   Open-1        Open-1    Open-1      Flash)

    debuging the example from TI (flash non bios) and my owns applications (that run from the RAM).

    If you can help me with any informatin I will be greatful.

    I apologize for my bad english.

     

    Wassila

     

     

     

  • CCS 3.1 is a really old version and there have been many updates to CCS as well as the Flash programmer since that release. If at all possible, I would suggest looking into updating to the latest release of CCS 3.3.

    If that is not an option at this time, please check this FAQ (and other information on this page) that might help with your issue: http://processors.wiki.ti.com/index.php/C2000_Flash_Common_Issues/FAQs#Target_Halted_During_Flash_Operation

     

  • Thanks to youI did a part of it!

    I read document and i foud that when I go on  "Customize" and disablish  "Perform go Main automatically" the erasing, programming and verifying works correctly.

    but Istill have messages:

    Loader: One or more sections of your program falls into a memory region that is not writable.  These regions will not actually be writtenen to the target.  Check your linker configuration and/or memory map.

    and  winfows says:

    data verification failled at adress 0x3E8000 please verify target memory and memory map.
    data verification failled at adress 0x3E85B2 please verify target memory and memory map..........

    Is this due to any configuration of CCS3.1?

     

    Thanks you for the help that you provide to me.

     

  • wassila fas said:

    but Istill have messages:

    Loader: One or more sections of your program falls into a memory region that is not writable.  These regions will not actually be writtenen to the target.  Check your linker configuration and/or memory map.

    and  winfows says:

    data verification failled at adress 0x3E8000 please verify target memory and memory map.
    data verification failled at adress 0x3E85B2 please verify target memory and memory map..........


    These errors are typically seen in the CCS console window when trying to load a program using the menu File->Load Program, which you should not be doing anyway when programming to Flash. Is it possible that you are still seeing old messages from your previous attempt to program directly? Can you clear out that console window (right-click in the window and select Clear) and see if the messages appear again when using only the onchip flash programmer?

    To use the onchip flash programmer, go to menu Tools->F28xx Onchip Flash Programmer, set the clock, PLL, Flash API file etc, and check that the file you want to program is correctly selected. Then click Execute Operation, to erase, program and verify. This should program the code to Flash and from there you can run to main (Debug->Go Main), set breakpoints, run etc.

  • Aarti,

     I do not to use the munu --> file--> load program (it is doing automaticly after building the project) .

    I had already clean out the consle window but it still appear. I have just build and use the on chip flash programmer.

    when I go to dubug --> memory map I can add an adresse for exemple 0x3E8000 the lenth is set, and i can choose to put it as ram or rom (read and write)

    whene i do this, the first message deasapear :

     

    data verification failled at adress 0x3E8000 please verify target memory and memory map.

    I have currently the message about the loader emory

     

    shoud I do this for all adress that I have same error? and If yes what is the lenth of each one?Is not it doing by the *.cmd file in section and memory?

     

    thanks

  • wassila fas said:

     I do not to use the munu --> file--> load program (it is doing automaticly after building the project) .

    It sounds like you have the option set in CCS to tell it to load the program automatically after each build. This is a convenient option to have when you are programming to RAM because it automates it every time you rebuild the project. But when programming to Flash (using the On-chip Flash programmer) disable this option. Go to menu Option->Customize, Program/Project Load tab and uncheck the box "Load Program after build". That should make the "data verification" errors go away.