Getting Blinky to work on STM32 Value line Discovery board STM32F100RB

The official STMicroelectronics Arduino core
User avatar
mrburnette
Posts: 2220
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Getting Blinky to work on STM32 Value line Discovery board STM32F100RB

Post by mrburnette » Fri Jan 26, 2018 1:02 pm

Note: I have moved your post to a more appropriate forum
ProudPagan wrote:
Thu Feb 16, 2017 5:16 am
Hi All,

I have used the Arduino framework+IDE for AVR and ESP8266, but can't get a blinky to work on the STM32 Value Line Discovery board STM32F100RB.

I have 2017.1.20 version of STM32F1xx Core installed. I see the code correctly compiled, linked and uploaded to the board:
<...>
You are in luck in that the STM32VLDISCOVERY board is supported by this core: https://github.com/stm32duino/Arduino_Core_STM32

However IMO, your post should be posted in the Disco/Nucleo section of the forum: viewforum.php?f=48 (Moved)

Frederic Pillon (fpistm) can likely narrow down the issue quickly.

Ray

fpiSTM
Posts: 316
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: Getting Blinky to work on STM32 Value line Discovery board STM32F100RB

Post by fpiSTM » Fri Jan 26, 2018 1:50 pm

Hi,
(Thanks Ray ;))
which core are you using? It is not clear?
This one is fully deprecated.
I have 2017.1.20 version of STM32F1xx Core installed


The STM32VLDISCOVERY is supported by this one:
https://github.com/stm32duino/Arduino_Core_STM32

If you change the Crystal then as Stephen said you have to configure the right clock setting.
You can do it by defining in your sketch the

Code: Select all

void SystemClock_Config(void)
which is weaked in the core to allow this kind of change.
https://github.com/stm32duino/Arduino_C ... t.cpp#L122

Code: Select all

#ifdef __cplusplus
extern "C" {
#endif
void SystemClock_Config(void) {
// Your new clock config
}
#ifdef __cplusplus
}
#endif

Post Reply