Thanks for your response. Was able to figure it out and everything is working fine now.
But I am now encountering a challenge, to get the RTC working, I needed to add the library to the IDE. When the library is in the internal memory of the OpenMV Cam, the time is always accurate with no problem. However, when I insert SD card, I am not able to access the library from the internal memory, so I will need to add it to the SD card. But when I access the library from the SD, the time will no longer be correct, there will be an offset of about a day and some hours. After resetting the time, it will be fine, but after disconnecting and reconnecting the board, the problem of time offset will happen again. I tried adding it to document folder of the OpenMV IDE, but when accessing it from the IDE, it will still need to be added to the SD card first.
I am therefore considering two options,
- A way to save the library in the internal memory such that it will remain there permanently, that way I will not need to access the library from the SD card.
- A way to frozen the module and add it to the firmware so that it will be added to the list of inbuilt modules/functions so that I can access it.
Any suggestions on how to do this or other potential solutions to help resolve this problem will be appreciated. Thanks.