I tried compiling using GNUARM toolchain in keil(evaluation). In the output window it shows that it has succesfully created the exe. But when I goto the path where exe is supposed to be placed, I dont find any exe there. what could be the problem?
The linker will not create a file with the extention .exe, because that would indicate an executable file for a PC. Look for files with the extention .bin, or no extension at all. You might also be able to specify the actual output file name in the linker options.
What i meant by exe is that its generating a object file. So, as I am using GNUARM toolchain, its generating object file called <file>.elf But I dont see any such file generated at the location specified by the path.
So why did you call it "exe" when it's not "exe" - it's "elf"?! "But I dont see any such file generated at the location specified by the path." Have you tried a search - can you find it anywhere else?
Even if its extension is elf, its still an executable. I searched also. Its not there.
"Even if its extension is elf, its still an executable" That's true. But you didn't say "executable", did you? - you specifically said "exe" Anyhow, have you checked for the other possibilities like Christoph suggexted; eg, "bin" or no extension at all?
No executable at all. Here is what output window shows when compiled: Build target 'AT91M40800' assembling Startup.s... compiling Syscalls.c... compiling Serial.c... compiling Hello.c... linking... ".\Obj\Hello.elf" - 0 Error(s), 0 Warning(s). When tried to debug, I am getting the following message: Error: Could not load C:\Keil\ARM\GNU\Examples\Hello\Obj\Hello.elf Debugger aborted!
Note This message was edited to correct formatting.
".\Obj\Hello.elf" - 0 Error(s), 0 Warning(s). Hm. Could it be that there's something wrong with the base directory ? Did you search the harddrive for a file named Hello.elf ? Maybe the linker just put it in a place where the rest of the IDE doesn't expect it.
I have searched the entire disk. Its nowhere.
View all questions in Keil forum