The --dwarf2 option is for RVCT. You are not using RVCT - you will need to find the equivalent command-line option for your toolchain. I think WinARM is GCC-based. Looking around, the option you want might be "-gdwarf-2", but I'd advise you to look in the documentation and check. Hope this helps.