Open boarchuz opened 4 months ago
Hi @boarchuz Please use the following esp32 esp_phy lib test. We will fix this issue as soon as possible. libphy_esp32_20240226_ea290180.zip
Hi @mhdong, That seems to fix the specific issue, though I do want to note that it is still ~500us slower than previous. I'm not sure if this is an unfortunate symptom of the increasing size and complexity of ESP-IDF and binary blobs, or if this is an unexpected bug?
Note, in particular the unusual period towards the end of calibration marked with blue flags.
Actually these appear to also be in the "BAD" image above, yet are much less apparent due to the Y scale, so this was introduced in the same commit. Is this intended?
Hi @boarchuz The fluctuation marked with blue flag is intended. Comparing with the previous version, the additional time is for better RF performance.
Hi @boarchuz Please use the following esp32 esp_phy lib test. We will fix this issue as soon as possible.
@mhdong Is this fixed or not yet?
Answers checklist.
IDF version.
v5.1.1-260-g9331e240fc
Espressif SoC revision.
ESP32
Operating System used.
Linux
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
Custom Board
Power Supply used.
USB
What is the expected behavior?
Phy calibration should be skipped if the calibration mode is PHY_RF_CAL_NONE.
What is the actual behavior?
As of 9331e240fcae2a3ae37b4dbb323f78c8220caffb, a ~2ms high-power period has been introduced in phy calibration even when using PHY_RF_CAL_NONE with valid calibration data.
The following are captures of the call to
register_chipv7_phy(PHY_RF_CAL_NONE)
using a Joulescope to measure power consumption and time. The main thing to note is the very high power peaks for ~2ms in the middle of first image.BAD (9331e240fcae2a3ae37b4dbb323f78c8220caffb) 5.8ms, average 77mA, max 458mA:![phyissue_bad](https://github.com/espressif/esp-idf/assets/46267286/8a2d8487-2cfd-4c65-a7fa-3c9d670c9c17)
GOOD (98f4ce20119ae9454ddc88f8b2c4d2267cc49e91, ie. previous commit) 3.6ms, average 22mA, max 117mA:![phyissue_good](https://github.com/espressif/esp-idf/assets/46267286/5fa34cf7-2c78-4cbb-9c0d-7700841cc9c1)
Steps to reproduce.
main/main.c:
main/CMakeLists.txt:
Debug Logs.
No response
More Information.
No response