Skip to content
Discussion options

You must be logged in to vote

It is this commit which breaks it:
6d79937 2024-10-09 esp32: Add support for esp32c6.
And especially these lines, causing the frequency to be limited to a range of 4 - 2000 Hz.

        #if SOC_LEDC_SUPPORT_XTAL_CLOCK
        timer->clk_cfg = LEDC_USE_XTAL_CLK;
        #else
        timer->clk_cfg = LEDC_USE_APB_CLK;
        #endif

SOC_LEDC_SUPPORT_XTAL_CLOCK is defined for all chips except ESP32.
That difference is strange since the S3 board I have uses a 40MHz Crystal, which is of course different to the 80Mhz APB clock. But still 5 kHz should be possible.

Replies: 6 comments 16 replies

Comment options

andrewleech
Oct 26, 2024
Collaborator Sponsor

You must be logged in to vote
2 replies
@Ethanlaucan
Comment options

@Ethanlaucan
Comment options

Comment options

You must be logged in to vote
2 replies
@Ethanlaucan
Comment options

@projectgus
Comment options

Answer selected by Ethanlaucan
Comment options

You must be logged in to vote
0 replies
Comment options

andrewleech
Oct 26, 2024
Collaborator Sponsor

You must be logged in to vote
7 replies
@robert-hh
Comment options

@andrewleech
Comment options

andrewleech Oct 27, 2024
Collaborator Sponsor

@robert-hh
Comment options

@andrewleech
Comment options

andrewleech Oct 28, 2024
Collaborator Sponsor

@robert-hh
Comment options

Comment options

andrewleech
Oct 26, 2024
Collaborator Sponsor

You must be logged in to vote
0 replies
Comment options

andrewleech
Oct 27, 2024
Collaborator Sponsor

You must be logged in to vote
5 replies
@robert-hh
Comment options

@robert-hh
Comment options

@andrewleech
Comment options

andrewleech Oct 27, 2024
Collaborator Sponsor

@robert-hh
Comment options

@dpgeorge
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
None yet
5 participants