I’ve cloned the PWM sample for testing in ESP32 DevKitC, but the message appears:
[error] Can´t find name [This board does not support such pin function! D8.PWM] in  at line 16
In the device pins, this pin (D8) is free to use.
How to solve ?
this incorrect behaviour is due to a bug. We have already solved it and the fix will be available in the next patch.
However please note that pins from D6 to D11 included are used by the esp32 internal flash and, as reported in the Zerynth pin map should not be used.
the new patch is out:
PWM in test D2 not work.
I did download, update, register, virtualize, recompile the buzzer example in D2, but it did not work.
after you download and install the new rolling updates, you have also to create again the virtual machine for your ESP32 DevKitC (don’t worry the number of consumed free VMs doesn’t increase).
Virtualizing again the ESP32 DevKitC with the new VM, you should be enabled to use D2.PWM function without problems.
Let me know if this can help you
It worked! Thank you for your patience with me.
Now I go to the next stage of the project.
At low frequencies it is working.
But I’m going to need a 12MHz clock signal from another chip. So I tried this code, but it failed. Is this possible?
Error in console:
The PWM driver for ESP32 devices allows at most a microsecond resolution.
We have in pipeline to expand this resolution to nanoseconds; in the meantime, you can check and modify the vhal_pwm.c under “~/zerynth2/vhal/xtensa-lx6/esp32/” folder to call the low-level esp32 sdk functions.
I do not know how to program in low level, so I'll wait for the next updates.
I tried in MICROS and 20khz, but I also could not.
I'm going to need these high frequencies, so I'll wait.
I did the p3 upgrade but it still did not work.
Here is the code and the error.
If anyone knows how to solve this, please help me.
p4 upgrade = same limit.
No clock or audio frequencies.
unfortunately not :s
We understand your need and we have reported adding this feature on esp32 devices in pipeline but I cannot sure if this will be included in the next patch.
Please be patient and stay tuned