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.

Flash build configuration errors



Hello Lori,

Your reply for my last query helped me.

I am in another problem while working on debugger.

I used Digital Power Supply example project.

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.

Thank you.

                                                       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

Errors in Source - Assembler Aborted
gmake: *** [myproject-DPL-ISR.obj] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

  • Hi Rafeeq,

    I'd encourage you to start a new thread for new questions instead of adding on to an answered thread so others will more easily see the new question.

    Rafeeq MUHAMMED said:

    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.

    These errors are referring to floating point registers (R1H, R2H, R3H).  

    It looks like the project was intended for a floating-point build but this switch is not enabled when you change to the flash build configuration.  

    I'm not familiar with this specific code, but I would suggest checking the compiler options to see if the float support switch is enabled.  Right click on the project -> select properties -> under CPU options there should be a --float_support == fpu32.

    "../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

  • Duplicate post - closing thread.

    Please follow to this thread; http://e2e.ti.com/support/microcontrollers/c2000/f/171/t/266430.aspx