You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the tof/vl53l5cx_uld example gets stuck in the middle of an I2C write, if code >= commit f9203dc523e4b8fe6e6312ec18bb924453f2f7a6 (21-Nov-24) is used. This effectively means, I cannot develop the library for the particular sensor, other than by remaining on version 0.22.0.
Execution stops (within esp-hal method), and never resumes. very strange?
Requirements
Unfortunately, to replicate one needs to have a VL53L5CX distance sensor, and wire it to the devkit. I have some of these around, so can send to a person if there's a need and it'd help understand the problem.
Check the README and a) install clang, bindgen CLIs, b) download the vendor ULD C library.
build & run
$ FEATURES=esp-hal-0_22 DEFMT_LOG=trace make -f Makefile.dev m3
...
To compile for:
0.22 API
FEATURES=esp-hal-0_22 as shown
0.23 API (released versions)
use no FEATURES
latest main
use FEATURES=esp-hal-next
Also, you'll likely need to fiddle with the Cargo.toml to get the right versions.
Analysis
I really don't know why the firmware writes (and reads) are perfectly fine and reliable, but the first thing after them either fails, or succeeds, only based on the version of esp-hal I'm using.
I'd expect an error of some sort, from esp-hal. That it simply freezes seems something... I'm not currently able to explain.
I found the culprit commit by using git bisect. Will next have a look at the changes within it.
The text was updated successfully, but these errors were encountered:
Out of the
esp-hal
releases:Symptoms
Running the
tof/vl53l5cx_uld
example gets stuck in the middle of an I2C write, if code >= commit f9203dc523e4b8fe6e6312ec18bb924453f2f7a6 (21-Nov-24) is used. This effectively means, I cannot develop the library for the particular sensor, other than by remaining on version 0.22.0.When working ok:
That's a successful run. The device firmware gets initialized, some data is collected, and the whole hardware is shut down.
When NOT working:
Execution stops (within
esp-hal
method), and never resumes. very strange?Requirements
Unfortunately, to replicate one needs to have a VL53L5CX distance sensor, and wire it to the devkit. I have some of these around, so can send to a person if there's a need and it'd help understand the problem.
Steps
Set up the ZOO repo
$ cd tof/vl53l5cx_uld
Check the README and a) install
clang
,bindgen
CLIs, b) download the vendor ULD C library.build & run
To compile for:
FEATURES=esp-hal-0_22
as shownFEATURES
main
FEATURES=esp-hal-next
Also, you'll likely need to fiddle with the
Cargo.toml
to get the right versions.Analysis
I really don't know why the firmware writes (and reads) are perfectly fine and reliable, but the first thing after them either fails, or succeeds, only based on the version of
esp-hal
I'm using.I'd expect an error of some sort, from
esp-hal
. That it simply freezes seems something... I'm not currently able to explain.I found the culprit commit by using
git bisect
. Will next have a look at the changes within it.The text was updated successfully, but these errors were encountered: