Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 2 months ago.
Header files for STM32F302xC/D
I am looking for header files etc for the STM32F302xB/C or STM32F302xC/D, which do not appear in the mBed_CMSIS/TARGET_STM32F3 folder. Are these available somewhere for download? Sid
1 Answer
8 years, 2 months ago.
Hi Sid,
I found the header files for any STM32F3xx board in the following directory in my mbed project:
~\mbed-os\targets\TARGET_STM\TARGET_STM32F3\TARGET_STM32F302x8\TARGET_NUCLEO_F302R8
Link: https://github.com/ARMmbed/mbed-os/tree/master/targets/TARGET_STM/TARGET_STM32F3/TARGET_STM32F302x8
Within this folder are the files: PeripheralNames.h, PeripheralPins.c, PinNames.h, & system_stm32f3xx.c.
- Jenny
That is not what I am looking for. I am using the mBed_CMSIS tree for my projects and there is no folder Hi Jenny, with STM32F302xC.h. Even in the location you describe there is no folder for TARGET_STM32F302xC. The ONLY STM32F302 folder is for the STM32F302x8 and that does not have the peripheral definitions for the B/C or D/E variants. Sid
posted by 22 Jun 2017Hi again Sid,
After some digging I found that you will not find this header file in the mbed-os hal, because there is no mbed target that uses that specific MCU. If you want to find the specific STM32F302xC header file, you could use the STM32Cube to get it. The mbed-os hal does have a conditional include for it here. So it might just work if you find that file and place it in the corresponding directory.
- Jenny
posted by 22 Jun 2017