2023-02-16 01:47 AM
a
I don't have a scope but i can measure from multimeter, if it is there. I am guessing there is a bug or I am doing something wrong. I think software focuses on Pulse value and does not recognize __HAL_TIM_SET_COMPARE command. I uploaded the code. Anyone have an idea?
Solved! Go to Solution.
2023-02-21 05:11 AM
Hello!
Thank you for answering. I think when i was configuring adc I opted for dma and in priority tab section of dma I chose medium priority, that's why it interfered with timers( timers start to malfunctioning) - this what i think happened. Probably this is on my part. I don't know about interrupt routines and about NVIC very well. I am still learning. I remade the project in CubeIDE this time I didn't touch priority setting left everything as default. This time it did work.
2023-02-20 03:30 AM
Hello @Bektöre ELMALI ,
What do you mean "software focuses on Pulse value and does not recognize __HAL_TIM_SET_COMPARE command." Have you tried an example of Cube Firmware?
I suggest taking a look at this example.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-02-21 05:11 AM
Hello!
Thank you for answering. I think when i was configuring adc I opted for dma and in priority tab section of dma I chose medium priority, that's why it interfered with timers( timers start to malfunctioning) - this what i think happened. Probably this is on my part. I don't know about interrupt routines and about NVIC very well. I am still learning. I remade the project in CubeIDE this time I didn't touch priority setting left everything as default. This time it did work.