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:
STM32 ST-LINK CLI v2.1.0
STM32 ST-LINK Command Line Interface
ST-LINK SN : ST-Link/V1 on E:
ST-LINK Firmware version : V1J11S0 (Need Update)
Old ST-LINK firmware detected!
Please upgrade it from ST-LINK->'Firmware update' menu.
Connected via SWD.
Connection mode : Normal.
Device ID:0x420
Device flash Size : 128 Kbytes
Device family :STM32F100xx Low/Medium density Value Line
Loading file...
Flash Programming:
File : C:\Temp\arduino_build_193593\sketch_feb14a.ino.bin
Address : 0x08000000
Flash memory programming...
±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±± 0%
0%ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ 45%ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ 90%ÛÛÛÛÛ 100%
Flash memory programmed in 1s and 388ms.
Programming Complete.
MCU Reset.
Application started.
i do know his sources and the SPL do compile and work on Linux. nod nod
stephen
step through your code and see what changes to the gpio registers. pay particular attention to CR1/CR2.
got function of blinky, pwm, and serial.
I find problem in serial, Serial pin is PA9-TX and PA10-Rx. I have changed crystal in Boards.txt as 10Mhz as mine board is having it.
I observed that on baud set 300 i am receiving data on 300 seems fin
on baud rate 600 i am receiving on 900
on baud rate 1200 i am receiving on 1800
why this happens,
if anyone can help
what was the crystal originally fitted ?
srp
Now , I wnat to change crystal setting in arduino ide from 8 to 12Mhz, how to do it?
apart from which why would you ?
fire up cubemx, set chip as stm32f100xx or whatever it is then play with the rcc peripheral to set crystal sources, then play in the clock configuration panel and see if you can actually get what you want.
if you can, then generate the code, check the clock setup for values, figure out where in the core to change.
no doubt there’s a better way
you might also do a forum search before all that above as i’m pretty sure 12MHz has come up before
stephen
[ProudPagan – 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
(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 void SystemClock_Config(void)


