Open NaomiCreate opened 3 years ago
Solved: With the help of: undefined reference to `RCC_APB2PeriphClockCmd' Problem
and Download and 'install' the Standard Peripheral Library for STM8S001J3
Steps Taken:
USE_STDPERIPH_DRIVER
-> apply and close
Go To Project -> Properties -> C/C++ Build -> Settings -> Tool Settings -> MCU GCC Compiler -> Include paths -> + (ADD):
Note: this is default -> keep as is
..\Inc
Note: These are paths to all h files in STM32F10x_StdPeriph_Lib_V3.5.0
C:\Users\mayan\STM32Cube\Repository\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\CoreSupport
C:\Users\mayan\STM32Cube\Repository\STM32F10x_StdPeriph_Lib_V3.5.0\Project\STM32F10x_StdPeriph_Template
C:\Users\mayan\STM32Cube\Repository\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x
C:\Users\mayan\STM32Cube\Repository\STM32F10x_StdPeriph_Lib_V3.5.0\Libraries\STM32F10x_StdPeriph_Driver\inc
Note: These are paths to STM32Cube_FW_F1_V1.8.3 default library of STM32CubeIDE -> Not needed if you are using the Standard Peripheral Lib
C:\Users\mayan\STM32Cube\Repository\STM32Cube_FW_F1_V1.8.3\Drivers\CMSIS\Core\Include
C:\Users\mayan\STM32Cube\Repository\STM32Cube_FW_F1_V1.8.3\Drivers\CMSIS\Device\ST\STM32F1xx\Include
#include <stm32f10x.h>
#include <stm32f10x_rcc.h>
#include <stm32f10x_gpio.h>
After tying to write with C and seeing that it was to hard, we wanted to write with HAL, but we saw that it was too broad. We started reading a very helpful book- "Discovering the STM32 Microcontroller" by Geoffrey Brown, that used STM32F10x Standard Peripherals Library . We decided to try working with this library as well. Steps: