# RTC Device not working

**URL:** <https://forum.xod.io/t/rtc-device-not-working/2596>\
**Category:** Uncategorized\
**Created:** [September 20, 2019, 10:43am UTC](https://forum.xod.io/t/rtc-device-not-working/2596 "2019-09-20T10:43:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmadnaweedxod](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/ahmadnaweedxod/32/1482_2.png) [@ahmadnaweedxod](https://forum.xod.io/u/ahmadnaweedxod)\
**Post date:** [September 20, 2019, 10:43am UTC](https://forum.xod.io/t/rtc-device-not-working/2596/1 "2019-09-20T10:43:26Z")

</div>

When I try to update “rtc-read” to get date and time values from the device, everything jams!  
can anyone help?

 ![temp2](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/f/f03a93d0b77baf6c674309bb5b131078b7e730c5.jpeg)  
 ![temp](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/b/b27974212a282e0f7e8460cb830429b18defd6bc.jpeg)

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [September 20, 2019, 3:58pm UTC](https://forum.xod.io/t/rtc-device-not-working/2596/2 "2019-09-20T15:58:34Z")

</div>

there is a problem with readings, the update of the display is in loop, the program cannot read the data in time an error occurs. the pulse to UPD must arrive after the reading was made.

I already had a mistake like that

> [@Problem with code generated too big in 0.30.1 vs 0.29.1](https://forum.xod.io/t/problem-with-code-generated-too-big-in-0-30-1-vs-0-29-1/2456/5):
>
> I did a test deactivating ERR on all the nodes of rtc and yes, the consumption of resources was reduced. Sketch uses 20616 bytes (63%) of program storage space. Maximum is 32256 bytes. Global variables use 1753 bytes (85%) of dynamic memory, leaving 295 bytes for local variables. Maximum is 2048 bytes. Low memory available, stability problems may occur.

---

<div class="post-metadata">

**Author:** ![ahmadnaweedxod](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/ahmadnaweedxod/32/1482_2.png) [@ahmadnaweedxod](https://forum.xod.io/u/ahmadnaweedxod)\
**Post date:** [September 20, 2019, 4:05pm UTC](https://forum.xod.io/t/rtc-device-not-working/2596/3 "2019-09-20T16:05:36Z")

</div>

I thought about that and connected the DONE pin of the rtc-read to the UPD pin of the display, still the same result. And just for more info I am using Arduino Mega 2560.

 ![temp](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/2/23d6d6ba0fd011ccae6f3b5ddcf337b4cf01ea6b.jpeg)

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [September 20, 2019, 4:13pm UTC](https://forum.xod.io/t/rtc-device-not-working/2596/4 "2019-09-20T16:13:55Z")

</div>

When debug is running, open rtc and you will see that the problem is read. Maybe it will be solved in a new version, but now you can comment on the first line in “read i2c” node

```auto
//#pragma XOD error_raise enable 
o 
#pragma XOD error_raise disable

```

it’s because of an i2c read error

---

<div class="post-metadata">

**Author:** ![ahmadnaweedxod](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/ahmadnaweedxod/32/1482_2.png) [@ahmadnaweedxod](https://forum.xod.io/u/ahmadnaweedxod)\
**Post date:** [September 20, 2019, 4:15pm UTC](https://forum.xod.io/t/rtc-device-not-working/2596/5 "2019-09-20T16:15:42Z")

</div>

Ok, I will see. Thanks.
