CubeIDE Error : strange error using git
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-05 7:01 AM
Hello,
I'm using git with my project based on a CubeWL example. After wanting to add this gitignore and delete unnecessary files (i.e. examples that I don't use, but I kept the drivers of course), it doesn't work anymore...
...Git/STM32WL55/STM32Cube_FW_WL_V1.1.0/Projects/NUCLEO-WL55JC/Applications/Sigfox/Sigfox_PushButton/Core/Src/main.c:171: undefined reference to `HAL_RCC_ClockConfig'
c:\st\stm32cubeide_1.6.1\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/Core/main.o: in function `main':
C:/Users/adminlla/Documents/9-Git/STM32WL55/STM32Cube_FW_WL_V1.1.0/Projects/NUCLEO-WL55JC/Applications/Sigfox/Sigfox_PushButton/Core/Src/main.c:76: undefined reference to `HAL_Init'
Etc..
Right there ok, but when I go back to the previous commit it doesn't work either...
It's as if some "include" has disappeared
A lead ?
Thank you
Louis
- Labels:
-
Github
-
STM32Cube MCU Packages
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-06 7:04 AM
The regeneration of the code with CubeMX seems to fix that
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-06 8:38 AM
Are .project and .cproject files checked in?
Be sure to commit these files only when your project builds successfully.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-07 1:08 AM
Hello Louis,
Are you relying on using git from command line or as an Eclipse plugin? If it's from command line then the IDE is not aware about that the file tree has been updated and may consequently only build the files that are part of the cache.
After a check out, right click on a project and click "Refresh" to update the cached file tree from disk. Could this be the issue? When you re-generate code with CubeMX then MX will force a "Refresh" of the file tree in the project.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-11 12:06 AM
yes, they are
Ok, thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-11 12:08 AM
Hello,
Yes, thanks to command line (Git Bash)
Ok thank you I will try this "refresh"
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-06-07 4:49 AM
Hello,
After a check out, I right click on a project and click "Refresh" but it doesn't work.
Cube MX regeneration works for now
Best regards
