From 750e5b354ee67afdf83c2a0e4759d0df166e049b Mon Sep 17 00:00:00 2001 From: atomega Date: Tue, 5 Oct 2021 17:50:20 +0200 Subject: [PATCH] I was able to add a cpp to the project and link it --- bsl/cmakeLowLayer/CMakeLists.txt | 19 +- bsl/cmakeLowLayer/Src/main.c | 2 +- bsl/cmakeLowLayer/build/CMakeCache.txt | 3 + .../3.13.4/CMakeDetermineCompilerABI_C.bin | Bin 1426 -> 1426 bytes .../3.13.4/CMakeDetermineCompilerABI_CXX.bin | Bin 1630 -> 1630 bytes .../build/CMakeFiles/CMakeOutput.log | 234 +++++++++--------- .../build/CMakeFiles/Makefile.cmake | 1 + bsl/cmakeLowLayer/build/CMakeFiles/Makefile2 | 44 +++- .../build/CMakeFiles/TargetDirectories.txt | 1 + .../assembly_functions.dir/build.make | 3 - .../CMakeFiles/c_functions.dir/build.make | 3 - .../cpp_functions.dir/CXX.includecache | 168 +++++++++++++ .../cpp_functions.dir/DependInfo.cmake | 42 ++++ .../CMakeFiles/cpp_functions.dir/build.make | 99 ++++++++ .../cpp_functions.dir/cmake_clean.cmake | 10 + .../cmake_clean_target.cmake | 3 + .../cpp_functions.dir/depend.internal | 28 +++ .../CMakeFiles/cpp_functions.dir/depend.make | 28 +++ .../CMakeFiles/cpp_functions.dir/flags.make | 10 + .../CMakeFiles/cpp_functions.dir/link.txt | 2 + .../cpp_functions.dir/progress.make | 3 + .../build/CMakeFiles/feature_tests.bin | Bin 3476 -> 3476 bytes .../build/CMakeFiles/progress.marks | 2 +- .../CMakeFiles/refOvenTest.out.dir/build.make | 3 - .../refOvenTest.out.dir/progress.make | 4 +- bsl/cmakeLowLayer/build/Makefile | 47 +++- bsl/cmakeLowLayer/build/refOvenTest.bin | Bin 2768 -> 2764 bytes bsl/cmakeLowLayer/cppSrc/CMakeLists.txt | 36 +++ bsl/cmakeLowLayer/cppSrc/transfer.cpp | 7 + bsl/cmakeLowLayer/cppSrc/transfer.hpp | 8 + bsl/cmakeLowLayer/grep.txt | 40 +++ 31 files changed, 709 insertions(+), 141 deletions(-) create mode 100644 bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/CXX.includecache create mode 100644 bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/DependInfo.cmake create mode 100644 bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/build.make create mode 100644 bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/cmake_clean.cmake create mode 100644 bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/cmake_clean_target.cmake create mode 100644 bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/depend.internal create mode 100644 bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/depend.make create mode 100644 bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/flags.make create mode 100644 bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/link.txt create mode 100644 bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/progress.make create mode 100644 bsl/cmakeLowLayer/cppSrc/CMakeLists.txt create mode 100644 bsl/cmakeLowLayer/cppSrc/transfer.cpp create mode 100644 bsl/cmakeLowLayer/cppSrc/transfer.hpp create mode 100644 bsl/cmakeLowLayer/grep.txt diff --git a/bsl/cmakeLowLayer/CMakeLists.txt b/bsl/cmakeLowLayer/CMakeLists.txt index c6d8871..57f9e9e 100644 --- a/bsl/cmakeLowLayer/CMakeLists.txt +++ b/bsl/cmakeLowLayer/CMakeLists.txt @@ -17,7 +17,7 @@ project(refOvenTest ASM C CXX) # do this intead sf declaring languages in the be set(CMAKE_SYSTEM_NAME Generic) set(CMAKE_SYSTEM_PROCESSOR arm) set(CMAKE_CROSSCOMPILING TRUE) -set(CMAKE_VERBOSE_MAKEFILE on)#Shoul make print everythign ?? +set(CMAKE_VERBOSE_MAKEFILE off)#Shoul make print everythign ?? #################################################################################################### #VARIABLES : defined by user #################################################################################################### @@ -75,6 +75,11 @@ set (AS_INCLUDES ${C_INCLUDES}) set (AS_FLAGS -x assembler-with-cpp ${C_FLAGS}) set (AS_DEFS ${C_DEFS}) +set (CPP_SOURCES cppSrc/transfer.cpp) +set (CPP_INCLUDES cppSrc) +set (CPP_FLAGS ${C_FLAGS}) +set (CPP_DEFS ${C_DEFS}) + set(LINKER_FLAGS -mthumb -specs=nano.specs @@ -88,12 +93,19 @@ set(LINKER_FLAGS add_library(${AS_FUNC} STATIC ${AS_SOURCES}) target_compile_options(${AS_FUNC} PRIVATE ${AS_FLAGS}) target_compile_definitions(${AS_FUNC} PRIVATE ${AS_DEFS}) -#target_include_directories(${AS_FUNC} PRIVATE ${AS_INCLUDES}) add_library(${C_FUNC} STATIC ${C_SOURCES}) target_compile_options(${C_FUNC} PRIVATE ${C_FLAGS}) target_compile_definitions(${C_FUNC} PRIVATE ${C_DEFS}) -target_include_directories(${C_FUNC} PRIVATE ${C_INCLUDES}) +target_include_directories(${C_FUNC} PUBLIC ${C_INCLUDES}) + +add_library(${CPP_FUNC} ${CPP_SOURCES}) +target_compile_options(${CPP_FUNC} PRIVATE ${CPP_FLAGS}) +target_compile_definitions(${CPP_FUNC} PRIVATE ${CPP_DEFS}) +target_include_directories(${CPP_FUNC} PUBLIC ${CPP_INCLUDES}) + +target_link_libraries(${CPP_FUNC} ${C_FUNC}) + #################################################################################################### #COMPILATION #################################################################################################### @@ -129,6 +141,7 @@ add_custom_command(TARGET ${EXECUTABLE} #################################################################################################### #CUSTOM Comments from dev. #################################################################################################### +# Link For hheader dependency : https://stackoverflow.com/questions/11216408/cmake-dependencies-headers-between-apps-libraries-in-same-project #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 diff --git a/bsl/cmakeLowLayer/Src/main.c b/bsl/cmakeLowLayer/Src/main.c index 447ad68..4a558f2 100644 --- a/bsl/cmakeLowLayer/Src/main.c +++ b/bsl/cmakeLowLayer/Src/main.c @@ -101,7 +101,7 @@ int main(void) { /* USER CODE END WHILE */ LL_GPIO_TogglePin(LED_G_GPIO_Port,LED_G_Pin); - LL_mDelay(500); + LL_mDelay(100); /* USER CODE BEGIN 3 */ } /* USER CODE END 3 */ diff --git a/bsl/cmakeLowLayer/build/CMakeCache.txt b/bsl/cmakeLowLayer/build/CMakeCache.txt index 6d99b0e..b8c4bfd 100644 --- a/bsl/cmakeLowLayer/build/CMakeCache.txt +++ b/bsl/cmakeLowLayer/build/CMakeCache.txt @@ -214,6 +214,9 @@ CMAKE_STRIP:FILEPATH=/usr/bin/arm-none-eabi-strip // Studio IDE projects all commands are done without /nologo. CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE +//Dependencies for the target +cpp_functions_LIB_DEPENDS:STATIC=general;c_functions; + //Value Computed by CMake refOvenTest_BINARY_DIR:STATIC=/home/key/github/KED/bsl/cmakeLowLayer/build 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 0f5997ca96e99439fb4053c26eeb512013088490..f35b8d232c39c8ecb51d411b78c4116ff63ed1c2 100644 GIT binary patch delta 23 bcmbQlJ&AjQ9E*jexy3}Kbzpkqm3=G#P+]+)([">]) + +#IncludeRegexScan: ^.*$ + +#IncludeRegexComplain: ^$ + +#IncludeRegexTransform: + +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f042x6.h +core_cm0.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/core_cm0.h +system_stm32f0xx.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h +stdint.h +- + +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h +stm32f030x6.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x6.h +stm32f030x8.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x8.h +stm32f031x6.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f031x6.h +stm32f038xx.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f038xx.h +stm32f042x6.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f042x6.h +stm32f048xx.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f048xx.h +stm32f051x8.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f051x8.h +stm32f058xx.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f058xx.h +stm32f070x6.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f070x6.h +stm32f070xb.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f070xb.h +stm32f071xb.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f071xb.h +stm32f072xb.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h +stm32f078xx.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f078xx.h +stm32f091xc.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f091xc.h +stm32f098xx.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f098xx.h +stm32f030xc.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030xc.h +stm32f0xx_hal.h +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx_hal.h + +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h + +../Drivers/CMSIS/Include/cmsis_armcc.h + +../Drivers/CMSIS/Include/cmsis_armclang.h +arm_compat.h +- + +../Drivers/CMSIS/Include/cmsis_compiler.h +stdint.h +- +cmsis_armcc.h +../Drivers/CMSIS/Include/cmsis_armcc.h +cmsis_armclang.h +../Drivers/CMSIS/Include/cmsis_armclang.h +cmsis_gcc.h +../Drivers/CMSIS/Include/cmsis_gcc.h +cmsis_iccarm.h +- +cmsis_ccs.h +- +cmsis_csm.h +- + +../Drivers/CMSIS/Include/cmsis_gcc.h + +../Drivers/CMSIS/Include/cmsis_iccarm.h +iccarm_builtin.h +../Drivers/CMSIS/Include/iccarm_builtin.h +intrinsics.h +- + +../Drivers/CMSIS/Include/cmsis_version.h + +../Drivers/CMSIS/Include/core_cm0.h +stdint.h +- +cmsis_version.h +../Drivers/CMSIS/Include/cmsis_version.h +cmsis_compiler.h +../Drivers/CMSIS/Include/cmsis_compiler.h + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_bus.h +stm32f0xx.h +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx.h + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_cortex.h +stm32f0xx.h +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx.h + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_crs.h +stm32f0xx.h +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx.h + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_dma.h +stm32f0xx.h +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx.h + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_exti.h +stm32f0xx.h +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx.h + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_gpio.h +stm32f0xx.h +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx.h + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_pwr.h +stm32f0xx.h +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx.h + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_rcc.h +stm32f0xx.h +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx.h + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_system.h +stm32f0xx.h +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx.h + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_utils.h +stm32f0xx.h +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx.h + +../Inc/main.h +stm32f0xx_ll_crs.h +../Inc/stm32f0xx_ll_crs.h +stm32f0xx_ll_rcc.h +../Inc/stm32f0xx_ll_rcc.h +stm32f0xx_ll_bus.h +../Inc/stm32f0xx_ll_bus.h +stm32f0xx_ll_system.h +../Inc/stm32f0xx_ll_system.h +stm32f0xx_ll_exti.h +../Inc/stm32f0xx_ll_exti.h +stm32f0xx_ll_cortex.h +../Inc/stm32f0xx_ll_cortex.h +stm32f0xx_ll_utils.h +../Inc/stm32f0xx_ll_utils.h +stm32f0xx_ll_pwr.h +../Inc/stm32f0xx_ll_pwr.h +stm32f0xx_ll_dma.h +../Inc/stm32f0xx_ll_dma.h +stm32f0xx_ll_gpio.h +../Inc/stm32f0xx_ll_gpio.h +stm32_assert.h +../Inc/stm32_assert.h + +../Inc/stm32_assert.h + +/home/key/github/KED/bsl/cmakeLowLayer/cppSrc/transfer.cpp +transfer.hpp +/home/key/github/KED/bsl/cmakeLowLayer/cppSrc/transfer.hpp + +/home/key/github/KED/bsl/cmakeLowLayer/cppSrc/transfer.hpp +main.h +/home/key/github/KED/bsl/cmakeLowLayer/cppSrc/main.h + diff --git a/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/DependInfo.cmake b/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/DependInfo.cmake new file mode 100644 index 0000000..ce36c17 --- /dev/null +++ b/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/DependInfo.cmake @@ -0,0 +1,42 @@ +# The set of languages for which implicit dependencies are needed: +set(CMAKE_DEPENDS_LANGUAGES + "CXX" + ) +# The set of files for implicit dependencies of each language: +set(CMAKE_DEPENDS_CHECK_CXX + "/home/key/github/KED/bsl/cmakeLowLayer/cppSrc/transfer.cpp" "/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o" + ) +set(CMAKE_CXX_COMPILER_ID "GNU") + +# Preprocessor definitions for this target. +set(CMAKE_TARGET_DEFINITIONS_CXX + "DATA_CACHE_ENABLE=0" + "HSE_STARTUP_TIMEOUT=100" + "HSE_VALUE=8000000" + "HSI_VALUE=8000000" + "INSTRUCTION_CACHE_ENABLE=0" + "LSE_STARTUP_TIMEOUT=5000" + "LSE_VALUE=32768" + "LSI_VALUE=40000" + "PREFETCH_ENABLE=1" + "STM32F042x6" + "USE_FULL_LL_DRIVER" + "VDD_VALUE=3300" + ) + +# The include file search paths: +set(CMAKE_CXX_TARGET_INCLUDE_PATH + "../cppSrc" + "../Inc" + "../Drivers/STM32F0xx_HAL_Driver/Inc" + "../Drivers/CMSIS/Device/ST/STM32F0xx/Include" + "../Drivers/CMSIS/Include" + ) + +# Targets to which this target links. +set(CMAKE_TARGET_LINKED_INFO_FILES + "/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/c_functions.dir/DependInfo.cmake" + ) + +# Fortran module output directory. +set(CMAKE_Fortran_TARGET_MODULE_DIR "") diff --git a/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/build.make b/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/build.make new file mode 100644 index 0000000..d88505e --- /dev/null +++ b/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/build.make @@ -0,0 +1,99 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.13 + +# Delete rule output on recipe failure. +.DELETE_ON_ERROR: + + +#============================================================================= +# Special targets provided by cmake. + +# Disable implicit rules so canonical targets will work. +.SUFFIXES: + + +# Remove some rules from gmake that .SUFFIXES does not remove. +SUFFIXES = + +.SUFFIXES: .hpux_make_needs_suffix_list + + +# Suppress display of executed commands. +$(VERBOSE).SILENT: + + +# A target that is always out of date. +cmake_force: + +.PHONY : cmake_force + +#============================================================================= +# Set environment variables for the build. + +# The shell in which to execute make rules. +SHELL = /bin/sh + +# The CMake executable. +CMAKE_COMMAND = /usr/bin/cmake + +# The command to remove a file. +RM = /usr/bin/cmake -E remove -f + +# Escaping for special characters. +EQUALS = = + +# The top-level source directory on which CMake was run. +CMAKE_SOURCE_DIR = /home/key/github/KED/bsl/cmakeLowLayer + +# The top-level build directory on which CMake was run. +CMAKE_BINARY_DIR = /home/key/github/KED/bsl/cmakeLowLayer/build + +# Include any dependencies generated for this target. +include CMakeFiles/cpp_functions.dir/depend.make + +# Include the progress variables for this target. +include CMakeFiles/cpp_functions.dir/progress.make + +# Include the compile flags for this target's objects. +include CMakeFiles/cpp_functions.dir/flags.make + +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: CMakeFiles/cpp_functions.dir/flags.make +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../cppSrc/transfer.cpp + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o" + /usr/bin/arm-none-eabi-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o -c /home/key/github/KED/bsl/cmakeLowLayer/cppSrc/transfer.cpp + +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.i" + /usr/bin/arm-none-eabi-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/key/github/KED/bsl/cmakeLowLayer/cppSrc/transfer.cpp > CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.i + +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.s" + /usr/bin/arm-none-eabi-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/key/github/KED/bsl/cmakeLowLayer/cppSrc/transfer.cpp -o CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.s + +# Object files for target cpp_functions +cpp_functions_OBJECTS = \ +"CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o" + +# External object files for target cpp_functions +cpp_functions_EXTERNAL_OBJECTS = + +libcpp_functions.a: CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o +libcpp_functions.a: CMakeFiles/cpp_functions.dir/build.make +libcpp_functions.a: CMakeFiles/cpp_functions.dir/link.txt + @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Linking CXX static library libcpp_functions.a" + $(CMAKE_COMMAND) -P CMakeFiles/cpp_functions.dir/cmake_clean_target.cmake + $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/cpp_functions.dir/link.txt --verbose=$(VERBOSE) + +# Rule to build all files generated by this target. +CMakeFiles/cpp_functions.dir/build: libcpp_functions.a + +.PHONY : CMakeFiles/cpp_functions.dir/build + +CMakeFiles/cpp_functions.dir/clean: + $(CMAKE_COMMAND) -P CMakeFiles/cpp_functions.dir/cmake_clean.cmake +.PHONY : CMakeFiles/cpp_functions.dir/clean + +CMakeFiles/cpp_functions.dir/depend: + cd /home/key/github/KED/bsl/cmakeLowLayer/build && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/key/github/KED/bsl/cmakeLowLayer /home/key/github/KED/bsl/cmakeLowLayer /home/key/github/KED/bsl/cmakeLowLayer/build /home/key/github/KED/bsl/cmakeLowLayer/build /home/key/github/KED/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/DependInfo.cmake --color=$(COLOR) +.PHONY : CMakeFiles/cpp_functions.dir/depend + diff --git a/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/cmake_clean.cmake b/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/cmake_clean.cmake new file mode 100644 index 0000000..27742de --- /dev/null +++ b/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/cmake_clean.cmake @@ -0,0 +1,10 @@ +file(REMOVE_RECURSE + "CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o" + "libcpp_functions.pdb" + "libcpp_functions.a" +) + +# Per-language clean rules from dependency scanning. +foreach(lang CXX) + include(CMakeFiles/cpp_functions.dir/cmake_clean_${lang}.cmake OPTIONAL) +endforeach() diff --git a/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/cmake_clean_target.cmake b/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/cmake_clean_target.cmake new file mode 100644 index 0000000..b0696f6 --- /dev/null +++ b/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/cmake_clean_target.cmake @@ -0,0 +1,3 @@ +file(REMOVE_RECURSE + "libcpp_functions.a" +) diff --git a/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/depend.internal b/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/depend.internal new file mode 100644 index 0000000..f6ed040 --- /dev/null +++ b/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/depend.internal @@ -0,0 +1,28 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.13 + +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o + ../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f042x6.h + ../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h + ../Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h + ../Drivers/CMSIS/Include/cmsis_armcc.h + ../Drivers/CMSIS/Include/cmsis_armclang.h + ../Drivers/CMSIS/Include/cmsis_compiler.h + ../Drivers/CMSIS/Include/cmsis_gcc.h + ../Drivers/CMSIS/Include/cmsis_iccarm.h + ../Drivers/CMSIS/Include/cmsis_version.h + ../Drivers/CMSIS/Include/core_cm0.h + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_bus.h + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_cortex.h + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_crs.h + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_dma.h + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_exti.h + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_gpio.h + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_pwr.h + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_rcc.h + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_system.h + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_utils.h + ../Inc/main.h + ../Inc/stm32_assert.h + /home/key/github/KED/bsl/cmakeLowLayer/cppSrc/transfer.cpp + /home/key/github/KED/bsl/cmakeLowLayer/cppSrc/transfer.hpp diff --git a/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/depend.make b/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/depend.make new file mode 100644 index 0000000..48e0329 --- /dev/null +++ b/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/depend.make @@ -0,0 +1,28 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.13 + +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f042x6.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/CMSIS/Include/cmsis_armcc.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/CMSIS/Include/cmsis_armclang.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/CMSIS/Include/cmsis_compiler.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/CMSIS/Include/cmsis_gcc.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/CMSIS/Include/cmsis_iccarm.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/CMSIS/Include/cmsis_version.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/CMSIS/Include/core_cm0.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_bus.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_cortex.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_crs.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_dma.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_exti.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_gpio.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_pwr.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_rcc.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_system.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_ll_utils.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Inc/main.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../Inc/stm32_assert.h +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../cppSrc/transfer.cpp +CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o: ../cppSrc/transfer.hpp + diff --git a/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/flags.make b/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/flags.make new file mode 100644 index 0000000..f9c8a66 --- /dev/null +++ b/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/flags.make @@ -0,0 +1,10 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Unix Makefiles" Generator, CMake Version 3.13 + +# compile CXX with /usr/bin/arm-none-eabi-g++ +CXX_FLAGS = -mcpu=cortex-m0 -mthumb -Wall -fdata-sections -fdiagnostics-color=always -ffunction-sections + +CXX_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 + +CXX_INCLUDES = -I/home/key/github/KED/bsl/cmakeLowLayer/cppSrc -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 + diff --git a/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/link.txt b/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/link.txt new file mode 100644 index 0000000..26b573a --- /dev/null +++ b/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/link.txt @@ -0,0 +1,2 @@ +/usr/bin/arm-none-eabi-ar qc libcpp_functions.a CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o +/usr/bin/arm-none-eabi-ranlib libcpp_functions.a diff --git a/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/progress.make b/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/progress.make new file mode 100644 index 0000000..596289c --- /dev/null +++ b/bsl/cmakeLowLayer/build/CMakeFiles/cpp_functions.dir/progress.make @@ -0,0 +1,3 @@ +CMAKE_PROGRESS_1 = 11 +CMAKE_PROGRESS_2 = 12 + diff --git a/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.bin b/bsl/cmakeLowLayer/build/CMakeFiles/feature_tests.bin index 59ad8a32eb5cef75d77f72b875d318cea6d81e1c..e06251aaa09769e2b71bba8377c9bc3301158b44 100644 GIT binary patch delta 23 bcmbOtJw^;E6zyZTYHqT|;$r8`^ zgW-eC4;F6@MG1!g-_QR~QDFFR<;S<@2izD~7(5!bGOTA%`2T(S{{wFSzpwbuEcg53 z|L>Rnfp~ZSF*7h~|GFpulz;vYq)OsHh|~m=pTKIEC+}o46pi`YpnRJNWWMx&eyB|q glmD|dvcCQE|9j-*R(5s96O-2hNz=_&*?%(u01>Ev+W-In delta 387 zcmX>jdO=ixL4rZSlAVELClpT^;K8zyZT2HqT|;$&xJa zgW-eS4_0puMG1!g-_QU5r5p|PIKzi4KfXLa;Ksnh;L)&^VLgMw|L;@(A8`Bsec69z zx!)K6f4}e##Jl~EnSoLJ*F^!K{L_CRRbu}^q&k@V09L~|c`KWtXw=^Z<=adkJ0$<} jLv1UY{F|+j_4S|s-@_+2va2(mnY:-O -g -gdwarf-2>) + +set(CPP_DEFS + -DUSE_FULL_LL_DRIVER + -DSTM32F042x6 + -DHSE_VALUE=8000000 + -DHSE_STARTUP_TIMEOUT=100 + -DLSE_STARTUP_TIMEOUT=5000 + -DLSE_VALUE=32768 + -DHSI_VALUE=8000000 + -DLSI_VALUE=40000 + -DVDD_VALUE=3300 + -DPREFETCH_ENABLE=1 + -DINSTRUCTION_CACHE_ENABLE=0 + -DDATA_CACHE_ENABLE=0) + +set (CPP_SOURCES transfer.cpp) +set (CPP_INCLUDES .) + +add_library(${PROJECT_NAME} ${CPP_SOURCES}) +target_compile_options(${PROJECT_NAME} PUBLIC ${CPP_FLAGS}) +target_compile_definitions(${PROJECT_NAME} PUBLIC ${CPP_DEFS}) +target_include_directories(${PROJECT_NAME} PUBLIC ${CPP_INCLUDES}) +add_library(sub::stmSources ALIAS ${PROJECT_NAME}) + diff --git a/bsl/cmakeLowLayer/cppSrc/transfer.cpp b/bsl/cmakeLowLayer/cppSrc/transfer.cpp new file mode 100644 index 0000000..d27120b --- /dev/null +++ b/bsl/cmakeLowLayer/cppSrc/transfer.cpp @@ -0,0 +1,7 @@ +#include "transfer.hpp" + +int cppHook() +{ + return 1; +} + diff --git a/bsl/cmakeLowLayer/cppSrc/transfer.hpp b/bsl/cmakeLowLayer/cppSrc/transfer.hpp new file mode 100644 index 0000000..90ec074 --- /dev/null +++ b/bsl/cmakeLowLayer/cppSrc/transfer.hpp @@ -0,0 +1,8 @@ +#ifndef TRANSFER_H +#define TRANSFER_H +#include "main.h" + +int cppHook(); + +#endif /* TRASNFER_H */ + diff --git a/bsl/cmakeLowLayer/grep.txt b/bsl/cmakeLowLayer/grep.txt new file mode 100644 index 0000000..9acc96d --- /dev/null +++ b/bsl/cmakeLowLayer/grep.txt @@ -0,0 +1,40 @@ +Cmake build dorectory exists +-- The ASM compiler identification is GNU +-- Found assembler: /usr/bin/arm-none-eabi-gcc +-- The C compiler identification is GNU 7.3.1 +-- The CXX compiler identification is GNU 7.3.1 +-- Check for working C compiler: /usr/bin/arm-none-eabi-gcc +-- Check for working C compiler: /usr/bin/arm-none-eabi-gcc -- works +-- Detecting C compiler ABI info +-- Detecting C compiler ABI info - done +-- Detecting C compile features +-- Detecting C compile features - done +-- Check for working CXX compiler: /usr/bin/arm-none-eabi-g++ +-- Check for working CXX compiler: /usr/bin/arm-none-eabi-g++ -- works +-- Detecting CXX compiler ABI info +-- Detecting CXX compiler ABI info - done +-- Detecting CXX compile features +-- Detecting CXX compile features - done +-- Configuring done +-- Generating done +-- Build files have been written to: /home/key/github/KED/bsl/cmakeLowLayer/build +Scanning dependencies of target assembly_functions +Scanning dependencies of target cpp_functions +Scanning dependencies of target c_functions +[ 7%] Building ASM object CMakeFiles/assembly_functions.dir/startup/startup_stm32f042x6.s.o +[ 14%] Building CXX object CMakeFiles/cpp_functions.dir/cppSrc/transfer.cpp.o +[ 21%] Building C object CMakeFiles/c_functions.dir/Src/stm32f0xx_it.c.o +[ 28%] Building C object CMakeFiles/c_functions.dir/Src/system_stm32f0xx.c.o +[ 35%] Linking ASM static library libassembly_functions.a +[ 35%] Built target assembly_functions +[ 42%] Building C object CMakeFiles/c_functions.dir/Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_exti.c.o +[ 50%] Building C object CMakeFiles/c_functions.dir/Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_rcc.c.o +[ 57%] Linking CXX static library libcpp_functions.a +[ 64%] Building C object CMakeFiles/c_functions.dir/Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_utils.c.o +[ 71%] Building C object CMakeFiles/c_functions.dir/Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_gpio.c.o +[ 71%] Built target cpp_functions +[ 78%] Building C object CMakeFiles/c_functions.dir/Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_ll_pwr.c.o +[ 85%] Linking C static library libc_functions.a +[ 85%] Built target c_functions +Scanning dependencies of target refOvenTest.out +[ 92%] Building C object CMakeFiles/refOvenTest.out.dir/Src/main.c.o