Sysprogs forums › Forums › VisualGDB › Problems with STM32CubeMX and VisualGDB
- This topic has 8 replies, 4 voices, and was last updated 7 years, 10 months ago by support.
-
AuthorPosts
-
September 9, 2015 at 22:16 #6905AndyFraserParticipant
I am following the instructions here: http://visualgdb.com/tutorials/arm/stm32/cube/ to compile the code generated by STM32CubeMX.
However, even after having added Inc to the include directories as directed to by the linked page, I get the compile error “error : stm32f0xx_hal.h: No such file or directory”.
I have searched the directories where STM32CubeMX put the source files but that file does not exist.
Has anyone else encountered this problem and if so, what is the solution ?
Andy
September 9, 2015 at 22:21 #6906supportKeymasterHi,
Are you using the latest VisualGDB 5.0 and the latest STM32 BSP? Does the normal LEDBlink (HAL) project build correctly?
September 10, 2015 at 16:45 #6909AndyFraserParticipantI was actually using version 4.3 so upgraded to 5 thinking that was my problem but still get the missing “stm32f0xx_hal.h” errors.
If I create the default LEDBlink project then it compiles without error !
I did a search on my computer for the missing header file and it appears under the following locations:
C:\Users\afraser\STM32Cube\Repository\STM32Cube_FW_F0_V1.3.0\Drivers\STM32F0xx_HAL_Driver\Inc\stm32f0xx_hal.h
d:\STM32Cube\STM32Cube_FW_F0_V1.3.0\Drivers\STM32F0xx_HAL_Driver\Inc\stm32f0xx_hal.h
If I point the Include directories to one of these paths I no longer get the missing header file error but a whole bunch on unknown type name errors.
If anyone has any other thoughts on what I am missing I would be eternally grateful.
Andy
September 10, 2015 at 18:48 #6911supportKeymasterHi,
VisualGDB 4.3 does not support the latest STM32 BSP that is required to use STM32CubeMX.
After you upgraded to 5.0 please upgrade your STM32 BSP via Tools->Embedded Tools Manager and then try following the tutorial from the beginning. This should get all paths to work.
September 10, 2015 at 19:48 #6913AndyFraserParticipantYep, that’s sorted it 🙂
Many thanks for your help – much appreciated.
Andy
October 5, 2015 at 16:43 #7042magicstockiParticipantI’m using VISUALGDB 5 and the STM32CUBEMX and it seems that ST updates the BSP to fast for Sysprogs. ST has provided the version 1.80 of the CUBE firmware for the STM32F4 and VISUALGDB works with the version 1.6. Is there a way to make an update manually?
October 9, 2015 at 05:09 #7052supportKeymasterHi,
Yes, we usually update the BSPs quarterly. There are 3 ways to get the updated library:
- You can build and run our STM32 BSP generator against the new archive from ST.
- You can simply copy the new code from ST to %LOCALAPPDATA%\VisualGDB\EmbeddedBSPs\arm-eabi\<…>stm32\<your family> replacing the old code
- You can convert the project to a stand-alone project and import the code from ST manually.
January 31, 2017 at 20:24 #10244meldanoParticipantI evaluate VisualGDB today with same problem.
cubeMX v4.19.0
visualGDB 5.2
Blink project work fine on my discovery board.
Failure after build:
stm32f0xx_hal_con.h: No such file or directory
Is here anyone who can help? Otherwise VisualGDB is not a alternative because I need stm32cubemx.
Thanks
Daniel
February 1, 2017 at 05:54 #10254supportKeymasterHi,
The easiest way to fix that is to use the VisualGDB header discovery feature to quickly locate the stm32f0xx_hal_conf.h file (should be somewhere in the project folder) and adjust the build settings automatically.
-
AuthorPosts
- You must be logged in to reply to this topic.