RTC_SET_TIME AND SOFT REBOOT

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

RTC_SET_TIME AND SOFT REBOOT

2,051件の閲覧回数
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,937件の閲覧回数
Yuri
NXP Employee
NXP Employee

@anjalikkrishna 
Hello,

  perhaps, cache coherency issue?

 

Regards,
Yuri.

0 件の賞賛
返信

1,932件の閲覧回数
anjalikkrishna
Contributor III

Hi @Yuri ,

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

 

Regards,

Anjali

タグ(1)
0 件の賞賛
返信

1,924件の閲覧回数
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 件の賞賛
返信

2,043件の閲覧回数
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @anjalikkrishna,

Can you let me know which device are you using?

Best Regards,

Alexis Andalon

0 件の賞賛
返信

2,013件の閲覧回数
anjalikkrishna
Contributor III

Hi @Alexis_A ,

 

  Sorry for the late reply.

  The device used is BQ32002

 

Regards,

Anjali

0 件の賞賛
返信

1,975件の閲覧回数
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,959件の閲覧回数
anjalikkrishna
Contributor III

Hi @Alexis_A 

  I am using i.MX6 Solo

 

Regards,

Anjali

0 件の賞賛
返信