SDK issue with SPI for RTC access ?

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

SDK issue with SPI for RTC access ?

ソリューションへジャンプ
979件の閲覧回数
cerny
Contributor II

Need periodically (MCUxpresso, SDK only) read out values from sensors and store to flash incuding time stamp.

RTC library - trying to use sensors/pcf2123.h from SDK, but seems missing functions around SPI, which are required for callback:
pcf2123_fct.SPI_Read
pcf2123_fct.SPI_Write

uint8_t (*SPI_Read)(uint8_t *writeBuf, uint8_t *readBuf, uint32_t readSize); /*!< External SPI read function */
uint8_t (*SPI_Write)(uint8_t *writeBuf, uint32_t writeSize); /*!< External SPI read function */

Could you please point out SDK functionality here ?

Thank you!

Stanislav

ラベル(1)
0 件の賞賛
1 解決策
883件の閲覧回数
frq05186
NXP Employee
NXP Employee

Hi,

This is a bit long one - It is true that PCF drivers in SDK are not self sufficient.

RTC is used in Rapid IoT OOB application: When phone connects to kit, time is updated and then RTC is used to keep time up to date.

I advise you take a look on how it is being implemented on OOB example and adapt to your needs.

pastedImage_1.png

You shall find all API in datetime_mk64f.c as well as links to the other drivers you will need (spi.c, spi_mk64f.c...)

Eric

元の投稿で解決策を見る

2 返答(返信)
884件の閲覧回数
frq05186
NXP Employee
NXP Employee

Hi,

This is a bit long one - It is true that PCF drivers in SDK are not self sufficient.

RTC is used in Rapid IoT OOB application: When phone connects to kit, time is updated and then RTC is used to keep time up to date.

I advise you take a look on how it is being implemented on OOB example and adapt to your needs.

pastedImage_1.png

You shall find all API in datetime_mk64f.c as well as links to the other drivers you will need (spi.c, spi_mk64f.c...)

Eric

883件の閲覧回数
cerny
Contributor II

Hi Eric,

highly appreciate your support!

Thank you, we already solved the SDK issue by utilization and separation of Athmosphere code as mentioned above and our RTC is now working.

Just in another thread provided some hints in order to prevent other users to seek as well, despite to little bit missing element for pcf in Athmosphere and gap in SDK.

Again thank you!

Best Regards

Stanislav

0 件の賞賛