-
Notifications
You must be signed in to change notification settings - Fork 7.6k
esp32-hal-misc.c infinite loop. #6632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That's a finite loop. esp_timer_get_time() is a volatile function that (surprise) gives you the current number of microseconds since boot. You don't say what you are using for DallasTemperature, but wherever it is using delayMicroseconds seems more likely the source of your problem. |
Thanks, but the dallastemperature call this timer in begin() method. I just call _senzor.begin(). |
Looks like you are using PIO. PIO targets arduino-esp32 version 1.0.4, based on espressif32 3.3.x. Most of us are manually targeting a newer version of Arduino core. I'm using 2.0.2.3, custom TASMOTA build:
Your Dallas library may not be compatible with the newer Arduino framework. We'll need more info about your platform targets, or even better a sample program that duplicates the issue if you want help. I recommend creating a Github repository with the sample to make it easy for others to download the project and test. |
I'm so sorry for the "infinite loop" opinion, it's too early, in my debugging. I will try your suggestion. |
any updates on this @dynamic21xx? Thanks! |
@dynamic21xx Any news? |
Hello, Since there were no replies, I close this issue. In case you would need us to take it further, please feel free to reopen it. Thanks |
Board
nodemcu-32s
Device Description
nodemcu-32s plain.
Hardware Configuration
No.
Version
latest master (checkout manually)
IDE Name
PlatformIO
Operating System
UbuntuLinux 20
Flash frequency
40Mhz
PSRAM enabled
no
Upload speed
115200,9600
Description
In my program used DallasTemperature, and onewire. espressif32 3.5 working fine.

When I update espressif32 4.1, my program cannot run, and the program always reset.
In first run 0 sensor attached, but espressif32 3.5 working fine.
I found in esp32-hal-misc.c infinite loop.
If I commented out these lines , espressif32 4.1 working.
https://community.platformio.org/t/update-espressif32-4-1-dallastemperature-senzor-begin-freeze/27399
Sketch
Debug Message
Other Steps to Reproduce
espressif32 3.5 working fine.
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: