STM32F030F4 Shell, PWM Sinewave, ADC, TIM14

This forum is about you. Feel free to discuss anything is related to embedded and electronics, your awesome projects, your ideas, your announcements, not necessarily related to ChibiOS but to embedded in general.
robert_o
Posts: 36
Joined: Fri Feb 17, 2017 11:25 pm
Has thanked: 1 time
Been thanked: 4 times

STM32F030F4 Shell, PWM Sinewave, ADC, TIM14

Postby robert_o » Sun Nov 26, 2017 12:24 pm

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 :)
Attachments
STM32F030F4P6-China_WORKS_TIM14_SinewaveOutputPWM_SHELL_ADC.7z
(3.8 MiB) Downloaded 55 times

MarkusS
Posts: 12
Joined: Tue Mar 13, 2012 6:52 pm

Re: STM32F030F4 Shell, PWM Sinewave, ADC, TIM14

Postby MarkusS » Fri Jun 22, 2018 5:06 pm

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

robert_o
Posts: 36
Joined: Fri Feb 17, 2017 11:25 pm
Has thanked: 1 time
Been thanked: 4 times

Re: STM32F030F4 Shell, PWM Sinewave, ADC, TIM14

Postby robert_o » Tue Jul 17, 2018 5:38 pm

Sorry, just saw the post.
Here it is...
Attachments
China_STM32F030F4.7z
(4.73 KiB) Downloaded 16 times


Return to “User Projects”

Who is online

Users browsing this forum: No registered users and 1 guest