# TOI Firmware on Catus Micro R2

**URL:** <https://bbs.aprbrother.com/t/toi-firmware-on-catus-micro-r2/701>\
**Category:** Arduino\
**Created:** [September 2, 2016, 5:18am UTC](https://bbs.aprbrother.com/t/toi-firmware-on-catus-micro-r2/701 "2016-09-02T05:18:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaboyap](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@chaboyap](https://bbs.aprbrother.com/u/chaboyap)\
**Post date:** [September 2, 2016, 5:18am UTC](https://bbs.aprbrother.com/t/toi-firmware-on-catus-micro-r2/701/1 "2016-09-02T05:18:35Z")

</div>

Hello ,

I have been trying to get “TOI Firmware” to work with Catus Micro R2 and seem to have a gap in my knowledge. I have installed Nodemcu and both the recent AI thinker firmware 9.5 and 1.1.1 but, the sketch will not communicate with the esp.

I had to change some declaration to const in the “firmware of TOI” for it to compile in 1.6.\* … with 1.1.1 and 9.5 I get the following output from serial

Free RAM:956  
Setting ESP enable on.  
Reset pin state is:1  
Calling app\_init()  
Entering main loop()  
Sent: AT

Timeout  
ERROR DID NOT RECEIVE: OK

Find “OK  
” len:4 buffer:@0 buflen:0

Timeout  
ERROR, ESP STUCK:  
Find “OK  
” len:4 buffer:@0 buflen:0

Timeout  
ERROR, ESP still STUCK:  
No response from ESP8266 will retry in 60s.

with Nodemcu internal firmware installed, it states similar but with “=” near AT error. Do I need to solder the pads on the bottom to correctly flash, maybe I’m flashing the wrong? Any help greatly appreciate to make use of this nice little device!

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [September 2, 2016, 5:34am UTC](https://bbs.aprbrother.com/t/toi-firmware-on-catus-micro-r2/701/2 "2016-09-02T05:34:18Z")

</div>

Could you please post your sketch here?

---

<div class="post-metadata">

**Author:** ![chaboyap](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@chaboyap](https://bbs.aprbrother.com/u/chaboyap)\
**Post date:** [September 2, 2016, 8:40pm UTC](https://bbs.aprbrother.com/t/toi-firmware-on-catus-micro-r2/701/3 "2016-09-02T20:40:35Z")

</div>

Hello,

I used the github respotory [https://github.com/dherrendoerfer/TOI\_Firmware/tree/master/Cactus\_Micro/beta/TOI\_firmware\_CM](https://github.com/dherrendoerfer/TOI_Firmware/tree/master/Cactus_Micro/beta/TOI_firmware_CM)

Found in the link  
[http://wiki.aprbrother.com/wiki/Cactus\_Micro\_R2\_Tutorial#For\_espduino\_library\_from\_Tuan\_PM](http://wiki.aprbrother.com/wiki/Cactus_Micro_R2_Tutorial#For_espduino_library_from_Tuan_PM)

for 1.6.\* I’ve changed all “prog\_char” to “const char” in all files and it compiles without warnings or error.

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [September 5, 2016, 3:11am UTC](https://bbs.aprbrother.com/t/toi-firmware-on-catus-micro-r2/701/4 "2016-09-05T03:11:52Z")

</div>

Please try these steps:

1. Use Nodemcu-flasher upload the firmware [0.9.5.2-9600.bin](http://abcdn1.qiniudn.com/ai-thinker-0.9.5.2-9600.bin?attname=) to esp8266
2. Upload the sketch TOI to Cactus Micro
3. Test again

Please let me know if this work

---

<div class="post-metadata">

**Author:** ![chaboyap](https://bbs.aprbrother.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@chaboyap](https://bbs.aprbrother.com/u/chaboyap)\
**Post date:** [September 20, 2016, 2:17pm UTC](https://bbs.aprbrother.com/t/toi-firmware-on-catus-micro-r2/701/5 "2016-09-20T14:17:03Z")

</div>

Hello aprilpea,

This did work and communication did between the esp and micro could connect. However for whatever reason all the webpages except the main index would timeout. I suppose the author would need to update the code for this rev or maybe my settings are still somehow incorrect.

---

<div class="post-metadata">

**Author:** ![aprilpea](https://bbs.aprbrother.com/user_avatar/bbs.aprbrother.com/aprilpea/32/9_2.png) [@aprilpea](https://bbs.aprbrother.com/u/aprilpea)\
**Post date:** [September 26, 2016, 2:13am UTC](https://bbs.aprbrother.com/t/toi-firmware-on-catus-micro-r2/701/6 "2016-09-26T02:13:17Z")

</div>

Did you test with original TOI example code?
