There's no solution to fix KDS: variable optimized out when compile with O2 and LTO option. so i try replace gcc 4.9.1 with higher version 5.4.1.
When using arm-none-eabi-gcc 5.4.1, KDS can not launch debug. so there's maybe a compatibility between KDS and arm-none-eabi-gcc 5.4.1.
Hi,
Did you replace gdb as well? gcc and gdb should be in sync.
I hope this helps,
Erich
Thanks Erich, the whole ToolChain is clear to empty and then extract new GCC 5.4 into that folder.