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 nightmare

Other Parts Discussed in Thread: MSP430F5438A, MSP-FET

Hi guys,

I recently decide to start with TI to avoid some recurrent programming and errata problems with MCHIP, since everybody considers TI as a reference and MCHIP users as loosers.

But I have to say that I lost a lot of time:

- Installing CCS from internet/CD/internet + installing license server = 0.5days

- Updating/deleting/re-installing CCS + forum = 1 day

- Try to debug my MSP430F5438A with MSP-FET430UIF = 1 day+ (not any yet functional)

Problems are:

while(1)

{

- F11 => enter debug session, wait some minutes (obviously for a timeout), debug and see that something is wrong

- Correct the code, build project, obtain "MSP430: Trouble Writing Memory Block  Could not erase device memory"

- repress F11 to restart debug session, wait some minutes... expect...

if(a new driver is aivailable)

{

   wait 5-10min and see that "configuring debugers" fails, click "cancel" and see CCS crashing

   restart CCS

}

}

Installing MPLAB IDE + C compilers from internet = 5min, loosing time to debug MCHIP debugers (ICD3) = 0.5 days per month but not 1 day per day.

MCHIP tools = free, CCS = all but free...

  • Youhou it's Christmas today, I got a new bug:

    MSP430: Trouble Setting Breakpoint with the Action "Remain Halted" at 0x600c: Could not erase device memory

  • No source available for "0x82410" 

  • MSP430: Program loaded. Code Size - Text: 4130 bytes Data: 46 bytes.
    MSP430: Trouble Writing Memory Block at 0x5c00 on Page 0 of Length 0x100a: Could not erase device memory
    MSP430: GEL: File: D:\Prog\poma\mainboard v2\Debug\poma_mbv2.out: Load failed.

    I have written 0 line of code since 3 days, thank you TI...

    I cost 650$ per day, CCS has cost 2400$ (quite expensive in Europe), does TI refund?

  • I have just installed CCS v4 (I know it's old, but this is the only thing I can do) on a XP32 laptop.

    I can't use MSP-FET: "USB-FET not found", because the driver is not installed. What is the default location of the TI driver?

  • Seriously does the TI engeneer verify what they do? Even the html help (ccsv4/help/welcome/index.html) doesn't work on my computer (index page is ok, but other pages are "not found").

  • A new error afer re-re-checking power line:

    "Error initializing emulator:
    Could not initialize device interface"

  • Hello Nicolas,

    Sorry to hear of your struggles. You reported various issues and various versions of CCS. What I suggest is going back to CCSv5 and using CCSv5.2.1 (the current latest) despite your issues with CCSv5. CCSv4 is being deprecated in support so unless v4 is working for you right away (which it sounds like it is not), I suggest going back to v5.

    Nicolas Bouquet said:
    MSP430: Trouble Writing Memory Block at 0x5c00 on Page 0 of Length 0x100a: Could not erase device memory

    I think this is your main issue. You successfully built your application, started a debug session and connected to the target. But CCS cannot erase/program flash.

    To troubleshoot this issue, let's take CCS out of the loop. Could you try using the MSP430 Flasher to erase/program your device?

    http://processors.wiki.ti.com/index.php/MSP430_Flasher_-_Command_Line_Programmer

    It is a standalone flash programmer you can run from the command line. If this works but CCS fails, then the issue would appear specific to CCS. If this utility fails also, then it may be an issue with your custom hw or emulator.

    Thanks

    ki

  • Hello ki,

    Thank you for your help. I tryed the flash loader and it is working perfectly with multiple boards and multiple USB-FET (I have 10 identical boards and 3 USB-FET). The good news is that I can set breakpoints in CCS (I was unable to do it the last week).

    Now:

    - I can enter in debug mode

    - I can run program and set breakpoints

    - When I try to reload program (after a CTRL+B command), I still get:

    MSP430: Trouble Writing Memory Block at 0x5c00 on Page 0 of Length 0x1048: Could not erase device memory
    MSP430: GEL: File: D:\Prog\poma\mainboard v2\Debug\poma_mbv2.out: Load failed.

    - A work around is to reload the program using run/load/load program (CTRL+ALT+L). I do not know why but after the GEL error, the entire run/ menu was greyed last week.

  • Ok so I think we can say with some certainty that the issue is with the CCS flash programmer. You simply cannot erase flash via CCS. Everything else seems to work (debug, run, breakpoints). And since the standalone programmer works, it is specifically the CCS flash programmer.

    Can you reproduce the issue with debug server logging enabled? It is not on by default, you have to explicitly enable it. You can do this from the CCS Support Dialog:

    http://processors.wiki.ti.com/index.php/Troubleshooting_CCSv5#CCS_Diagnostic_Logs

    enable the Debug Server Log. Then restart your debug session and try to flash the target. It will fail and then turn off the Debug Server Log and attach the log here (as an archive/zip file. This log will provide us additional diagnostic information that may help us determine what the issue is.

    Thank you

    ki

  • You will see:

    - Launching debug session (ok)

    - Loading program (ok)

    - Doing some stepping/breakpointing/running/reseting (ok)

    - Recompiling and reloading (fail)

  • Je vois que je ne suis pas le seul à me plaindre de TI après avoir utilisé MicroChip...

    ya 2 ans j'ai programmé un PIC16 sans trop de connaissances en programmation et le logiciel n'a jamais eu de problèmes, là j'en ai des nouveaux tous les jours, on se demande vraiment si le logiciel est pas là juste pour la frime mais rien ne marche... :(

  • I wanted to do the same and send log but the procedure describe on your link doesn't work...

    I have a problem with breakpoint...