Trenz Electronic Products > UltraScale

TEB0911 - real time clock (RTC) question/problem

(1/3) > >>

mt-user-2019:
Hello,

Thank you everyone for your support.

For the problem that I am describing here we are using the prebuilt linux distribution from trenz ( but I have the same problem with our own distribution)

On a TEB0911 I do not succeed to make the HWCLOCK working
I set the date with the date command and I use HWCLOCK -w to set the hardware from system time at this point I can see that the time does not 'move'
I tried HWCLOCK -d /dev/rtc0 with the same resutl -> the time is not increasing

If some one could give me a hand I will be glad.

Regards
M

mt-user-2019:
Hello,

Follow up.

I am still a complet begginer...

On the schematic I can see the battery holder connected to the BANK 503 PSCONFIG. So the RTC seems to be 'build in' the zynq ultra scale.

in this document https://docs.xilinx.com/v/u/en-US/xapp1323-zynq-usp-tamper-resistant-designs
they talk about "(The VCC_PSBATT pin maximum input current ICC_PSBATT is between 3650 and 150 nA depending on the battery voltage and whether the real-time clock (RTC) is enabled or disabled."

So i guess I should find a place to enable it.

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841986/Zynqmp+RTC
The Zynq® UltraScale+™ MPSoC real time clock (RTC) provides the real time even when the device is powered off. When the device is off, the RTC is switched to the battery power supply. A battery-backed RAM (BBRAM) is provided for when device is operating in the battery mode. However, the RTC controller and user interface are only operational when the low-power domain supply is ON. The RTC has an alarm function that generates an alarm at a specific time and date with a 136-year range. The RTC also has periodic software calibration and logic to correct the static fractional inaccuracy of an oscillator.

So i guess I have to do "Kernel Configuration" because it is not done by default on the trenz exemple?


I post all of that in case some one need that info later OR if someone want to comment :)

BR
M

JH:
Hello,


--- Quote ---So i guess I have to do "Kernel Configuration" because it is not done by default on the trenz exemple?
--- End quote ---
Yes that was my first guess as well. We have tested this once on another U+ Zynq modul (TE0803), there it works without further kernel configuration. The problem you describe we could reproduce on a TEB0911 with the same Vivado/Petalinux version, like we have used on the TE0803 module. We will check this and I will get back to you. But I am now on vacation, so it will take a while.

br
John

mt-user-2019:
Hello John,

As usual you are everywhere on this forum replying us about our doubt and questions... thanks again JH.

Well enjoy you vacation.

I will keep an eye on trenz forum until trenz's team post something about it.

BR
M

mt-user-2019:

--- Quote from: JH on April 11, 2022, 07:30:32 AM ---But I am now on vacation, so it will take a while.

--- End quote ---

Hello John,

I know you and your team are very busy people so I 'pop' this message 'up' as a kind reminder.
I encounter also an other 'problem' with USB port that are not always working. I will open a new forum topic for that

Best regards
M

Navigation

[0] Message Index

[#] Next page

Go to full version