pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
196 stars 167 forks source link

CPU frequency #438

Open QAMU opened 4 years ago

QAMU commented 4 years ago

Hello, How to change the CPU Frequency from 160MHz to 240MHz, I changed the sdkconfig.h but no change. Thinks.

geza-pycom commented 4 years ago

Hello, In general first you need to modify the configuration file of pycom-esp-idf to use the 240MHz, then re-generate the sdkconfig.h and recompile all the static libraries, then copy them to pycom-micropython-sigfox repository and then re-compile Pycom's FW.

The pycom-esp-idf related modifications to be done in example/wifi/scan folder (edit with "make menuconfig" and then build with "make all and make bootloader"). Once you recompiled the static libraries there, from pycom-micropython-sigfox/esp32 you can use the get_idf_libs.py script to automatically copy them. Double check that the copied sdkconfig.h does not contain the "CONFIG_SECURE_BOOT_ENABLED" macro, if it contains you need to manually remove it otherwise your device will be bricked. Once the libraries and sdkconfig.h are copied, you need to manually remove the build folder in pycom-micropython-sigfox/esp32 and rebuild the Pycom's FW. I hope this helps !