I can download ELF image in Keil and do assembly debug, how to let Keil know source location? Source can be accessed through samba \\x.x.x.x\home\user\src\..., while it doesn't match the location which is linux style /home/user/src/...
When you say, "built in ubuntu" - does that mean that you used GCC?
If so, the real question is: "How to debug an ELF image built by GCC".
That's been answered some time ago - try the 'Search' faclity
Note that the free Keil debugger has the same code size limitation as the compiler, assembler, and linker:
http://www.keil.com/demo/limits.asp
So, if you're going to debug with Keil, you might as well build with Keil - and avoid the issue all together!
Some things won't build with Keil. Certainly a lot of Linux/Unix stuff built with make files and soft-links.
Personally I'd take the .ELF and massage the debug and filename symbols to match mappable files and start from there.
I've changed the debug_info in elf file to windows mapping folder with debugedit, and added "-O0 -g -g3 -gdwarf-3 -gstrict-dwarf" to build dwarf-3 version debug_info. Now Keil could load source code correctly, while it can't run step with source level, but still assembly step. How to fix this kind of issue?
After set SRC, I was able to step in source code, while breakpoint doesn't work exactly as what is described in www.keil.com/.../. Is this issue confirmed or root caused in the end? I can't load the image before press DEBUG button, any other way to make it work?