Hi there!
We have to build an assembly only project in our school. When we try to build our code, we get some errors.
What we did:
- Build a new CCS Project
- Selected the checkbox "Treat as an Assembly-only project"
- Choosen the linker command file "lnk.cmd"
- Added a new file named "main.asm"
Code inside main.asm:
main:
mov #1000, AR0
loop1:
rpt #65000
nop
sub #1, AR0
bcc loop1, AR0 != 0
xor #0x2000, st1_55
B main
.end
When we build it we get this command output:
**** Build of configuration Debug for project BlinkLED ****
C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all
'Building file: ../main.asm'
'Invoking: C5500 Compiler'
"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/bin/cl55" -v5505 -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/include" --diag_warning=225 --sat_reassoc=off --ptrdiff_size=32 --fp_reassoc=off --memory_model=huge --asm_source=mnemonic --preproc_with_compile --preproc_dependency="main.pp" "../main.asm"
"..\main.asm", WARNING! at line 8: [W9999] Using MMR address
xor #0x2000, st1_55
No Assembly Errors, 1 Assembly Warning
'Finished building: ../main.asm'
' '
'Building target: BlinkLED.out'
'Invoking: C5500 Linker'
"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/bin/cl55" -z -m"BlinkLED.map" --stack_size=0 --heap_size=0 --warn_sections -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/lib" -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c5500/include" --reread_libs -o "BlinkLED.out" "./main.obj" "../lnk.cmd"
<Linking>
undefined first referenced
symbol in file
--------- ----------------
_main C:\Program Files\Texas Instruments\ccsv4\tools\compiler\c5500\lib\rts55h.lib<args_main.obj>
error: unresolved symbols remain
error: errors encountered during linking; "BlinkLED.out" not built
>> Compilation failure
C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [BlinkLED.out] Error 1
C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.
Build complete for project BlinkLED
Has anybody an idea why it don't run correctly. Is so boring. We didn't found a tutorial or other discription
on TI website!!
Thanks.
Mike