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.

RM48L952, Rev B: Load program Error in CCS5.2.1

Other Parts Discussed in Thread: RM48L952, RM48L950

Hello

I just received a brand new board with the RM48L552, Rev. B, TMX-Quality. The following works:

  • Using nowFlash v3.41 i am able to program the board
  • When i set the debug-configuration to "load symbols only" I am able to debug the sofwtware from CCS

When I try to program the board from CCS5.2.1.0018, I get a "load program error". The output in the Console-Window is

CortexR4: GEL Output:     Memory Map Setup for Flash @ Address 0x0CortexR4: Flash Programmer: Missing Erase Settings.
CortexR4: Flash Programmer: Error erasing Flash memory.
CortexR4: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.
CortexR4: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x20
CortexR4: GEL: File: C:\SVN\solarmax_xt\MP\tools\Ccs5\Project\solarmax_xt_mp\Debug\solarmax_xt_mp.out: Load failed.

I assume, CCS5.2.1 does not contain the correct flash programming algorithm. Is there an algorithm for the Rev.B available?

Best Regards

Flurin Bühler

  • I am still waiting for a response.... thank you in advance!

    Best Regards

    Flurin

  • Hi Flurin,

    Please double check your cmd file to make sure the RAM size is 192K (for RM48LS55x) rather than 256k (for LS95x), and the Flash size is 2MB (for LS55x) rather than 3MB (for LS95x). It would be helpful if you post the compiler warning message.

    Regards,

    QJ

  • Hi QJ

    Thank you very much for your answer. Unfortunately, in my previous post, is misspelled the CPU-Type. The CPU on my board is the RM48L952-PGE, Rev B.

    I checked the linker cmd file, it seems to be correct. (256k Ram and 3MB Flash)

    When compiling and linking the program, i do not get a warning or error-message.

    When loading the program, i get the following message in the console window:

    CortexR4: GEL Output:     Memory Map Setup for Flash @ Address 0x0CortexR4: Flash Programmer: Missing Erase Settings.
    CortexR4: Flash Programmer: Error erasing Flash memory.
    CortexR4: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.
    CortexR4: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x4f40
    CortexR4: GEL: File: C:\SVN\solarmax_xt\MP\tools\Ccs5\Project\solarmax_xt_mp\Debug\solarmax_xt_mp.out: Load failed

    Loading the program with nowFlash works

    Loading the symbols from the IDE (setting load symbols only in the debug configuration) allows me to debug without problems

    I therefore assume, that the flash-programming algorithm that CCS uses is not suitable for the Rev B?

    Best regards,

    Flurin

  • Hi Flurin,

    I think your question is similar to this one:

    https://e2e.ti.com/support/development_tools/code_composer_studio/int-code_composer_studio/f/90/p/204939/726844.aspx?Redirected=true

    It looks like a bug in CCS5.2, and will be fixed in CCS5.3

    Regards,

    QJ

  • Hi QJ

    Thank you for your answer. Unfortunately the link you provided does not work. Could you post it again? Thank you very much!

    Best regards,

    Flurin

  • Hi QJ

    I just downloaded CCS 5.3 and tried to download the program. The problem is the same, but the message is the following:

    CortexR4: GEL Output:     Memory Map Setup for Flash @ Address 0x0CortexR4: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.
    CortexR4: Trouble Halting Target CPU: Error 0x80001822/-1141 Fatal Error during: Memory, Execution, Timeout, Target,  Processor communication timeout. It is recommended to RESET EMULATOR. This will disconnect each target,   perform an emulation reset, and then reconnect each target. Power cycle the target board before continuing.  
    CortexR4: Warning: Error 0x40000108/-1169 Warning during: Break Point, Cache,  Error during instruction cache flush
    CortexR4: GEL: File: C:\SVN\solarmax_xt\MP\tools\Ccs5\Project\solarmax_xt_mp\Debug\solarmax_xt_mp.out: Load failed.

    Do you have an idea what could be wrong?

    Best regards

    Flurin

  • I have the same problem too with CCS5.3

    I can not load the code when I set RM48L952 

    Best regards

    Yehonatan

  • Hello,

    In CCS5.3, please select the target connection at your project property -> CCS Genera -> Main -> Device -> Connection, and check "manage the project's target configuration automatically". What kind of JTAG emulator do you use? 

    Regards,

    QJ

  • Thank you for the tip, but activating the check box does not solve the problem.

    Any other tip?

    It seems really to be a communication problem. After the message "CortexR4: GEL Output:     Memory Map Setup for Flash @ Address 0x0" nothing happens for several seconds, then the timeout occurs and the rest of the error message is displayed.

    Roger

    Using the SpectrumDigital XDS510 USB Plus

  • Hello,

    I'm looking for the reason why I cannot load a program to my RM48L952PGE target with XDS510USB Plus from within CCS Studio 5.3.0.00090

    If I select the 952 which is the one I have on my hardware it does not work.

    If I select the target 950 as seen in the screenshot here the load works!

    Any ideas?


  • Hello Roger,

    First I apologize for you having to deal with this issue.

    The RM48L952 derivative as released through CCS v5.3 has an incorrect Flash Properties associating in the device file that CCS uses.  I have corrected this and it will be included in the CCS v5.4 release.

    Until then, if you would like to make a quick mod to the device file, here are the steps:

    Open the file rm48l952.xml found in <CCS installation directory>\ccs_base\common\targetdb\devices with your preferred xml or text editor.

    Replace partnum="RM48L952" with partnum="RM48L950" and save.

  • Hello John,

    Thank you very much for your explanation and your workaround.

    Tested and it works!

    Roger