diff --git a/bsl/cmakeLowLayer/CMakeLists.txt b/bsl/cmakeLowLayer/CMakeLists.txt index aebd885..efb62d7 100644 --- a/bsl/cmakeLowLayer/CMakeLists.txt +++ b/bsl/cmakeLowLayer/CMakeLists.txt @@ -1,27 +1,41 @@ cmake_minimum_required(VERSION 3.5) +#################################################################################################### +#VARIABLES : CMAKE +#################################################################################################### +#An exhaustive list can be found : https://cmake.org/cmake/help/latest/manual/cmake-variables.7.html set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) # Why ? Because we are using our own Linker so this will prevent Cmake to veryfy cimpilation with his Linker option set(CMAKE_C_COMPILER "/usr/bin/arm-none-eabi-gcc") set(CMAKE_CXX_COMPILER "/usr/bin/arm-none-eabi-g++") set(CMAKE_ASM_COMPILER "/usr/bin/arm-none-eabi-gcc") -set(CMAKE_ASM_FLAGS "-x assembler-with-cpp")#The reason that we use arm-none-eabi-gcc is that we will invoke c before the assemly Thus the flags. +set(CMAKE_ASM_FLAGS "-x assembler-with-cpp")#The reason that we use arm-none-eabi-gcc is that we will invoke c before the assemly Thus the flags. set(CMAKE_OBJCOPY "/usr/bin/arm-none-eabi-objcopy") +#################################################################################################### +#PRJECT & LIBRARIES : defined by user and important that it comes after the VARIABLES otherwise the Set varibale will not be used. +#################################################################################################### project(refOvenTest ASM C CXX) # do this intead sf declaring languages in the beginning it will prevent loop errors. set(CMAKE_SYSTEM_NAME Generic) set(CMAKE_SYSTEM_PROCESSOR arm) set(CMAKE_CROSSCOMPILING TRUE) -set(CMAKE_VERBOSE_MAKEFILE on) +set(CMAKE_VERBOSE_MAKEFILE on)#Shoul make print everythign ?? -#define th global variables for CMAKE to use for this project. +#################################################################################################### +#VARIABLES : defined by user +#################################################################################################### set(LINKER startup/STM32F042K6Tx_FLASH.ld) set(STARTUP startup/startup_stm32f042x6.s) set(CPU_MCU "-mcpu=cortex-m0") - set(EXECUTABLE ${PROJECT_NAME}.out) + +#################################################################################################### +#SOURCES +#################################################################################################### +# For flags please check https://manned.org/arm-none-eabi-gcc/34fd6095 + set(C_SOURCES Src/main.c Src/stm32f0xx_it.c @@ -39,21 +53,33 @@ set(C_HEADERS set(ASM_SOURCES ${STARTUP}) +#################################################################################################### +#FLAGS +#################################################################################################### +# For flags please check https://manned.org/arm-none-eabi-gcc/34fd6095 +set(C_FLAGS + -mthumb #Instruction set : https://stackoverflow.com/questions/10638130/what-is-the-arm-thumb-instruction-set + -Wall #Error : If you don't know this one please chek basical compiling + -fdata-sections #Optimization : Linker can perform optimizations to improve locality of reference in the instruction space. + -fdiagnostics-color=always + -ffunction-sections)#Optimization : used with -fdata-sections + +set(LINKER_FLAGS + -mthumb + -specs=nano.specs + -lc + -lm + -lnosys + -Wl,--gc-sections) + +#################################################################################################### +#COMPILATION +#################################################################################################### add_executable(${EXECUTABLE} ${C_SOURCES} ${C_HEADERS} ${ASM_SOURCES}) -#This is the whol tick to handle the assenbl compiling. -#We can't use arm-non-eabi-as because it can onaly hande macros. -#So this Varible makes that whne the asembly compiling is called the -x assembler-with-cpp flag is used -target_compile_options(${EXECUTABLE} PRIVATE - $<$:-x assembler-with-cpp ${ASM_FLAGS}> -) - target_compile_options(${EXECUTABLE} PRIVATE ${CPU_MCU} - -mthumb - -Wall - -fdata-sections - -ffunction-sections + ${C_FLAGS} $<$:-O -g -gdwarf-2>) target_compile_definitions(${EXECUTABLE} PRIVATE @@ -76,6 +102,10 @@ target_include_directories(${EXECUTABLE} PRIVATE Drivers/CMSIS/Device/ST/STM32F0xx/Include Drivers/CMSIS/Include) + +#################################################################################################### +#LINKING +#################################################################################################### target_link_options(${EXECUTABLE} PRIVATE ${CPU_MCU} -mthumb @@ -87,6 +117,10 @@ target_link_options(${EXECUTABLE} PRIVATE -Wl,-Map=${PROJECT_NAME}.map,--cref -Wl,--gc-sections) + +#################################################################################################### +#CUSTOM COMMANDS +#################################################################################################### add_custom_command(TARGET ${EXECUTABLE} POST_BUILD COMMAND arm-none-eabi-size ${EXECUTABLE}) @@ -95,3 +129,13 @@ add_custom_command(TARGET ${EXECUTABLE} POST_BUILD COMMAND arm-none-eabi-objcopy -O ihex ${EXECUTABLE} ${PROJECT_NAME}.hex COMMAND arm-none-eabi-objcopy -O binary ${EXECUTABLE} ${PROJECT_NAME}.bin) + + +#################################################################################################### +#CUSTOM Comments from dev. +#################################################################################################### +#This is one possible trick to handle the assenbly compiling. +#We can't use arm-non-eabi-as because it can onaly hande macros. +#So this bizzare Variable makes shure that whne the asembly compiling is called the -x assembler-with-cpp flag is passed +#target_compile_options(${EXECUTABLE} PRIVATE +# $<$:-x assembler-with-cpp ${ASM_FLAGS}>) diff --git a/bsl/cmakeLowLayer/build/CMakeFiles/3.13.4/CMakeDetermineCompilerABI_C.bin b/bsl/cmakeLowLayer/build/CMakeFiles/3.13.4/CMakeDetermineCompilerABI_C.bin index 978008d..78cd742 100644 Binary files a/bsl/cmakeLowLayer/build/CMakeFiles/3.13.4/CMakeDetermineCompilerABI_C.bin and b/bsl/cmakeLowLayer/build/CMakeFiles/3.13.4/CMakeDetermineCompilerABI_C.bin differ diff --git a/bsl/cmakeLowLayer/build/CMakeFiles/3.13.4/CMakeDetermineCompilerABI_CXX.bin b/bsl/cmakeLowLayer/build/CMakeFiles/3.13.4/CMakeDetermineCompilerABI_CXX.bin index ca41997..98c0974 100644 Binary files a/bsl/cmakeLowLayer/build/CMakeFiles/3.13.4/CMakeDetermineCompilerABI_CXX.bin and b/bsl/cmakeLowLayer/build/CMakeFiles/3.13.4/CMakeDetermineCompilerABI_CXX.bin differ diff --git a/bsl/cmakeLowLayer/build/CMakeFiles/CMakeOutput.log b/bsl/cmakeLowLayer/build/CMakeFiles/CMakeOutput.log index 511dadd..61fca52 100644 --- a/bsl/cmakeLowLayer/build/CMakeFiles/CMakeOutput.log +++ b/bsl/cmakeLowLayer/build/CMakeFiles/CMakeOutput.log @@ -34,32 +34,32 @@ The CXX compiler identification is GNU, found in "/home/key/github/KED/bsl/cmake Determining if the C compiler works passed with the following output: Change Dir: /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp -Run Build Command:"/usr/bin/make" "cmTC_b8d79/fast" -/usr/bin/make -f CMakeFiles/cmTC_b8d79.dir/build.make CMakeFiles/cmTC_b8d79.dir/build +Run Build Command:"/usr/bin/make" "cmTC_8dc63/fast" +/usr/bin/make -f CMakeFiles/cmTC_8dc63.dir/build.make CMakeFiles/cmTC_8dc63.dir/build make[1]: Entering directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' -Building C object CMakeFiles/cmTC_b8d79.dir/testCCompiler.c.o -/usr/bin/arm-none-eabi-gcc -o CMakeFiles/cmTC_b8d79.dir/testCCompiler.c.o -c /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp/testCCompiler.c -Linking C static library libcmTC_b8d79.a -/usr/bin/cmake -P CMakeFiles/cmTC_b8d79.dir/cmake_clean_target.cmake -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b8d79.dir/link.txt --verbose=1 -/usr/bin/arm-none-eabi-ar qc libcmTC_b8d79.a CMakeFiles/cmTC_b8d79.dir/testCCompiler.c.o -/usr/bin/arm-none-eabi-ranlib libcmTC_b8d79.a +Building C object CMakeFiles/cmTC_8dc63.dir/testCCompiler.c.o +/usr/bin/arm-none-eabi-gcc -o CMakeFiles/cmTC_8dc63.dir/testCCompiler.c.o -c /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp/testCCompiler.c +Linking C static library libcmTC_8dc63.a +/usr/bin/cmake -P CMakeFiles/cmTC_8dc63.dir/cmake_clean_target.cmake +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_8dc63.dir/link.txt --verbose=1 +/usr/bin/arm-none-eabi-ar qc libcmTC_8dc63.a CMakeFiles/cmTC_8dc63.dir/testCCompiler.c.o +/usr/bin/arm-none-eabi-ranlib libcmTC_8dc63.a make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' Detecting C compiler ABI info compiled with the following output: Change Dir: /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp -Run Build Command:"/usr/bin/make" "cmTC_6be81/fast" -/usr/bin/make -f CMakeFiles/cmTC_6be81.dir/build.make CMakeFiles/cmTC_6be81.dir/build +Run Build Command:"/usr/bin/make" "cmTC_be96f/fast" +/usr/bin/make -f CMakeFiles/cmTC_be96f.dir/build.make CMakeFiles/cmTC_be96f.dir/build make[1]: Entering directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' -Building C object CMakeFiles/cmTC_6be81.dir/CMakeCCompilerABI.c.o -/usr/bin/arm-none-eabi-gcc -o CMakeFiles/cmTC_6be81.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.13/Modules/CMakeCCompilerABI.c -Linking C static library libcmTC_6be81.a -/usr/bin/cmake -P CMakeFiles/cmTC_6be81.dir/cmake_clean_target.cmake -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_6be81.dir/link.txt --verbose=1 -/usr/bin/arm-none-eabi-ar qc libcmTC_6be81.a CMakeFiles/cmTC_6be81.dir/CMakeCCompilerABI.c.o -/usr/bin/arm-none-eabi-ranlib libcmTC_6be81.a +Building C object CMakeFiles/cmTC_be96f.dir/CMakeCCompilerABI.c.o +/usr/bin/arm-none-eabi-gcc -o CMakeFiles/cmTC_be96f.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.13/Modules/CMakeCCompilerABI.c +Linking C static library libcmTC_be96f.a +/usr/bin/cmake -P CMakeFiles/cmTC_be96f.dir/cmake_clean_target.cmake +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_be96f.dir/link.txt --verbose=1 +/usr/bin/arm-none-eabi-ar qc libcmTC_be96f.a CMakeFiles/cmTC_be96f.dir/CMakeCCompilerABI.c.o +/usr/bin/arm-none-eabi-ranlib libcmTC_be96f.a make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' @@ -67,16 +67,16 @@ Parsed C implicit link information from above output: link line regex: [^( *|.*[/\])(arm-none-eabi-ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] ignore line: [Change Dir: /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp] ignore line: [] - ignore line: [Run Build Command:"/usr/bin/make" "cmTC_6be81/fast"] - ignore line: [/usr/bin/make -f CMakeFiles/cmTC_6be81.dir/build.make CMakeFiles/cmTC_6be81.dir/build] + ignore line: [Run Build Command:"/usr/bin/make" "cmTC_be96f/fast"] + ignore line: [/usr/bin/make -f CMakeFiles/cmTC_be96f.dir/build.make CMakeFiles/cmTC_be96f.dir/build] ignore line: [make[1]: Entering directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp'] - ignore line: [Building C object CMakeFiles/cmTC_6be81.dir/CMakeCCompilerABI.c.o] - ignore line: [/usr/bin/arm-none-eabi-gcc -o CMakeFiles/cmTC_6be81.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.13/Modules/CMakeCCompilerABI.c] - ignore line: [Linking C static library libcmTC_6be81.a] - ignore line: [/usr/bin/cmake -P CMakeFiles/cmTC_6be81.dir/cmake_clean_target.cmake] - ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_6be81.dir/link.txt --verbose=1] - ignore line: [/usr/bin/arm-none-eabi-ar qc libcmTC_6be81.a CMakeFiles/cmTC_6be81.dir/CMakeCCompilerABI.c.o] - ignore line: [/usr/bin/arm-none-eabi-ranlib libcmTC_6be81.a] + ignore line: [Building C object CMakeFiles/cmTC_be96f.dir/CMakeCCompilerABI.c.o] + ignore line: [/usr/bin/arm-none-eabi-gcc -o CMakeFiles/cmTC_be96f.dir/CMakeCCompilerABI.c.o -c /usr/share/cmake-3.13/Modules/CMakeCCompilerABI.c] + ignore line: [Linking C static library libcmTC_be96f.a] + ignore line: [/usr/bin/cmake -P CMakeFiles/cmTC_be96f.dir/cmake_clean_target.cmake] + ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_be96f.dir/link.txt --verbose=1] + ignore line: [/usr/bin/arm-none-eabi-ar qc libcmTC_be96f.a CMakeFiles/cmTC_be96f.dir/CMakeCCompilerABI.c.o] + ignore line: [/usr/bin/arm-none-eabi-ranlib libcmTC_be96f.a] ignore line: [make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp'] ignore line: [] implicit libs: [] @@ -89,16 +89,16 @@ Parsed C implicit link information from above output: Detecting C [-std=c11] compiler features compiled with the following output: Change Dir: /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp -Run Build Command:"/usr/bin/make" "cmTC_43f6b/fast" -/usr/bin/make -f CMakeFiles/cmTC_43f6b.dir/build.make CMakeFiles/cmTC_43f6b.dir/build +Run Build Command:"/usr/bin/make" "cmTC_e2c08/fast" +/usr/bin/make -f CMakeFiles/cmTC_e2c08.dir/build.make CMakeFiles/cmTC_e2c08.dir/build make[1]: Entering directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' -Building C object CMakeFiles/cmTC_43f6b.dir/feature_tests.c.o -/usr/bin/arm-none-eabi-gcc -std=c11 -o CMakeFiles/cmTC_43f6b.dir/feature_tests.c.o -c /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.c -Linking C static library libcmTC_43f6b.a -/usr/bin/cmake -P CMakeFiles/cmTC_43f6b.dir/cmake_clean_target.cmake -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_43f6b.dir/link.txt --verbose=1 -/usr/bin/arm-none-eabi-ar qc libcmTC_43f6b.a CMakeFiles/cmTC_43f6b.dir/feature_tests.c.o -/usr/bin/arm-none-eabi-ranlib libcmTC_43f6b.a +Building C object CMakeFiles/cmTC_e2c08.dir/feature_tests.c.o +/usr/bin/arm-none-eabi-gcc -std=c11 -o CMakeFiles/cmTC_e2c08.dir/feature_tests.c.o -c /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.c +Linking C static library libcmTC_e2c08.a +/usr/bin/cmake -P CMakeFiles/cmTC_e2c08.dir/cmake_clean_target.cmake +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e2c08.dir/link.txt --verbose=1 +/usr/bin/arm-none-eabi-ar qc libcmTC_e2c08.a CMakeFiles/cmTC_e2c08.dir/feature_tests.c.o +/usr/bin/arm-none-eabi-ranlib libcmTC_e2c08.a make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' @@ -111,16 +111,16 @@ make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFi Detecting C [-std=c99] compiler features compiled with the following output: Change Dir: /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp -Run Build Command:"/usr/bin/make" "cmTC_abb77/fast" -/usr/bin/make -f CMakeFiles/cmTC_abb77.dir/build.make CMakeFiles/cmTC_abb77.dir/build +Run Build Command:"/usr/bin/make" "cmTC_62911/fast" +/usr/bin/make -f CMakeFiles/cmTC_62911.dir/build.make CMakeFiles/cmTC_62911.dir/build make[1]: Entering directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' -Building C object CMakeFiles/cmTC_abb77.dir/feature_tests.c.o -/usr/bin/arm-none-eabi-gcc -std=c99 -o CMakeFiles/cmTC_abb77.dir/feature_tests.c.o -c /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.c -Linking C static library libcmTC_abb77.a -/usr/bin/cmake -P CMakeFiles/cmTC_abb77.dir/cmake_clean_target.cmake -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_abb77.dir/link.txt --verbose=1 -/usr/bin/arm-none-eabi-ar qc libcmTC_abb77.a CMakeFiles/cmTC_abb77.dir/feature_tests.c.o -/usr/bin/arm-none-eabi-ranlib libcmTC_abb77.a +Building C object CMakeFiles/cmTC_62911.dir/feature_tests.c.o +/usr/bin/arm-none-eabi-gcc -std=c99 -o CMakeFiles/cmTC_62911.dir/feature_tests.c.o -c /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.c +Linking C static library libcmTC_62911.a +/usr/bin/cmake -P CMakeFiles/cmTC_62911.dir/cmake_clean_target.cmake +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_62911.dir/link.txt --verbose=1 +/usr/bin/arm-none-eabi-ar qc libcmTC_62911.a CMakeFiles/cmTC_62911.dir/feature_tests.c.o +/usr/bin/arm-none-eabi-ranlib libcmTC_62911.a make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' @@ -133,16 +133,16 @@ make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFi Detecting C [-std=c90] compiler features compiled with the following output: Change Dir: /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp -Run Build Command:"/usr/bin/make" "cmTC_ae393/fast" -/usr/bin/make -f CMakeFiles/cmTC_ae393.dir/build.make CMakeFiles/cmTC_ae393.dir/build +Run Build Command:"/usr/bin/make" "cmTC_d2169/fast" +/usr/bin/make -f CMakeFiles/cmTC_d2169.dir/build.make CMakeFiles/cmTC_d2169.dir/build make[1]: Entering directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' -Building C object CMakeFiles/cmTC_ae393.dir/feature_tests.c.o -/usr/bin/arm-none-eabi-gcc -std=c90 -o CMakeFiles/cmTC_ae393.dir/feature_tests.c.o -c /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.c -Linking C static library libcmTC_ae393.a -/usr/bin/cmake -P CMakeFiles/cmTC_ae393.dir/cmake_clean_target.cmake -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ae393.dir/link.txt --verbose=1 -/usr/bin/arm-none-eabi-ar qc libcmTC_ae393.a CMakeFiles/cmTC_ae393.dir/feature_tests.c.o -/usr/bin/arm-none-eabi-ranlib libcmTC_ae393.a +Building C object CMakeFiles/cmTC_d2169.dir/feature_tests.c.o +/usr/bin/arm-none-eabi-gcc -std=c90 -o CMakeFiles/cmTC_d2169.dir/feature_tests.c.o -c /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.c +Linking C static library libcmTC_d2169.a +/usr/bin/cmake -P CMakeFiles/cmTC_d2169.dir/cmake_clean_target.cmake +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d2169.dir/link.txt --verbose=1 +/usr/bin/arm-none-eabi-ar qc libcmTC_d2169.a CMakeFiles/cmTC_d2169.dir/feature_tests.c.o +/usr/bin/arm-none-eabi-ranlib libcmTC_d2169.a make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' @@ -153,32 +153,32 @@ make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFi Determining if the CXX compiler works passed with the following output: Change Dir: /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp -Run Build Command:"/usr/bin/make" "cmTC_14a03/fast" -/usr/bin/make -f CMakeFiles/cmTC_14a03.dir/build.make CMakeFiles/cmTC_14a03.dir/build +Run Build Command:"/usr/bin/make" "cmTC_42346/fast" +/usr/bin/make -f CMakeFiles/cmTC_42346.dir/build.make CMakeFiles/cmTC_42346.dir/build make[1]: Entering directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' -Building CXX object CMakeFiles/cmTC_14a03.dir/testCXXCompiler.cxx.o -/usr/bin/arm-none-eabi-g++ -o CMakeFiles/cmTC_14a03.dir/testCXXCompiler.cxx.o -c /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx -Linking CXX static library libcmTC_14a03.a -/usr/bin/cmake -P CMakeFiles/cmTC_14a03.dir/cmake_clean_target.cmake -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_14a03.dir/link.txt --verbose=1 -/usr/bin/arm-none-eabi-ar qc libcmTC_14a03.a CMakeFiles/cmTC_14a03.dir/testCXXCompiler.cxx.o -/usr/bin/arm-none-eabi-ranlib libcmTC_14a03.a +Building CXX object CMakeFiles/cmTC_42346.dir/testCXXCompiler.cxx.o +/usr/bin/arm-none-eabi-g++ -o CMakeFiles/cmTC_42346.dir/testCXXCompiler.cxx.o -c /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx +Linking CXX static library libcmTC_42346.a +/usr/bin/cmake -P CMakeFiles/cmTC_42346.dir/cmake_clean_target.cmake +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_42346.dir/link.txt --verbose=1 +/usr/bin/arm-none-eabi-ar qc libcmTC_42346.a CMakeFiles/cmTC_42346.dir/testCXXCompiler.cxx.o +/usr/bin/arm-none-eabi-ranlib libcmTC_42346.a make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' Detecting CXX compiler ABI info compiled with the following output: Change Dir: /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp -Run Build Command:"/usr/bin/make" "cmTC_7208b/fast" -/usr/bin/make -f CMakeFiles/cmTC_7208b.dir/build.make CMakeFiles/cmTC_7208b.dir/build +Run Build Command:"/usr/bin/make" "cmTC_ad0d8/fast" +/usr/bin/make -f CMakeFiles/cmTC_ad0d8.dir/build.make CMakeFiles/cmTC_ad0d8.dir/build make[1]: Entering directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' -Building CXX object CMakeFiles/cmTC_7208b.dir/CMakeCXXCompilerABI.cpp.o -/usr/bin/arm-none-eabi-g++ -o CMakeFiles/cmTC_7208b.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.13/Modules/CMakeCXXCompilerABI.cpp -Linking CXX static library libcmTC_7208b.a -/usr/bin/cmake -P CMakeFiles/cmTC_7208b.dir/cmake_clean_target.cmake -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7208b.dir/link.txt --verbose=1 -/usr/bin/arm-none-eabi-ar qc libcmTC_7208b.a CMakeFiles/cmTC_7208b.dir/CMakeCXXCompilerABI.cpp.o -/usr/bin/arm-none-eabi-ranlib libcmTC_7208b.a +Building CXX object CMakeFiles/cmTC_ad0d8.dir/CMakeCXXCompilerABI.cpp.o +/usr/bin/arm-none-eabi-g++ -o CMakeFiles/cmTC_ad0d8.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.13/Modules/CMakeCXXCompilerABI.cpp +Linking CXX static library libcmTC_ad0d8.a +/usr/bin/cmake -P CMakeFiles/cmTC_ad0d8.dir/cmake_clean_target.cmake +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ad0d8.dir/link.txt --verbose=1 +/usr/bin/arm-none-eabi-ar qc libcmTC_ad0d8.a CMakeFiles/cmTC_ad0d8.dir/CMakeCXXCompilerABI.cpp.o +/usr/bin/arm-none-eabi-ranlib libcmTC_ad0d8.a make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' @@ -186,16 +186,16 @@ Parsed CXX implicit link information from above output: link line regex: [^( *|.*[/\])(arm-none-eabi-ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] ignore line: [Change Dir: /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp] ignore line: [] - ignore line: [Run Build Command:"/usr/bin/make" "cmTC_7208b/fast"] - ignore line: [/usr/bin/make -f CMakeFiles/cmTC_7208b.dir/build.make CMakeFiles/cmTC_7208b.dir/build] + ignore line: [Run Build Command:"/usr/bin/make" "cmTC_ad0d8/fast"] + ignore line: [/usr/bin/make -f CMakeFiles/cmTC_ad0d8.dir/build.make CMakeFiles/cmTC_ad0d8.dir/build] ignore line: [make[1]: Entering directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp'] - ignore line: [Building CXX object CMakeFiles/cmTC_7208b.dir/CMakeCXXCompilerABI.cpp.o] - ignore line: [/usr/bin/arm-none-eabi-g++ -o CMakeFiles/cmTC_7208b.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.13/Modules/CMakeCXXCompilerABI.cpp] - ignore line: [Linking CXX static library libcmTC_7208b.a] - ignore line: [/usr/bin/cmake -P CMakeFiles/cmTC_7208b.dir/cmake_clean_target.cmake] - ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7208b.dir/link.txt --verbose=1] - ignore line: [/usr/bin/arm-none-eabi-ar qc libcmTC_7208b.a CMakeFiles/cmTC_7208b.dir/CMakeCXXCompilerABI.cpp.o] - ignore line: [/usr/bin/arm-none-eabi-ranlib libcmTC_7208b.a] + ignore line: [Building CXX object CMakeFiles/cmTC_ad0d8.dir/CMakeCXXCompilerABI.cpp.o] + ignore line: [/usr/bin/arm-none-eabi-g++ -o CMakeFiles/cmTC_ad0d8.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.13/Modules/CMakeCXXCompilerABI.cpp] + ignore line: [Linking CXX static library libcmTC_ad0d8.a] + ignore line: [/usr/bin/cmake -P CMakeFiles/cmTC_ad0d8.dir/cmake_clean_target.cmake] + ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ad0d8.dir/link.txt --verbose=1] + ignore line: [/usr/bin/arm-none-eabi-ar qc libcmTC_ad0d8.a CMakeFiles/cmTC_ad0d8.dir/CMakeCXXCompilerABI.cpp.o] + ignore line: [/usr/bin/arm-none-eabi-ranlib libcmTC_ad0d8.a] ignore line: [make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp'] ignore line: [] implicit libs: [] @@ -208,16 +208,16 @@ Parsed CXX implicit link information from above output: Detecting CXX [-std=c++1z] compiler features compiled with the following output: Change Dir: /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp -Run Build Command:"/usr/bin/make" "cmTC_3f242/fast" -/usr/bin/make -f CMakeFiles/cmTC_3f242.dir/build.make CMakeFiles/cmTC_3f242.dir/build +Run Build Command:"/usr/bin/make" "cmTC_00a4f/fast" +/usr/bin/make -f CMakeFiles/cmTC_00a4f.dir/build.make CMakeFiles/cmTC_00a4f.dir/build make[1]: Entering directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' -Building CXX object CMakeFiles/cmTC_3f242.dir/feature_tests.cxx.o -/usr/bin/arm-none-eabi-g++ -std=c++1z -o CMakeFiles/cmTC_3f242.dir/feature_tests.cxx.o -c /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.cxx -Linking CXX static library libcmTC_3f242.a -/usr/bin/cmake -P CMakeFiles/cmTC_3f242.dir/cmake_clean_target.cmake -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3f242.dir/link.txt --verbose=1 -/usr/bin/arm-none-eabi-ar qc libcmTC_3f242.a CMakeFiles/cmTC_3f242.dir/feature_tests.cxx.o -/usr/bin/arm-none-eabi-ranlib libcmTC_3f242.a +Building CXX object CMakeFiles/cmTC_00a4f.dir/feature_tests.cxx.o +/usr/bin/arm-none-eabi-g++ -std=c++1z -o CMakeFiles/cmTC_00a4f.dir/feature_tests.cxx.o -c /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.cxx +Linking CXX static library libcmTC_00a4f.a +/usr/bin/cmake -P CMakeFiles/cmTC_00a4f.dir/cmake_clean_target.cmake +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_00a4f.dir/link.txt --verbose=1 +/usr/bin/arm-none-eabi-ar qc libcmTC_00a4f.a CMakeFiles/cmTC_00a4f.dir/feature_tests.cxx.o +/usr/bin/arm-none-eabi-ranlib libcmTC_00a4f.a make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' @@ -283,16 +283,16 @@ make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFi Detecting CXX [-std=c++14] compiler features compiled with the following output: Change Dir: /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp -Run Build Command:"/usr/bin/make" "cmTC_e166c/fast" -/usr/bin/make -f CMakeFiles/cmTC_e166c.dir/build.make CMakeFiles/cmTC_e166c.dir/build +Run Build Command:"/usr/bin/make" "cmTC_03870/fast" +/usr/bin/make -f CMakeFiles/cmTC_03870.dir/build.make CMakeFiles/cmTC_03870.dir/build make[1]: Entering directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' -Building CXX object CMakeFiles/cmTC_e166c.dir/feature_tests.cxx.o -/usr/bin/arm-none-eabi-g++ -std=c++14 -o CMakeFiles/cmTC_e166c.dir/feature_tests.cxx.o -c /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.cxx -Linking CXX static library libcmTC_e166c.a -/usr/bin/cmake -P CMakeFiles/cmTC_e166c.dir/cmake_clean_target.cmake -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e166c.dir/link.txt --verbose=1 -/usr/bin/arm-none-eabi-ar qc libcmTC_e166c.a CMakeFiles/cmTC_e166c.dir/feature_tests.cxx.o -/usr/bin/arm-none-eabi-ranlib libcmTC_e166c.a +Building CXX object CMakeFiles/cmTC_03870.dir/feature_tests.cxx.o +/usr/bin/arm-none-eabi-g++ -std=c++14 -o CMakeFiles/cmTC_03870.dir/feature_tests.cxx.o -c /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.cxx +Linking CXX static library libcmTC_03870.a +/usr/bin/cmake -P CMakeFiles/cmTC_03870.dir/cmake_clean_target.cmake +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_03870.dir/link.txt --verbose=1 +/usr/bin/arm-none-eabi-ar qc libcmTC_03870.a CMakeFiles/cmTC_03870.dir/feature_tests.cxx.o +/usr/bin/arm-none-eabi-ranlib libcmTC_03870.a make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' @@ -358,16 +358,16 @@ make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFi Detecting CXX [-std=c++11] compiler features compiled with the following output: Change Dir: /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp -Run Build Command:"/usr/bin/make" "cmTC_042e6/fast" -/usr/bin/make -f CMakeFiles/cmTC_042e6.dir/build.make CMakeFiles/cmTC_042e6.dir/build +Run Build Command:"/usr/bin/make" "cmTC_0e3e3/fast" +/usr/bin/make -f CMakeFiles/cmTC_0e3e3.dir/build.make CMakeFiles/cmTC_0e3e3.dir/build make[1]: Entering directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' -Building CXX object CMakeFiles/cmTC_042e6.dir/feature_tests.cxx.o -/usr/bin/arm-none-eabi-g++ -std=c++11 -o CMakeFiles/cmTC_042e6.dir/feature_tests.cxx.o -c /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.cxx -Linking CXX static library libcmTC_042e6.a -/usr/bin/cmake -P CMakeFiles/cmTC_042e6.dir/cmake_clean_target.cmake -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_042e6.dir/link.txt --verbose=1 -/usr/bin/arm-none-eabi-ar qc libcmTC_042e6.a CMakeFiles/cmTC_042e6.dir/feature_tests.cxx.o -/usr/bin/arm-none-eabi-ranlib libcmTC_042e6.a +Building CXX object CMakeFiles/cmTC_0e3e3.dir/feature_tests.cxx.o +/usr/bin/arm-none-eabi-g++ -std=c++11 -o CMakeFiles/cmTC_0e3e3.dir/feature_tests.cxx.o -c /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.cxx +Linking CXX static library libcmTC_0e3e3.a +/usr/bin/cmake -P CMakeFiles/cmTC_0e3e3.dir/cmake_clean_target.cmake +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_0e3e3.dir/link.txt --verbose=1 +/usr/bin/arm-none-eabi-ar qc libcmTC_0e3e3.a CMakeFiles/cmTC_0e3e3.dir/feature_tests.cxx.o +/usr/bin/arm-none-eabi-ranlib libcmTC_0e3e3.a make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' @@ -433,16 +433,16 @@ make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFi Detecting CXX [-std=c++98] compiler features compiled with the following output: Change Dir: /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp -Run Build Command:"/usr/bin/make" "cmTC_af77a/fast" -/usr/bin/make -f CMakeFiles/cmTC_af77a.dir/build.make CMakeFiles/cmTC_af77a.dir/build +Run Build Command:"/usr/bin/make" "cmTC_340ec/fast" +/usr/bin/make -f CMakeFiles/cmTC_340ec.dir/build.make CMakeFiles/cmTC_340ec.dir/build make[1]: Entering directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' -Building CXX object CMakeFiles/cmTC_af77a.dir/feature_tests.cxx.o -/usr/bin/arm-none-eabi-g++ -std=c++98 -o CMakeFiles/cmTC_af77a.dir/feature_tests.cxx.o -c /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.cxx -Linking CXX static library libcmTC_af77a.a -/usr/bin/cmake -P CMakeFiles/cmTC_af77a.dir/cmake_clean_target.cmake -/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_af77a.dir/link.txt --verbose=1 -/usr/bin/arm-none-eabi-ar qc libcmTC_af77a.a CMakeFiles/cmTC_af77a.dir/feature_tests.cxx.o -/usr/bin/arm-none-eabi-ranlib libcmTC_af77a.a +Building CXX object CMakeFiles/cmTC_340ec.dir/feature_tests.cxx.o +/usr/bin/arm-none-eabi-g++ -std=c++98 -o CMakeFiles/cmTC_340ec.dir/feature_tests.cxx.o -c /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.cxx +Linking CXX static library libcmTC_340ec.a +/usr/bin/cmake -P CMakeFiles/cmTC_340ec.dir/cmake_clean_target.cmake +/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_340ec.dir/link.txt --verbose=1 +/usr/bin/arm-none-eabi-ar qc libcmTC_340ec.a CMakeFiles/cmTC_340ec.dir/feature_tests.cxx.o +/usr/bin/arm-none-eabi-ranlib libcmTC_340ec.a make[1]: Leaving directory '/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/CMakeTmp' diff --git a/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.bin b/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.bin index f02def4..27e6c7f 100644 Binary files a/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.bin and b/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.bin differ diff --git a/bsl/cmakeLowLayer/build/CMakeFiles/refOvenTest.out.dir/flags.make b/bsl/cmakeLowLayer/build/CMakeFiles/refOvenTest.out.dir/flags.make index fbfb996..e5a54ce 100644 --- a/bsl/cmakeLowLayer/build/CMakeFiles/refOvenTest.out.dir/flags.make +++ b/bsl/cmakeLowLayer/build/CMakeFiles/refOvenTest.out.dir/flags.make @@ -3,13 +3,13 @@ # compile ASM with /usr/bin/arm-none-eabi-gcc # compile C with /usr/bin/arm-none-eabi-gcc -ASM_FLAGS = -x assembler-with-cpp -x assembler-with-cpp -mcpu=cortex-m0 -mthumb -Wall -fdata-sections -ffunction-sections +ASM_FLAGS = -x assembler-with-cpp -mcpu=cortex-m0 -mthumb -Wall -fdata-sections -fdiagnostics-color=always -ffunction-sections ASM_DEFINES = -DDATA_CACHE_ENABLE=0 -DHSE_STARTUP_TIMEOUT=100 -DHSE_VALUE=8000000 -DHSI_VALUE=8000000 -DINSTRUCTION_CACHE_ENABLE=0 -DLSE_STARTUP_TIMEOUT=5000 -DLSE_VALUE=32768 -DLSI_VALUE=40000 -DPREFETCH_ENABLE=1 -DSTM32F042x6 -DUSE_FULL_LL_DRIVER -DVDD_VALUE=3300 ASM_INCLUDES = -I/home/key/github/KED/bsl/cmakeLowLayer/Inc -I/home/key/github/KED/bsl/cmakeLowLayer/Drivers/STM32F0xx_HAL_Driver/Inc -I/home/key/github/KED/bsl/cmakeLowLayer/Drivers/CMSIS/Device/ST/STM32F0xx/Include -I/home/key/github/KED/bsl/cmakeLowLayer/Drivers/CMSIS/Include -C_FLAGS = -mcpu=cortex-m0 -mthumb -Wall -fdata-sections -ffunction-sections +C_FLAGS = -mcpu=cortex-m0 -mthumb -Wall -fdata-sections -fdiagnostics-color=always -ffunction-sections C_DEFINES = -DDATA_CACHE_ENABLE=0 -DHSE_STARTUP_TIMEOUT=100 -DHSE_VALUE=8000000 -DHSI_VALUE=8000000 -DINSTRUCTION_CACHE_ENABLE=0 -DLSE_STARTUP_TIMEOUT=5000 -DLSE_VALUE=32768 -DLSI_VALUE=40000 -DPREFETCH_ENABLE=1 -DSTM32F042x6 -DUSE_FULL_LL_DRIVER -DVDD_VALUE=3300