This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3356: AM3356:What causes RTC errors and how to avoid them

Part Number: AM3356

Hi expert

This is my first post.

When we configure the RTC settings, the following error may occur.

「rtc rtc1: __rtc_set_alarm: err=-22」

We not setting alarm.

Occurs when calling ioctl() with RTC_SET_TIME.

Why does it occur?

Also,is there a way to prevent the error?

SDK Version 08.02.00.24、RTC rs5c372

Thanks

  • Linux error code 22 means "invalid argument".

    Please note that we cannot support questions about non-TI parts on the TI forums (RTC rs5c372), so I am going to be limited in the help I can offer you here.

    The error code is coming from linux drivers/rtc/interface.c. You could check the driver and see if it gives you additional clues about what is going on - perhaps your ioctl call is using an unexpected input?

    Regards,

    Nick