Hello world project compilation and GDB debugging with Keil MDK worked like a charm!
For further ref - steps that worked for me (thank you daav):
-
Setup Tools Path (Window->Preferences->Developer Studio->Tools paths->RealView Development Suite preferences)
RVCT40BIN: C:\Keil\ARM\BIN40
RVCT40INC: C:\Keil\ARM\RV31\INC
RVCT40LIB: C:\Keil\ARM\RV31\LIB -
Add Windows System Environment Variable ARMLIB -> C:\Keil\ARM\RV31\LIB (+restart Dev Studio)
Without this step I had wrong path during linking process. I have ADS1.2 toolchain installed which set ARMLIB variable to ADS linker. I’m not sure why DS used path from System Environment Variable instead configured path (from step 1.) -
Project Properties->C/C++ Build->Settings->ToolSettings->RVDS C/C++ Linker->Linker options : unmark Elf format checkbox (I didn’t try with Elf so I’m not sure is this make any difference but I wanted EABI).