I have a board with a on-board USB Segger J-Link and STM32F107VCT6 MCU
I would like to just test the blink sketch. I have some LEDs on PE_14, PD_13 and PD_3.
I see that there is mention of this MCU on the Github Repo
https://github.com/stm32duino/Arduino_C ... 107VC(H-T)
But there is no ldscript.ld like some other MCU model, and It does not appear in the choice of board part number in Arduino IDE.
I tried generating the .hex file by compiling the blink sketch with another part number with the same amount of flash memory and the same package with 100 pins. That did not work. Maybe something related to clock setting or startup code, GPIO registers settings...
Any ideas on how to compile for my board? Thanks!
STM32F107
Re: STM32F107
And use pin number PE14, PD13 and PD3 (no _) instead of pin name PE_14, PD_13 and PD_3.
Re: STM32F107
All done, I followed the steps until the end. Now how do I test it and install it in the Arduino IDE?

Re: STM32F107
well install it the usual way first
https://github.com/stm32duino/Arduino_C ... ng-Started
then find it in the core install folder
Windows: C:\Users\{username}\AppData\Local\Arduino15.
macOS: /Users/{username}/Library/Arduino15.
Linux: /home/{username}/.arduino15.
and copy your changes there
note that you would need to update boards.txt if you copy and use a new name for the board.
use similar entries as examples
https://github.com/stm32duino/Arduino_C ... ng-Started
then find it in the core install folder
Windows: C:\Users\{username}\AppData\Local\Arduino15.
macOS: /Users/{username}/Library/Arduino15.
Linux: /home/{username}/.arduino15.
and copy your changes there
note that you would need to update boards.txt if you copy and use a new name for the board.
use similar entries as examples
Re: STM32F107
Great! It works.
Only weird thing is the GPIO mapping, PD13 variable turn on PE14 instead.
Also, the clock is faster than supposed to. a 1second gives me something about 3 time as fast.
I have a 25MHz oscillator and I'm supposed to have a 72MHz system speed (as configured in STM32CubeMX). Maybe I'm missing something there...
Anyway, that's a good starting point!
Only weird thing is the GPIO mapping, PD13 variable turn on PE14 instead.
Also, the clock is faster than supposed to. a 1second gives me something about 3 time as fast.
I have a 25MHz oscillator and I'm supposed to have a 72MHz system speed (as configured in STM32CubeMX). Maybe I'm missing something there...
Anyway, that's a good starting point!
Re: STM32F107
By default HSE_VALUE is 8MHz.
https://github.com/stm32duino/Arduino_C ... ault.h#L86
You have to define it to 25MHz.
About pin issue you probably made a mistake in your changes.
https://github.com/stm32duino/Arduino_C ... ault.h#L86
You have to define it to 25MHz.
About pin issue you probably made a mistake in your changes.
-
- Posts: 1
- Joined: Wed Jun 11, 2025 10:01 am
- Location: https://speedstarsonline.io
Re: STM32F107
Did you verify that the HSE (High-Speed External) oscillator is actually running at 25MHz using a scope or debugger?speccy88 wrote: Fri May 02, 2025 1:14 pm Great! It works.
Only weird thing is the GPIO mapping, PD13 variable turn on PE14 instead.
Also, the clock is faster than supposed to. a 1second gives me something about 3 time as fast.
I have a 25MHz oscillator and I'm supposed to have a 72MHz system speed (as configured in STM32CubeMX). Maybe I'm missing something there...
Anyway, that's a good starting point!