Im new to CubeIDE. When Setting up RCC (Low speed clock) to crystal resonator and adding clock and calendar in RTC, it says the HAL_RTC_Init is not defined.. how can I fix this?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-28 9:57 PM
This discussion is locked. Please start a new topic to ask your question.
12 REPLIES 12
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-02 9: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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-02 9:23 AM
The Console tab has the exact error message. The Problems tab is the IDE’s “helpful�? way of reordering things, which is less than helpful.
The full output from the console tab would show the actual issue. Solving it is another thing. Looks like the RTC file isnt being compiled.
The full output from the console tab would show the actual issue. Solving it is another thing. Looks like the RTC file isnt being compiled.
If you feel a post has answered your question, please click "Accept as Solution".
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-03-02 8: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
- « Previous
-
- 1
- 2
- Next »