Open ghost opened 1 year ago
I am using CubeIDE
I am assuming you have generated the boiler plate code for your STM32 project in STM32CubeIDE.
In the STM32Hardware.h simply add these lines:
remove this line "#define STM32F3xx // Change for your device"
define STM32F3xx // Change for your device
ifdef STM32F3xx
include "stm32f3xx_hal.h"
include "stm32f3xx_hal_uart.h"
endif / STM32F3xx /
ifdef STM32F4xx
include "stm32f4xx_hal.h"
include "stm32f4xx_hal_uart.h"
endif / STM32F4xx /
ifdef STM32F7xx
include "stm32f7xx_hal.h"
include "stm32f7xx_hal_uart.h"
endif / STM32F7xx /
This a piece of code from STM32Hardware header file, how to add stm32f103 microcontroller ? please guide