cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F446RE Clock source conflict with GPIO_PIN_x as Output

FShah.1
Associate II

Hi, I am trying to implement PWM generation on PC06 from TIM8. The cubeMX is showing following warnings and not generating the clock on desired PIC_PC06??

RGB LED is Adafruit NEO Pixel 7 https://www.adafruit.com/product/2226

See the attached images and please advise for a solution ASAP. Thanks

Clock frequency 120MHz

APB2 timer #8 clock 120MHz

LED clock 800KHz, timer#8 period = 150

FShah1_0-1720558742667.png

FShah1_1-1720559007020.png

 

Internal clock warning: Clock source conflict with PA0-WKUP mapped with GPIO output.

I can't change PA0 as it is on custom board.

FShah1_2-1720559032038.png

 

4 REPLIES 4

>>advise for a solution ASAP

Stop using Cube, either get it to create a simple framework, or JUST CODE IT DIRECTLY

PC6 should be workable as TIM3_CH1 or TIM8_CH1

https://www.st.com/resource/en/datasheet/stm32f446re.pdf

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
TDK
Guru

Yellow warning do not indicate errors. They simply note that you cannot assign additional functions since the pins are already in use. It is not the most user friendly solution, but.

There is nothing to correct or fix here, as least not in the screenshots.

Probably issues in the code. Are you starting the timer with HAL_TIM_PWM_Start?

If you feel a post has answered your question, please click "Accept as Solution".
FShah.1
Associate II

Yes, I am using  HAL_TIM_PWM_Start_DMA(xxxxx)

What possible issue I can find in the code?

 

> What possible issue I can find in the code?

You want me to guess at the errors in your code? Your original post doesn't mention any issues with the code. Wouldn't it be more productive to show the code here along with an explanation of what is going wrong, what you expect, and what debugging you've done? Preferably in a new thread as the question in the opening post has been answered.

If you feel a post has answered your question, please click "Accept as Solution".