Page 1 of 1

STM32F030F4 Shell, PWM Sinewave, ADC, TIM14

Posted: Sun Nov 26, 2017 12:24 pm
by robert_o
After some struggle in the beginning i quite like the little board now ebay :) . For EUR 1,35 it is not half bad.
This is a small project i made. It involves TIM14 PWM sinewave (half or fullwave) output on pin PA4, a shell on PA2,3, ADC Sampling of Ch0,1 and internal temperature Sensor and internal reference.
All the necessary files are in the project (linker script, pwm_lld files, ods spreadsheet for calculating the pwm).
I also deactivated some of ChibiOS functions like mutex and messages.
This should help everybody to get started with this small (TSSOP20) chip.
Have fun.

EDIT: I just found out that i forgot the file :)

Re: STM32F030F4 Shell, PWM Sinewave, ADC, TIM14

Posted: Fri Jun 22, 2018 5:06 pm
by MarkusS
Hey Robert,

thanks for sharing your work. I am struggling with my STM32F030F4 and ChibiOS-18.2.0/1, so I thought I give your example code a try. I downloaded ChibiOS-17.6.4 (since it seems that your project is using 17.6.x) and tried to compile, but the compiler complains that it can't find the board files...
I searched in your 7z file, but I could not find the required os/hal/boards/China_STM32F030F4/board.mk

Could you please also share your board files?

Thanks,

Mark

Re: STM32F030F4 Shell, PWM Sinewave, ADC, TIM14

Posted: Tue Jul 17, 2018 5:38 pm
by robert_o
Sorry, just saw the post.
Here it is...