espressif / esptool

Espressif SoC serial bootloader utility
https://docs.espressif.com/projects/esptool
GNU General Public License v2.0
5.6k stars 1.39k forks source link

[ESP32-C2] Are reported flash frequencies correct for ESP32-C2? (ESPTOOL-778) #937

Closed TD-er closed 11 months ago

TD-er commented 11 months ago

Operating System

Windows 11

Esptool Version

latest

Python Version

Python 3.11.4

Full Esptool Command Line that Was Run

No response

Esptool Output

No response

What is the Expected Behaviour?

Recently I added this PR to Arduino/ESP32 repo, which uses the frequencies in esptool.py for the Arduino function magicFlashChipSpeed()

However on further inspection, I notice the SPI bus frequency of the ESP32-C2 is running at 40 MHz, even though I have set the flash frequency to 60 MHz in the board definition and use esptool.py to flash.

See this issue about my concerns regarding the APB/SPI bus frequency.

This makes me wonder if the frequencies mentioned in esptool for the ESP32-C2 are correct.

More Information

No response

Other Steps to Reproduce

No response

radimkarnis commented 11 months ago

Hello @TD-er, in your recent discoveries, you mention the actual measured frequency is indeed 60 mHz.

Is this issue ticket still relevant? If it is, I will need to check with more developers to be sure.

TD-er commented 11 months ago

Well from an esptool perspective, this no longer seems relevant. But if you know something to help me find the correct way to read/detect in software the actual registers where the flash freq. can be read or used to compute the actual flash freq. then I would be very interested.