emblock STM32F1 skeleton
Posted: Sat Feb 28, 2015 7:39 pm
I'm trying to make skeleton on emBlocks for chibios, but i'm stuck on this error:
....
.\ext\ChibiOS\boards\RLABS_OVENSTM32F1\board.h|39|warning: "STM32F10X_MD" redefined [enabled by default]|
:0|0|note: this is the location of the previous definition|
obj\debug\ext\chibios\os\hal\platforms\stm32\usartv1\serial_lld.o||In function `VectorD8':|
C:\EmBlocks\OVEN_STM32F1\ext\ChibiOS\os\hal\platforms\STM32\USARTv1\serial_lld.c:289||undefined reference to `_port_irq_epilogue'|
obj\debug\ext\chibios\os\kernel\src\chschd.o||In function `chSchGoSleepS':|
C:\EmBlocks\OVEN_STM32F1\ext\ChibiOS\os\kernel\src\chschd.c:128||undefined reference to `_port_switch'|
obj\debug\ext\chibios\os\kernel\src\chschd.o||In function `chSchWakeupS':|
C:\EmBlocks\OVEN_STM32F1\ext\ChibiOS\os\kernel\src\chschd.c:240||undefined reference to `_port_switch'|
obj\debug\ext\chibios\os\kernel\src\chsys.o||In function `chSysInit':|
C:\EmBlocks\OVEN_STM32F1\ext\ChibiOS\os\kernel\src\chsys.c:90||undefined reference to `_port_init'|
obj\debug\ext\chibios\os\kernel\src\chthreads.o||In function `chThdCreateI':|
C:\EmBlocks\OVEN_STM32F1\ext\ChibiOS\os\kernel\src\chthreads.c:167||undefined reference to `_port_thread_start'|
C:\EmBlocks\OVEN_STM32F1\ext\ChibiOS\os\kernel\src\chthreads.c:167||undefined reference to `_port_thread_start'|
||=== Build finished: 6 errors, 42 warnings (0 minutes, 15 seconds) ===|
first: i get warning "STM32F10X_MD" redefined, but i set it on board.h , as i see in other board.h files, so why this warning?
second: i get error on VectorD8, probably i not include some files, or removed some necessary, i must include USARTv1 or USARTv2? (what is the difference?), i've included USARTv1
third: is correct to use the linker script ChibiOS/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F103xB.ld for STM32F103C8? (i use this micro)
thanks
....
.\ext\ChibiOS\boards\RLABS_OVENSTM32F1\board.h|39|warning: "STM32F10X_MD" redefined [enabled by default]|
:0|0|note: this is the location of the previous definition|
obj\debug\ext\chibios\os\hal\platforms\stm32\usartv1\serial_lld.o||In function `VectorD8':|
C:\EmBlocks\OVEN_STM32F1\ext\ChibiOS\os\hal\platforms\STM32\USARTv1\serial_lld.c:289||undefined reference to `_port_irq_epilogue'|
obj\debug\ext\chibios\os\kernel\src\chschd.o||In function `chSchGoSleepS':|
C:\EmBlocks\OVEN_STM32F1\ext\ChibiOS\os\kernel\src\chschd.c:128||undefined reference to `_port_switch'|
obj\debug\ext\chibios\os\kernel\src\chschd.o||In function `chSchWakeupS':|
C:\EmBlocks\OVEN_STM32F1\ext\ChibiOS\os\kernel\src\chschd.c:240||undefined reference to `_port_switch'|
obj\debug\ext\chibios\os\kernel\src\chsys.o||In function `chSysInit':|
C:\EmBlocks\OVEN_STM32F1\ext\ChibiOS\os\kernel\src\chsys.c:90||undefined reference to `_port_init'|
obj\debug\ext\chibios\os\kernel\src\chthreads.o||In function `chThdCreateI':|
C:\EmBlocks\OVEN_STM32F1\ext\ChibiOS\os\kernel\src\chthreads.c:167||undefined reference to `_port_thread_start'|
C:\EmBlocks\OVEN_STM32F1\ext\ChibiOS\os\kernel\src\chthreads.c:167||undefined reference to `_port_thread_start'|
||=== Build finished: 6 errors, 42 warnings (0 minutes, 15 seconds) ===|
first: i get warning "STM32F10X_MD" redefined, but i set it on board.h , as i see in other board.h files, so why this warning?
second: i get error on VectorD8, probably i not include some files, or removed some necessary, i must include USARTv1 or USARTv2? (what is the difference?), i've included USARTv1
third: is correct to use the linker script ChibiOS/os/ports/GCC/ARMCMx/STM32F1xx/ld/STM32F103xB.ld for STM32F103C8? (i use this micro)
thanks