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.

TMS470 - Assembler issue

Hi All,

 Compiled a simple assembly file with gcc assembler (arm-none-eabi-as.exe) & TMS470 assembler (asm470.exe). 

In GCC there was no issue.

The same asm file is not compiled in asm470.exe 

 Error message:

 

$asm470 test_assembly.s

 

"test_assembly.s", ERROR!   at line 1: [E0002] Illegal mnemonic specified

        .global inclw

"test_assembly.s", ERROR!   at line 4: [E0002] Illegal mnemonic specified

        MOV r7, #0

"test_assembly.s", ERROR!   at line 5: [E0001] Undefined symbol

        loop: BL inclw

"test_assembly.s", ERROR!   at line 7: [E0002] Illegal mnemonic specified

        BCC loop

"test_assembly.s", ERROR!   at EOF: [E0300] The following symbols are undefined:

  inclw

5 Assembly Errors, No Assembly Warnings

Errors in Source - Assembler Aborted

>> Compilation failure

 

What could be the issue?

Regards

Vinoth

  • In TI assemblers, the first column in assembly statements is reserved for labels (this is documented in the TMS470 Assembly Language Tools Users Guide, section 3.5). Other than the label "loop", move the other asm statements by either a space or tab.