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.

!!! HELP !!! can not debug with FLASH mode, but working in RAM mode.

Other Parts Discussed in Thread: CONTROLSUITE

Hello,

I am using C2000 launchpad with Digital Power Supply example project CCS v5 running. I could run debugging if "RAM" debugging mode is selected, unfortunately I need to change it to "FLASH" mode to increase code size. While changing debugging mode to "FLASH" and start "Built All" i get many error messages and stop the built. I do not understand what makes difference same code run well in RAM debugging option and not built in FLASH. I have attached error log and screen while return built error.

3007.2055.error.txt
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
became:
MOV16 @_EPwm1Regs.CMPB,R1H ; CMPB = Duty * Period
"../myproject-DPL-ISR.asm", ERROR! at line 72: [E0002] Invalid instruction for
specified floating
point accelerator
MOV16 @_EPwm:n:Regs.CMPB,R1H ; CMPB = Duty * Period
"../myproject-DPL-ISR.asm", REMARK at line 72: [R0001] After symbol
substitution the line
became:
MOV16 @_EPwm1Regs.CMPB,R1H ; CMPB = Duty * Period
"../myproject-DPL-ISR.asm", ERROR! at EOF: [E0300] The following symbols are
undefined:
R2H
R1H
R0H
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hello Rafeeq! 

    If you accurately describe the chain of events that may be a problem is in your file F28027_FLASH_myproject.cmd. Let's look at the following fact: the compiling with the command linker file F28027_RAM_myproject.cmd have not generated errors and with  F28027_FLASH_myproject.cmd compilation errors occur. Unless of course you did not change anything in the source code...First of all I would recommend you to take  F28027_FLASH.cmd from some example of controlSUITE.

    Regards,

    Igor

  • Hello Igor,

    Firstly, I am not expert in CCS V5 application.

    As you mentioned I have copied one "F28027_FLASH.cmd"  from an example project, and renamed then put in my project folder.

    But unfortunately i can see same result as same error, I do not know is it because i renamed the .cmd file.

    I will uploaded the project file.  Could you please look into this ?   I am thankful to you if you give some comment in this.

    2251.MYPROJECTS_v01_May21.zip

  • Hello Rafeeq!

    Sorry! But your project is not compiled for RAM-version too. There were a problem (error messages) at file myproject-DPL-ISR.asm (like your screenshot) in following code:

    ;call DP library modules

    ;---------------------------------------------------------
    .if(INCR_BUILD = 1)
    PWMDRV_1ch 1 ; PWM1A
    .endif
    ;----------------------------------------------------------

    I replaced the file PWMDRV_1ch.asm of your project a different version  from ti\controlSUITE\libs\app_libs\digital_power\f2802x_v3.4\asm_macros\PWMDRV_1ch.asm (2705.PWMDRV_1ch.asm). Compilation was successful.

    In addition the file myproject-Main.c had a warning at following code:

    // 60MHz/10Khz = 6000
    PWM_1ch_CNF(1, 600000, 1, 0);

    why do you set 600000?

    replace on PWM_1ch_CNF(1, 6000, 1, 0);

    This is all at now...

    Regards,

    Igor

  • Hello Igor,

    your reply solved issue, project compiled successfully.

    Thank you very much for support.

    RAFEEQ