# Micro\_speech application "timing out"

**URL:** <https://discuss.tinyml.seas.harvard.edu/t/micro-speech-application-timing-out/552>\
**Category:** Programming Q&A\
**Created:** [March 31, 2021, 4:37pm UTC](https://discuss.tinyml.seas.harvard.edu/t/micro-speech-application-timing-out/552 "2021-03-31T16:37:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephenbaileymagic](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.tinyml.seas.harvard.edu/stephenbaileymagic/32/81_2.png) [@stephenbaileymagic](https://discuss.tinyml.seas.harvard.edu/u/stephenbaileymagic)\
**Post date:** [March 31, 2021, 4:37pm UTC](https://discuss.tinyml.seas.harvard.edu/t/micro-speech-application-timing-out/552/1 "2021-03-31T16:37:35Z")

</div>

Has anyone else see a timing out behavior in the micro\_speech example code? I have been leaving my model running and it has repeatedly stopped working after about 24 hours.

Symptoms:  
-Device stops taking commands  
-Built-in led (not the RGB led) blinks in a repeating pattern (4 long blinks, 4short blinks)

This behavior has been observed happening across all of the things I have tested:  
-device powered by two different computers (USB port)  
-two different devices (I have two nano ble sense boards)  
-different versions of the micro\_speech code (both the plain example code and versions in which I changed the model)  
-reset of the device makes it work again, but behavior reappears after about 24 hrs

I did not observe this behavior with the hello\_world example code. It is possible I didn’t wait long enough, but I am under the impression that it is not the general TFLiteMicro code that is doing this on my devices.

My current guess is it is something in the microphone library, but that is a wild guess. Anyway, just wondering if anyone had seen and fixed this as I might be overlooking something trivial and I don’t want to re-invent the wheel.

Thanks!

---

<div class="post-metadata">

**Author:** ![stephenbaileymagic](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.tinyml.seas.harvard.edu/stephenbaileymagic/32/81_2.png) [@stephenbaileymagic](https://discuss.tinyml.seas.harvard.edu/u/stephenbaileymagic)\
**Post date:** [April 15, 2021, 10:52pm UTC](https://discuss.tinyml.seas.harvard.edu/t/micro-speech-application-timing-out/552/2 "2021-04-15T22:52:14Z")

</div>

Following up on this, the bug hunt continues. I was re-inspired to look into this as I got the same behavior immediately (no 24 hr delay) while trying to upload a sketch to a Nano 33 BLE Sense from my Raspberry Pi 4 running the Arduino IDE.

Based on the information in this link, I am now working from the assumption that something in the code is causing the mbed OS to crash.

> **[Arduino Nano BLE33: Blinking error code?](https://forum.arduino.cc/t/arduino-nano-ble33-blinking-error-code/672277)**
>
> Hi, I'm working on a remote controlled car using the Arduino Nano BLE33. I am using the Arduino IDE 1.8.13. It worked fine until today. I reprogrammed the Arduino and my program seems to be running. However the LED next to the USB port...

So the good news is I have a lead, the bad news is now I have another use case failure to figure out. I’ll post if I get anywhere, I think I have some docs to read…

---

<div class="post-metadata">

**Author:** ![FrancisElhelou](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.tinyml.seas.harvard.edu/franciselhelou/32/271_2.png) [@FrancisElhelou](https://discuss.tinyml.seas.harvard.edu/u/FrancisElhelou)\
**Post date:** [April 16, 2021, 1:29pm UTC](https://discuss.tinyml.seas.harvard.edu/t/micro-speech-application-timing-out/552/3 "2021-04-16T13:29:23Z")

</div>

Hello Stephan.  
This is Tensorflow my friend. It will timeout if you are not being active. You need to move around and click a few things every few hours to keep the environment from going idle.

I hope this helps, let me know if it fixes it or not.

---

<div class="post-metadata">

**Author:** ![stephenbaileymagic](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.tinyml.seas.harvard.edu/stephenbaileymagic/32/81_2.png) [@stephenbaileymagic](https://discuss.tinyml.seas.harvard.edu/u/stephenbaileymagic)\
**Post date:** [April 18, 2021, 6:26pm UTC](https://discuss.tinyml.seas.harvard.edu/t/micro-speech-application-timing-out/552/4 "2021-04-18T18:26:40Z")

</div>

Hello @FrancisElhelou ,  
Thank you for your reply! In this case, I do not think Tensorflow is the problem. I tested by running the hello\_world example sketch from the Tensorflow arduino library on my device for an extended period and I am not seeing the problem with the OS crashing. I will keep doing some testing and see what I find out. 🙂
