Arduino use C++, so you include header file same way as in any other C++ IDE:marce002 wrote: Tue Sep 17, 2024 5:15 pm I am a beginner with the Arduino environment and I need some help figuring out how to use some .c source files in a sketch and or even .h header files.
Code: Select all
#include "header_file.h"
As fpiSTM wrote, you probably use Roger Clark's core (based on Maple). It does not use ST HAL and changing clock setup isn't that easy.marce002 wrote: Tue Sep 17, 2024 5:15 pm Currently only have my .INO code and nothing else, of course my stlink v2 and my board with internal crystal only... the definition inside my SystemClock_Config(void) is from another user who gave me a working internal clock in cubeide
Install official STM core: https://github.com/stm32duino/Arduino_C ... ng-Started . There you can just select F1 boards, there you select "Generic F103C8Tx". It uses HSI. With USB enabled MCU is clocked @48MHz, as USB needs exactly 48MHz. With USB disabled it's clocked @64MHz.