RTC_SET_TIME AND SOFT REBOOT

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

RTC_SET_TIME AND SOFT REBOOT

1,581 次查看
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 项奖励
7 回复数

1,467 次查看
Yuri
NXP Employee
NXP Employee

@anjalikkrishna 
Hello,

  perhaps, cache coherency issue?

 

Regards,
Yuri.

0 项奖励

1,462 次查看
anjalikkrishna
Contributor III

Hi @Yuri ,

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

 

Regards,

Anjali

标记 (1)
0 项奖励

1,454 次查看
Yuri
NXP Employee
NXP Employee

@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 项奖励

1,573 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @anjalikkrishna,

Can you let me know which device are you using?

Best Regards,

Alexis Andalon

0 项奖励

1,543 次查看
anjalikkrishna
Contributor III

Hi @Alexis_A ,

 

  Sorry for the late reply.

  The device used is BQ32002

 

Regards,

Anjali

0 项奖励

1,505 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @anjalikkrishna,

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

Best Regards,
Alexis Andalon

1,489 次查看
anjalikkrishna
Contributor III

Hi @Alexis_A 

  I am using i.MX6 Solo

 

Regards,

Anjali

0 项奖励