2022-02-28 09:57 PM
2022-03-02 09:12 AM
BTW this ioc is setup by touch gfx. When I open an ide project directly and do the same thing it doesn't give the error.
2022-03-02 09:23 AM
2022-03-02 08:37 PM
make -j8 all
arm-none-eabi-g++ -o "STM32F469I-DISCO.elf" @"objects.list" -l:libtouchgfx-float-abi-hard.a -mcpu=cortex-m4 -T"C:\TouchGFXProjects\TestTimeandDate_3\STM32CubeIDE\STM32F469NIHX_FLASH.ld" --specs=nosys.specs -Wl,-Map="STM32F469I-DISCO.map" -Wl,--gc-sections -static -LC:/git/STM32F469-dk/stm32f469i_disco/STM32F469I-DISCO/Middlewares/ST/touchgfx/lib/core/cortex_m4f/gcc -LC:/git/stm32f469i_disco/STM32F469I-DISCO/Middlewares/ST/touchgfx/lib/core/cortex_m4f/gcc -LC:/TouchGFXProjects/TestTimeandDate_3/Middlewares/ST/touchgfx/lib/core/cortex_m4f/gcc --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -lstdc++ -lsupc++ -Wl,--end-group
c:\st\stm32cubeide_1.8.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_2.0.0.202105311346\tools\arm-none-eabi\bin\ld.exe: ./Application/User/main.o: in function `MX_RTC_Init':
C:/TouchGFXProjects/TestTimeandDate_3/Core/Src/main.c:623: undefined reference to `HAL_RTC_Init'
c:\st\stm32cubeide_1.8.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_2.0.0.202105311346\tools\arm-none-eabi\bin\ld.exe: C:/TouchGFXProjects/TestTimeandDate_3/Core/Src/main.c:639: undefined reference to `HAL_RTC_SetTime'
c:\st\stm32cubeide_1.8.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_2.0.0.202105311346\tools\arm-none-eabi\bin\ld.exe: C:/TouchGFXProjects/TestTimeandDate_3/Core/Src/main.c:648: undefined reference to `HAL_RTC_SetDate'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:88: STM32F469I-DISCO.elf] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.
10:04:18 Build Failed. 5 errors, 0 warnings. (took 1s.898ms)
Here is the console error message
Yes I think the RTC isn't being compiled for some reason when the project is opened through touchgfx