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.

AGAIN : "One or more sections of your program falls into a memory region that is not writable"

Other Parts Discussed in Thread: UNIFLASH, NOWECC, AM3358

Hi, I'm working with a RM48 Hercules HDK rev B. When I start debug in CCSv5 the console says: "CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0CortexR4: 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."

I've yet addressed and apparently solved the problem in this thread:

http://e2e.ti.com/support/microcontrollers/hercules/f/312/p/295794/1032028.aspx#1032028

After trying my code on his workstation (verifying there was nothing wrong) Jean Marc Misfud has connected my workstation via Webex to make some test. Under his hands the the code has finally run but we've not clearly identify what was wrong before.

This morning I'm experimenting the same problem both running the code using the "debug" button and using the "step by step" way that Marc shown me (Launch selected configuration, connect the terget, load program).

Now SOMETIMES the run succesfully but more often gives the error above.

Perhaps my CCS has scrambled something or my HDK is someway buggy?

Can someone suggest some way to go ahead?

Note that the behaviour is the same with all the project I've build for the RM48HDK (so is not referrable to this particular project).

Help me please.

  • Recently, I had a similar problem. Eventually, it turns out that CCS5.5 and/or UniFlash can not recognize the ECC region (generated by the nowECC tool). So, I turn on the autoECC in the Flash configuration in CCS5.5 and throw nowECC away. And then, it works fine.

    If I append ECC to the .out file, sounds to me the only thing can work is nowFlash, but I see your another post saying nowFlash is not supporting .....

    Post here, not sure if it helps.

  • Matteo,

    Can you try the following in CCS:

    1] Select your project in Project Explorer.
    2] Run->Debug Configuration.
    3] Select Target Tab.

    If there is no Flash Settings than it is the reason of your problem.

    To bypass this problem, go back to the Target Configuration window and open the User Defined configuration.
    Right click on the configuration we created during the webex and select "Link File to Project and select your project.

    This should fix your Flash download problem. Have a try and let me know.

  • If you mean the "Auto ECC generation" in the "Flash settings" tab of project properties I've tried both check and unchecked but the result remain the same...

  • My previous message was for Haixiao.

    For Jean-Marc: this tab?

    what should I check here? I see nothing wrong

  • Matteo,

    This is (unfortunately) correct.

    One more try. Can you check in the Target Configurations windows, user Defined if any configuration is selected as default. (Bold)
    If yes, which one?

    Select the one we created right click and select as "Set as Default".
    Again, right click on this configuration and select "Launch Selected Configuration"
    In the debug window, click on connect target.
    Select the menu Tools->On Chip Flash. From there, select entire flash and erase.

    If this is not working, than I will have to re-run a webex.

    Let me know your availability.

  • Jean-Marc,

    after connecing the target i select "Entire flash" and then Click on "Erase Flash" on the "On-Chip flash" window. The result is a Error popup: "Target is not connected or does not support current Flash operation".

    clearly on the Debug window my "Textas instruments XDS100v2 USB Emulator/Cortex R4" is labeled as "suspended".

    I'm available for a webex right now and for the next hour.

    Tomorrow from 9 to 13 and from 14 to 18 (Europe Time)

  • Hello Jean-Marc,

    Was there ever a resolution to this issue?  I am having the exact same problem on the TMDSRM48HK evaluation board using the code composer 5.5.0.00077.  I have even tried switching projects to a older previously working project and it has the same issue.

    Everything was working fine for days, and then all of a sudden this started happening.

    Thank you,

    Matt

  • Hello Jean,  I am using EV-AM3358 board amd it was working until last nigth. I install CCS6 and accidently open the CCS5 project then went back to CCS5.

    I am getting the same error as you are experiencing now.

     <message from ccs5 console>

    CortxA8: Output: ****  AM335x 15x15 EVM Initialization is Done ******************

    CortxA8: 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.

    </message from ccs5 console>

  • Hello Terrance,

    Unfortunately, this is the incorrect forum for support of AM3358 processor related issues. Please post your question in the E2E forum for the AM335x processors. It is located here: http://e2e.ti.com/support/arm/sitara_arm/f/791.aspx