Sysprogs forums › Forums › VisualGDB › How to find required library source/header
- This topic has 7 replies, 2 voices, and was last updated 4 years, 10 months ago by support.
-
AuthorPosts
-
January 18, 2020 at 19:00 #27122SherlockParticipant
Hi,
I’m pretty confused despite the fact that I’m a very experienced Visual Studio developer.
I was reading this example:
http://embeddedsystemengineering.blogspot.com/2015/06/stm32f4-discovery-tutorial-4-configure.html
So in a new project for the STM32F407G-DISC1 board I added these lines to the source:
#include <stm32f4xx.h>
#include <stm32f4xx_rcc.h>
#include <stm32f4xx_flash.h>The project compiled fine.
Then I added this function call to the first line in main:
RCC_DeInit();
This compiled but didn’t build – I understand why that is.
So I then added the file
F:\Users\Hugh\AppData\Local\VisualGDB\EmbeddedBSPs\arm-eabi\com.sysprogs.arm.stm32\STM32F4xxxx\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_rcc.c
To the projects Source files\Device-specific files\LL solution folder – using Visual Studio, Add existing item etc.
Once I did that the project will not compile, for example:
Error ‘HSI_VALUE’ undeclared
Error ‘RCC_TypeDef {aka struct <anonymous>}’ has no member named ‘DCKCFGR’; did you mean ‘PLLCFGR’?
and so on, in fact a total of 32 errors and 42 warning are reported.
I simply have no idea what to do next, how do I identify what else needs to be added to the Include and Source folders in the project?
It seems that all I can do is trial and error, incrementally searching and stuff – very very laborious.
Is there no way to get from some function name (RCC_DeInit) and find what headers and source files one needs and in what order to include those headers?
I tried to find the header that defines RCC_DCKCFGR_PLLI2SDIVQ for example, because that is reported as undefined when stm32f4xx_rcc.c gets compiled, but I cannot, I used Notepad++ to search the folder tree – no match.
Thanks
January 18, 2020 at 19:05 #27124supportKeymasterSorry, this looks like a question about the STM32 library/framework structure, not something specific to VisualGDB. Please consider posting on the STM32 forums to get help on STM32-specific issues.
January 18, 2020 at 19:19 #27126SherlockParticipantBut surely this is something you understand? what would you do to resolve this kind of issue?
January 18, 2020 at 19:22 #27127supportKeymasterNo problem, we can help you solve it via our paid consulting services. Please contact our sales to get a quote.
January 18, 2020 at 19:23 #27128SherlockParticipantBut I though my purchase included support? I just paid for the Custom Edition last week!
Thanks,
Hugh
January 18, 2020 at 19:45 #27129supportKeymasterSorry, our support covers issues specific to our products. It is not possible for us to provide general programming help/personalized introductions to external libraries, devices and frameworks as a part of our product support, as the cost of such a service would greatly exceed what we charge for our licenses.
January 18, 2020 at 19:49 #27130SherlockParticipantOK understood, I have now posted this as a question on the STM forum site along with details of a public GitHub repo that contains the (unbuildable) project.
https://community.st.com/s/group/0F90X000000AXsASAW/stm32-mcus
Thanks.
- This reply was modified 4 years, 10 months ago by Sherlock.
January 18, 2020 at 19:53 #27132supportKeymasterNo problem and thanks for your understanding.
Also if you get STM32-specific advice on the ST’s forums and need help mapping it to VisualGDB GUI (e.g. finding the setting for managing include paths, defining preprocessor macros or adding files to the project), feel free to ask us. This is fully covered by our support, although we did our best to make those settings as intuitive as possible.
- This reply was modified 4 years, 10 months ago by support.
-
AuthorPosts
- You must be logged in to reply to this topic.