I have downloaded K64F SDK for the armgcc toolchain and Linux platform.
When changing some compiling flags in the armgcc.cmake file, it does not come into force.
After analyzing, I found that the set command in the flags.cmake file ignoring the compiling flags from the armgcc.cmake file.
The original example in the flags.cmake file looks like below:
SET(CMAKE_ASM_FLAGS_DEBUG " \
-DDEBUG \
-D__STARTUP_CLEAR_BSS \
-g \ ...
")
However, it should be like the code snippet below so that it includes the flags from the armgcc.cmake:
SET(CMAKE_ASM_FLAGS_DEBUG " \
${CMAKE_ASM_FLAGS_DEBUG} \
-DDEBUG \
-D__STARTUP_CLEAR_BSS \
-g \
... ")
I do not check other SDKs, but I believe this problem exists in all the newest SDK.
Please patch it ASAP.