# Error running BatteryChargerReading tutorial

**URL:** <https://mangoh.discourse.group/t/error-running-batterychargerreading-tutorial/292>\
**Category:** Tutorials\
**Created:** [November 18, 2016, 7:12pm UTC](https://mangoh.discourse.group/t/error-running-batterychargerreading-tutorial/292 "2016-11-18T19:12:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kas.Lewis](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@Kas.Lewis](https://mangoh.discourse.group/u/Kas.Lewis)\
**Post date:** [November 18, 2016, 7:12pm UTC](https://mangoh.discourse.group/t/error-running-batterychargerreading-tutorial/292/1 "2016-11-18T19:12:24Z")

</div>

Hello,

I have attempted to run the BatteryChargerReading demo/tutorial but when I do a logread -f I only see errors (not 100% what I should be seeing but I assume not errors).

 ![](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/1X/fcb979a548057f64740f88ecb7d0f76cadaf966f.png)

From what I understand there is no use of Arduino is this project so I am not sure why I’m getting an arduino bridge error.

Kas

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [November 18, 2016, 7:51pm UTC](https://mangoh.discourse.group/t/error-running-batterychargerreading-tutorial/292/2 "2016-11-18T19:51:08Z")

</div>

Can you post your sdef file ?

---

<div class="post-metadata">

**Author:** ![Kas.Lewis](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@Kas.Lewis](https://mangoh.discourse.group/u/Kas.Lewis)\
**Post date:** [November 20, 2016, 5:01am UTC](https://mangoh.discourse.group/t/error-running-batterychargerreading-tutorial/292/3 "2016-11-20T05:01:29Z")

</div>

@asyal I can’t find a sdef but I assume it’s an adef you are refering too. I have attached it as requested. I should mention I am using the default setup and just running “mkapp -t wp85 batteryReading.adef” on the provided files.

Kas[batteryReading.adef](https://mangoh.discourse.group/uploads/short-url/et62lmiM2nGmRvGeITBNEsMekJo.adef) (351 Bytes)

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [November 20, 2016, 5:37am UTC](https://mangoh.discourse.group/t/error-running-batterychargerreading-tutorial/292/4 "2016-11-20T05:37:21Z")

</div>

can you download program from github again and try?

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [November 20, 2016, 11:20pm UTC](https://mangoh.discourse.group/t/error-running-batterychargerreading-tutorial/292/5 "2016-11-20T23:20:15Z")

</div>

i have tried the program on my unit and dont see the issue.  
Can you show the mangoh.sdef located in /home/mangoh/mangOH/mangOH folder? It seems like you have a modified mangoh.sdef file that might cause an issue.

---

<div class="post-metadata">

**Author:** ![Kas.Lewis](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@Kas.Lewis](https://mangoh.discourse.group/u/Kas.Lewis)\
**Post date:** [November 20, 2016, 11:51pm UTC](https://mangoh.discourse.group/t/error-running-batterychargerreading-tutorial/292/6 "2016-11-20T23:51:45Z")

</div>

Here is my sdef file

Thankfully  
Kas

[mangoh.sdef](https://mangoh.discourse.group/uploads/short-url/gBAkT4lP47vD6TY3gDQVRzRVPKG.sdef) (2.3 KB)

---

<div class="post-metadata">

**Author:** ![Kas.Lewis](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@Kas.Lewis](https://mangoh.discourse.group/u/Kas.Lewis)\
**Post date:** [November 21, 2016, 12:11am UTC](https://mangoh.discourse.group/t/error-running-batterychargerreading-tutorial/292/7 "2016-11-21T00:11:08Z")

</div>

After doing a repo sync there is a difference between the new and old versions. Here is the new version.

Kas

[mangoh.sdef](https://mangoh.discourse.group/uploads/short-url/9mjKbvYT7mabXI2JZL8Q9Z2a5y2.sdef) (2.5 KB)

I should mention that there is no battery attached to my mangOH board as element14 doesn’t ship one with their kits.

---

<div class="post-metadata">

**Author:** ![Kas.Lewis](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@Kas.Lewis](https://mangoh.discourse.group/u/Kas.Lewis)\
**Post date:** [November 21, 2016, 1:39am UTC](https://mangoh.discourse.group/t/error-running-batterychargerreading-tutorial/292/8 "2016-11-21T01:39:43Z")

</div>

After doing a “repo sync” the demo is now working. Thank you for your help.

Kas
