hello, stm32f407 's code is working while debug I can see the data to the registers but I do not have any reaction when I load the card I would appreciate if you help ..
hello, stm32f407 's code is working while debug I can see the data to the registers but I do not have any reaction when I load the card I would appreciate if you help ..
I'm not entirely sure what you're doing or if this is a custom board, or whatever.
If behaviour stand-alone vs debugger is different, make sure BOOT0 pin is pulled low. Output diagnostic/telemetry data out a USART, and avoid routines dependent on ITM or debug support.
Also make sure to enable all clocks and GPIOs you need, don't rely on side effects of the debugger connecting and initializing functionality it uses.
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Thank you very much sir, everything you say is activated, clock signals are activated, and in case of boot0 pin 0, I see the data going to the TIM-> CCR registers, but there is no response when I load the card.
Sir, the card is running but there is no reaction at the pin outputs, there is no error in compiling the program and the debug is running when I load it on the card, there is no response.
Sir, the card is running but there is no reaction at the pin outputs, there is no error in compiling the program and the debug is running when I load it on the card, there is no response.
That's a chip, do you have the STM32F4-Discovery board?
TIM_OCInitTypeDef PWM = {0};
TIM_TimeBaseInitTypeDef TIMER = {0};
Both TIM1 and TIM8 are Advanced Timers, they have more fields which you are not initializing properly, clear the variables so at least there isn't random data in the structures.
Also you need to enable outputs for them
/* Main Output Enable */
TIM_CtrlPWMOutputs(TIM1, ENABLE);
TIM_CtrlPWMOutputs(TIM8, ENABLE);
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..