Postby murray_lang » Thu Mar 02, 2017 2:17 am
OK, so what I can gather is that the "CPU frequency" setting in menuconfig actually changes the clock speed of the CPU by selecting multipliers/dividers applied to the 40MHz crystal input. I initially though that it was something that needed to be configured based on the speed set by some other method.
I also gather that this setting is used to adjust the internal mathematics in the firmware to keep timings more or less calibrated.
At 240MHz, neither my Nano32 or WROOM-32 will produce a PWM signal. At 160MHz both will produce a PWM signal.
Is the problem with my modules or with the firmware? We have seen here that some modules work at 240MHz, but I am confident that I am not the only person to buy a Nano32 from a particular batch, nor a WROOM-32 from another particular batch. The fact that modules from two manufacturers exhibit the problem suggests to me that there is a significant number of ESP32 modules out there that will not produce PWM at the default frequency setting.
Who's problem is it?
Murray