Where can one find the current version of stm32f437xx.h?
You are mixing include and source files front two different libraries, and that's not going to work at all well
You want to match stm32f437xx.h with stm32f4xx_hal_gpio.c, not stm32f4xx_gpio.c
Where did the one you have come from?
The SPL you define the model and it pulls the appropriate structures from stm32f4xx.h
The current version came from svn for a previous version of the project.
What is this model that is to be defined? In what file do I place the statement
#define STM32F427_437xx ?
We are not using HAL or CMSIS and therefore not using Cube.
For the SPL I typically pass it as a command line define for the compiler.
I checked the preprocessor settings and STM32F437xx and STM32F427_437xx are both defined symbols. I put some bad code in a conditional test to make sure they were being picked up and they were.
The file stm32f4xx_gpio.c (V1.8.0) contains the line GPIOx->BSRRL = GPIO_Pin;
The typedef for GPIOx is in stm32f437xx.h (V2.4.1) and it has no field BSRRL or BSRRH. So this is why I wonder if I have a out of date version of it.
I came to the same conclusion when I found another directory that needed to be updated and got rid of that particular compile error. For what it is worth the last person working on the project had said we wouldn't use CMSIS or HAL. However he had compiled some HAL based code in order to view some of the generated code. Turns out some of the HAL files weren't removed.
Thanks for the help.
Retrieving data ...