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.

CCSv5 cannot erase RM48 HDK flash

Other Parts Discussed in Thread: RM48L952, HALCOGEN, TMS570LS1227, RM42L432, RM46L852, RM48L530, RM48L540, RM48L730, RM48L740, RM48L940, RM48L950

 When trying to start a debug session from CCS 5.2.1.00018 on a RM48L952 HDK development kit, the following error shows up: 

CortexR4: Flash Programmer: Missing Erase Settings.
CortexR4: Flash Programmer: Error erasing Flash memory.
CortexR4: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x5308
CortexR4: GEL: File: D:\workspace_TI\TMScontroldevice\Debug\TMScontroldevice.out: Load failed.

NowFlash and the demos can successfully program the device, although nowFlash has a tendency to time out from time to time. If I flash the HALcoGEN generated basis without any modifications with nowFlash, the red error led turns on after resetting the device.

At first I thought it was a CCS error, so I made a thread in the CCS forum first, but it seems the default troubleshooting steps didn't help.


Any feedback is greatly appreciated!

  • Hello Tim,

     

    I have forwarded your question to our programming expert so they can have look at the issues you are having.

  • Hello Tim,

    If you go to Help-> About Code Composer Studio and then click on Installation Details.  What are the versions for:

    CCS NowFlash Emulators:

    Hercules Emulation:

    Debug server

    And a list of what is in these folders:

    <Install Dir>\ccsv5\ccs_base\CCSnowFlash\configs\*.*
    <Install Dir>\ccsv5\ccs_base\common\targetdb\RM*.*
    <Install Dir>\ccsv5\ccs_base\DebugServer\propertyDB\RM*.*
    <Install Dir>\ccsv5\ccs_base\DebugServer\bin\win32\c*.*

    Also, what OS are you on?

  • CCS NowFlash Emulators: 5.2.1.0

    Hercules Emulation: 5.2.1.0

    Debug server: 5.2.0.293

    And a list of what is in these folders:

    <Install Dir>\ccsv5\ccs_base\CCSnowFlash\configs\*.*

    Win xp / Win 7:

    fmzpll
    nowFlashConfig.xml
    nowFlashLibraries.xml
    RM42Lxxx.xml
    RM46Lxxx.xml
    RM48Lxxx.xml
    TMS470MF0660x.xml
    TMS470MF0xx0x.xml
    TMS570LS04xx.xml
    TMS570LS1227.xml
    TMS570LSx0xx6s.xml
    TMS570LSx1xx.xml


    <Install Dir>\ccsv5\ccs_base\common\targetdb\RM*.*

    Win xp / Win 7:

    Nothing


    <Install Dir>\ccsv5\ccs_base\DebugServer\propertyDB\RM*.*

    Win xp / Win 7:

    RM42L432_FlashProperties.xml
    RM46L852_FlashProperties.xml
    RM48L520_FlashProperties.xml
    RM48L530_FlashProperties.xml
    RM48L540_FlashProperties.xml
    RM48L550_FlashProperties.xml
    RM48L720_FlashProperties.xml
    RM48L730_FlashProperties.xml
    RM48L740_FlashProperties.xml
    RM48L750_FlashProperties.xml
    RM48L920_FlashProperties.xml
    RM48L930_FlashProperties.xml
    RM48L940_FlashProperties.xml
    RM48L950_FlashProperties.xml 


    <Install Dir>\ccsv5\ccs_base\DebugServer\bin\win32\c*.*

    Win xp:

    CCSnowFlash.dll 

    Win 7:

    cvrlh32.exe
    CCSnowFlash.dll
    CollectorServer.dll

    Also, what OS are you on?

    Windows XP on a virtualbox VM on a debian testing host with USB passthrough / Windows 7 64 bit native.

     

    Since the configuration files for the RM48L952 seem to be missing I changed the type to -950. This did not work. However, the flash erasal succeeded. When I changed the active configuration back to L952, I only got "CortexR4: Flash Programmer: Missing Erase Settings. CortexR4: Flash Programmer: Error erasing Flash memory.", but the program did run. This only works once though. Thus, the problem resides in the configuration files.

  • Tim,

    In <Install Dir>\ccsv5\ccs_base\common\devices\rm48l952.xml, change partnum in this line to partnum="RM48L950"

    <device id="RM48L952" partnum="RM48L952" HW_revision="1" XML_version="1" desc="RM48L952" description="RM48L952 QFP/BGA, 3MB Flash, 256kB RAM, 10/100M Ethernet, USB host and slave">

  • I tried this, and the erasal part get further than before. However, something still seems to be incorrect:

    CortexR4: Flash Programmer: Error erasing Flash memory.
    Dap: Error: (Error -242 @ 0xFFFFFF0E) A router subpath could not be accessed. The board configuration file is probably incorrect. (Emulation package 0.0.0.0)
    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 0x5308: (Error -150 @ 0x88) One of the FTDI driver functions used during configuration returned a invalid status or an error. (Emulation package 5.0.857.0)
    CortexR4: GEL: File: D:\workspace_TI\XXXX\Debug\XXXX.out: Load failed.
    CortexR4: Error: (Error -1141 @ 0x1FE) Device is not responding to the request. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 5.0.857.0) 

     Powercycling did not help. 

     

    Edit:

    This change of the partnumber made CCS automatically generate and activate a RM48L950.ccxml file. When, in this file, I selected the L952 as processor instead of the L950, everything seemed to work. Thanks for the support!

  • Hello Tim,

    Based on the edit in your last post, I will close this thread as answered. If you have any additional questions or need for support, please feel free to open a new thread in the E2E Forum.

  • Hello Chuck

    I have the same problem using an RM485L952, using CCS 5.3.0. Using the above information, it was not possible to program the board. Could you provide an exact step-by-step explanation how to fix the issue?

    Best regards

    Flurin

  •  -Create a config file for the RM48L950 processor.

    -Select the RM48L952 processor under the "basic" tab.

    -Make sure the configuration file is active.

     That's what works for me.

     Regards,

     Tim

     

     

  • Hello Tim

    Regarding step 1, do you mean to create a new CCS5 project for the RM48L950? I am asking this, because creating a new target configuration file using "create target configuration file" did not solve the issue.

    Regards,

    Flurin

  •  Hi Flurin,

    I indeed meant a target configuration file. Did you create it for the 950 and select the 952 processor afterwards?

    Regards,

    Tim 

     

     

     

  • Hi Tim

    Thank you very much for your quick answer.

    If I click on the active project and select new->Target Configuration File CCS5 directly creates the file and opens the basic dialog. Therefore I can not create the file for a specific processor. I therefore wonder if there is another way to create a target configuration file?

    Best Regards

    Flurin

  • Dear Flurin,

    If you right-click your project and select properties, then you you can specify the processor type. There, select the 950. If you have selected a connection, it will generate a target configuration file. Then open the target configuration file and select the 952.

    Regards,

    Tim

     

     

     

     

  • Hello Flurin,

    You need to open up the properties dialog for your project in CCS.  Then select CCS General.  I have circled the settings where I set it for the RM48L952 device using the XDS100v2 emulator.

    Also make this edit:

    In <Install Dir>\ccsv5\ccs_base\common\devices\rm48l952.xml, change partnum in this line to partnum="RM48L950"

    <device id="RM48L952" partnum="RM48L952" HW_revision="1" XML_version="1" desc="RM48L952" description="RM48L952 QFP/BGA, 3MB Flash, 256kB RAM, 10/100M Ethernet, USB host and slave">

    that I have mentioned previously.