I am creating a .elf file from Arduino for MK20DX256VLH7 and when burning through Ulink2 via SWD mode using Keil Uversion5 its getting downloaded properly but not getting expected result.
As I know Keil burns .axf file but .axf is also ELF format. Below is the link kindly verify. http://www.keil.com/support/docs/1774.htm
Kindly let me know where I am going wrong or what steps I need to take to get the expected output.
Even I have .hex file from Arduino if in case it needed.
just I am compiling Code for teensy 3.2 which is based on MK20DX256VLH7 in Teensyduino and trying to burn generated .elf file through Keil via Ulink2.
Ok, and what is precluding you from stepping through the executing code once you download it, and figuring out why it is deviating from your expectations?
May be if all you are using Keil for is the ULink downloader, then you need to discuss/review the problem with PJRC, and on their forum.
Review the .ELF file, and its contents, with respect to what the processor is expecting in terms of code, and code placement.