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.

MSP430 Assembler creates E0300

Other Parts Discussed in Thread: MSP430F5438A

Hello.
I try to compile a mixed C / asm project.
Using CSS v5 for the MSP430F5438A
I get a really odd error message:

[E0300] The following symbols are undefined:

The problem is: There are no symbols following. And there is no line number.
Only the filename 'ta_uart.asm'.
Can anyone help please?

Thanks
Peter

  • Peter,

    It may be a bug in the assembler; if possible, would you mind sending the corresponding assembly file (can be done in pvt message if you prefer)? This would greatly help perform the analysis of this issue?

    Regards,

    Rafael

  • I'm new to this forum.
    I hope the file attaches well.

    Regards,
    Peter

    ta_uart.asm
  • Hi Peter,

    how are you combining the assembly and C code?  What compiler options do you set? Are you using inline assembly?

    Have you had a look at page page 55 (section 3.3.2) of the CCS Guide for the MSP?  Also look at the other guide here as well.

    http://www.ti.com/lit/ug/slau132f/slau132f.pdf

    http://www.ti.com/lit/ug/slau131f/slau131f.pdf

    These have useful information, for example :

    The .cdecls directive enables programmers in mixed assembly and C/C++ environments to share C
    headers containing declarations and prototypes between C and assembly code.

    Best Regards,
    Lisa

  • Peter,

    Thank you, the file attached correctly. Could you also send the build output of the console view in CCS? That would help see the exact command being invoked and the error message.

    I am using version 4.0.0 of the compiler (shipped with CCSv5.1.0.09000), and the error I am getting clearly shows the missing symbols:

    output said:

    C:\Users\user\Documents\testcases\ta_5f00_uart_asm>cl430 --include_path=C:\TI\ccsv5\ccs_base\msp430\include ta_5F00_uart.asm
    "ta_5F00_uart.asm", ERROR!   at EOF: [E0300] The following symbols are
                                                 undefined:
      TACTL
      TAIV
      TAR
      TACCTL2
      TACCTL1
      TACCTL0
      TACCR2
      TACCR1
    1 Assembly Error, No Assembly Warnings

    Errors in Source - Assembler Aborted

    >> Compilation failure

    Regards,

    Rafael

  • Hello again,

    see if this thread is a useful tip for you as well.

     

    http://e2e.ti.com/support/microcontrollers/msp43016-bit_ultra-low_power_mcus/f/166/t/127731.aspx

    Best Regards,
    Lisa

  • Rafael,

    Thank you for the hint. Indeed, looking at the console output of the assembler revealed the same error output. Now i have to find out in which include file these symbols are defined.

    Regards,
    Peter.