RTC_SET_TIME AND SOFT REBOOT

cancel
Showing results for 
Search instead for 
Did you mean: 

RTC_SET_TIME AND SOFT REBOOT

378 Views
anjalikkrishna
Contributor III

Hi,

 I have a RTC application which sets the time using RTC_SET_TIME ioctl call. After executing the app, the time is being set and I am reading it using RTC_RD_TIME which is working fine. But once the date is set and if I do a soft reboot of the board, next time if I read the date , it is showing an old value. But after a hard reboot the updated value is being displayed.

I tried soft reboot after setting the date through command line using date -s and hwlock -w  comands. In this case also date is being updated without any issue. I  tried an ioctl flush and a system call of hwclock -w from the app after the RTC_SET_TIME ioctl but the value are not being retained after soft reboot.

What is actually happening here?. Can anyone explain.?

0 Kudos
7 Replies

264 Views
Yuri
NXP TechSupport
NXP TechSupport

@anjalikkrishna 
Hello,

  perhaps, cache coherency issue?

 

Regards,
Yuri.

0 Kudos

259 Views
anjalikkrishna
Contributor III

Hi @Yuri ,

 Is there any way cache issue can be solved in software?

 

Regards,

Anjali

Tags (1)
0 Kudos

251 Views
Yuri
NXP TechSupport
NXP TechSupport

@anjalikkrishna 

   There is general recommendation do not use software reset for i.MX
devices; total system POR should be performed in order to avoid issues
with unpredictable states of external devices.

~Yuri.

0 Kudos

370 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @anjalikkrishna,

Can you let me know which device are you using?

Best Regards,

Alexis Andalon

0 Kudos

340 Views
anjalikkrishna
Contributor III

Hi @Alexis_A ,

 

  Sorry for the late reply.

  The device used is BQ32002

 

Regards,

Anjali

0 Kudos

302 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @anjalikkrishna,

Also, can you let me know the MCU/MPU are you using?

Best Regards,
Alexis Andalon

286 Views
anjalikkrishna
Contributor III

Hi @Alexis_A 

  I am using i.MX6 Solo

 

Regards,

Anjali

0 Kudos