Open salsasteve opened 1 month ago
Hey @salsasteve, thanks for reporting the issue!
It looks like the ESP32 runs out of memory. However, I couldn't reproduce the issue on my ESP32-WROOM-32 module. Which ESP32 module are you using?
I'm using a esp32-wroom-32 module(esp32 devkit v1) as well. Wondering why I would be running out of memory. Maybe its the way I'm programming it??
its definitely crashing here let person_predicted = PersonDetect::predict_quantized(features::PERSON);
I'm also getting
salsasteve in 🌐 thinkcentre0 in microflow-rs/examples/esp32 on HEAD (600ebca) [!] is 📦 v0.0.0 via 🦀 v1.79.0-nightly
❯ cargo r --example person_detect --release
Compiling examples-esp32 v0.0.0 (/home/salsasteve/Documents/solo-gits/microflow-rs/examples/esp32)
error[E0061]: this function takes 1 argument but 2 arguments were supplied
--> examples/person_detect.rs:43:19
|
43 | let mut rtc = Rtc::new(peripherals.LPWR, None);
| ^^^^^^^^ ------
| | |
| | unexpected argument of type `Option<_>`
| help: remove the extra argument
|
note: associated function defined here
--> /home/salsasteve/.cargo/git/checkouts/esp-hal-42ec44e8c6943228/3049f28/esp-hal/src/rtc_cntl/mod.rs:196:12
|
196 | pub fn new(rtc_cntl: impl Peripheral<P = crate::peripherals::LPWR> + 'd) -> Self {
| ^^^
For more information about this error, try `rustc --explain E0061`.
error: could not compile `examples-esp32` (example "person_detect") due to 1 previous error
when I use the v0.1.3 release directly. I'm thinking there is a lib version problem
Ok it's probably something related to esp-hal
. They introduce breaking changes quite often and the examples need to be updated accordingly.
I'll have a look at this as soon as I'll be back from vacation.
put in a simple pull request to fix the 2nd issue I mentioned. unexpected argument of type Option<_>
First issue still remains a mystery
I updated esp-hal
to the latest 0.19.0
version and I could reproduce the issue on the person detect example. However, I couldn't find any cause yet. This issue needs further investigation.
this is where it stalls
speech on the other hand works fine
I get a similar result when I run sine.
I'm looking into the code but i don't see too much of a differences between speech.rs and person_detect.rs examples