Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

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.

Cortex R4 simulator cant find "main" in my project

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?