This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PWM example using MCBSTM32E board (STM32F103ZE)

Hi guys,

I am using a MCBSTM32E board with a STM32F103ZE micro controller.

I found a example project here which states to show "hows how to configure and use the timer TIM4 of STMicroelectronics STM32F103xx microcontroller to generate pulse-width modulation."

http://www.keil.com/download/docs/354.asp

Initialy i was getting the below error, but once i've changed the start up files to the one i copied from the example codes it was giving another error 2.

1.STM32_Init.c(31): error: #5: cannot open source input file "stm32f10x_lib.h": No such file or directory

2.C:\Keil\ARM\Inc\ST\STM32F10x\stm32f10x.h(96): error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"

I've spend an hour debugging this but it does't work. Could anyone help on this?

Thanks in advance.

regards,
Edwin

0