cancel
Showing results for 
Search instead for 
Did you mean: 

I am new and I need some help programming a PWM on the micro STM32F303ZET6

SRami.2
Associate II

I am programming a output PWM using the timers on this processor. since I am new, I decided to start using the examples for this specific processor found in the folder 'en.stm32cubef3_v1.11.0'

As a first instance I execute the project file in the folder I attached here 'SW4STM32". I place that folder into my workspace . when I execute this file the software pretty much set everything form me. but when I build the project always an error shows up:

22:12:56 **** Incremental Build of configuration Release for project STM32F303ZE-Nucleo ****

make all 

make: *** No rule to make target 'C:/Users/steph/OneDrive/Documentos/Src/stm32f3xx_hal_msp.c', needed by 'Example/User/stm32f3xx_hal_msp.o'. Stop.

"make all" terminated with exit code 2. Build might be incomplete.

22:12:57 Build Failed. 1 errors, 0 warnings. (took 250ms)

The other way I am trying to do my project is creating a new 'SM32 project', once I select the processor I have and select C++ as the language. the software set everything for me and create a template of the main.c/main.h file which I replace with the files attached here. In this case the error I am sure is because there is a file missing in the folder, the file is "stm32f3xx_nucleo_144.h". This file contains some variable declarations as "TIM_HandleTypeDef  TimHandle;"

Could you please help me out with this. I am a little confuse regarding this

10 REPLIES 10
SRami.2
Associate II

The main.c from the PWM project