Skip to main content
Explorer II
July 9, 2024
Question

STM32F446RE Clock source conflict with GPIO_PIN_x as Output

  • July 9, 2024
  • 3 replies
  • 1300 views

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

 

    This topic has been closed for replies.

    3 replies

    Graduate II
    July 9, 2024

    >>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

    Super User
    July 10, 2024

    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?

    FShah.1Author
    Explorer II
    July 12, 2024

    Yes, I am using  HAL_TIM_PWM_Start_DMA(xxxxx)

    What possible issue I can find in the code?

     

    Super User
    July 12, 2024

    > 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.