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.

Program run button disable in debug mode after modifying cmd file

Other Parts Discussed in Thread: MSP430F6778

Hi,

To reduce execution time and power, I have modified cmd file and add RAM_EXECUTE in section as per TI guidance.

After it I use #pragma for my funtion which I want to run in RAM.

After compilation I have zero error and warning. 

I loaded the program in controller and want to debug but there is no run button enable in debug mode also my code is not runing (I cant get clock on pins).

I am using: CCS  Version: 6.1.0.00104 , //controller: MSP430F6778 and debugger MSP FET430.

waiting for your reply.

  • Hi BHavdipsinh,

    I am unsure how you changed the linker file - you may want to provide more information on the "before" and "after" versions of the file.

    However, I have one idea that you could try right away - it may be that it is taking to long for RAM to be initialized by the C-startup code and your watchdog timer is timing out, causing a device reset before you ever reach the breakpoint at the beginning of main(). Please see this other thread: e2e.ti.com/.../882570 The thread also points to resources about using __low_level_init in IAR or __system_pre_init in CCS to disable the watchdog before RAM init happens.

    Regards,
    Katie
  • Hi,

    I have stop watchdog time then going to initialize thing for RAM and other program. Will you provide any guideline docs to run program in RAM.
    I dont know whether it is help me to increase the speed of my execution. So I would like to know the difference in execution speed between code running in RAM and Flash.

    Thanks
    Waiting for your reply.
  • Hi Bhavdipsinh,

    Please see this thread for the answer: e2e.ti.com/.../1207054 Speed will be the same (on MSP430 Flash devices there's no wait-states for flash) but current consumption is a bit lower (see datasheet www.ti.com/lit/gpn/msp430f6778 section on "Active Mode Supply Current into Vcc" you can see a comparison of current when running from RAM vs Flash).

    Regards,
    Katie
  • Thanks for your details which give me good information for next step.

**Attention** This is a public forum