Hello, I wrote a simple programm in CCSv5 on Cortex R4, she contains one c and one asm file. In c file my code is:
extern fun();
main() {
fun();
while(1);
}
and in asm:
.text
.arm
.def _fun
.asmfunc
.retain
.retainrefs
_fun:
mov r1, #1
mov r2, #2
add r1, r1, r2
end
This programm compiled without error, but with 3 warnings:
#10062-D entry-point symbol "_c_int00" undefined cortest C/C++ Problem
#10202-D no suitable entry-point found; setting to 0 cortest C/C++ Problem
#10204-D automatic RTS selection: could not resolve index library "libc.a" to a compatible library cortest C/C++ Problem
In config options I chose a "Texas Instruments Simulator" with "Cortex R4 CPU Functional Simulator, Big Endian".
But when I try to start a debug, he stops with that message in console:
ARMxx: AutoRun: Target not run as the symbol "main" is not defined
As you can see I got a main() in my code, why he cant see this?