cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX project: FreeRTOS or ThreadX available, but not AzureRTOS ?

Louie88
Senior II

Hello,

I successfully improved the TouchGFX based Clock Example demo app to use RTC chip (and LSE crystal clock) of the N6570 MCU. Because the STM32N6570-DK board does not provide backup battery the RTC loses the current date/time during every power off. One solution would be to sync the RTC chip with an SNTP server via Internet. I successfully solved this with STM32H7474I-DISCO board with LwIP and SNTP client, but the STM32N6570-DK board does not support LwIP.

I found an example for the STM32N6570-NUCLEO-144 board which is probably similar (or close) to STM32N6570-DK board. The problem is that the found Nx_SNTP_Client application uses NetXDuo and AzureRTOS while my project runs under FreeRTOS op system.

How can I solve this? When create a new TouchGFX project I can choose between FreeRTOS or ThreadX op systems only. I can't use AzoreRTOS...

Can anybody help?

Thanks,

Louis

 

4 REPLIES 4
Louie88
Senior II

Dear mƎALLEm,

Thank you for changing/fixing the title of my post. Maybe it was complicated or it was a bit foggy...

All what I need is to connect to an SNTP server and sync the RTC from a TouchGFX application running on STM32N6570-DK discovery board.

Thanks,

Louis

 

 

Andrew Neil
Super User

@Louie88 wrote:

I can choose between FreeRTOS or ThreadX op systems only. I can't use AzoreRTOS...


ThreadX is AzureRTOS !

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
Louie88
Senior II

Thanks Andrew!

I did not know that!

So, if I create a new TouchGFX project under ThreadX (Not under FreeRTOS) then I probably will be able to enable NetXDuo and SNTP client. The only problem is that Nx_SNTP_Client example for the STM32N6570-NUCLEO-144 board does not have Nx_SNTP_Client*.ioc file so I have no idea how to setup the SNTP Client in STM32CubeMX..

Thanks for your help!

Louis

Osman SOYKURT
ST Employee

Hello @Louie88 ,

We have a TBS with STM32N6570-DK running ThreadX if you need that to help you to start prototyping :)

Osman SOYKURT
ST Software Developer | TouchGFX