andysworkshop / stm32plus

The C++ library for the STM32 F0, F100, F103, F107 and F4 microcontrollers

Home Page:http://www.andybrown.me.uk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't work on the "STM32F030 DEMO BOARD V1.0"

maciek252 opened this issue · comments

Hi Andy,

thanks for the excellent work! I've just started learning how to use the lib. I can run the blink example on STM32F103 demo board, and on STM32F407 Discovery, but not on a STM32F030 board, the most popular (and cheap) version sold on ebay:

http://www.ebay.com/itm/Mini-System-Development-Board-ARM-STM32-F030F4P6-CORTEX-M0-Core-32bit-48-MHz-/331978736223?hash=item4d4b79825f:g:7U0AAOSwLF1X49yy

I can run the blink program written directly, without any helper lib. Could you please explain which F030 board do you have, and what the params should be for the board from the link.

I've tried several compilation options, such as:

scons mode=debug mcu=f030 hse=8000000
scons mode=small mcu=f030 hsi=8000000

Thanks!

OK, I adjusted the memory sizes in Linker.ld, and it works :)

ENTRY(Reset_Handler)

/* End of 8Kb SRAM */
_estack = 0x20001000;

/* Generate a link error if heap and stack don't fit into RAM */

_Min_Heap_Size = 0; /* required amount of heap _/
Min_Stack_Size = 0x400; / required amount of stack */

/* Specify the memory areas */

MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 16K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 4K
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
}