cancel
Showing results for 
Search instead for 
Did you mean: 

Using TouchGFX+ThreadX with Ethernet+NETXDuo on STM32N6570-DK board

Louie88
Senior II

I have a simple question. Is it possible to use TouchGFX+ThreadX with enabled Ethernet and NETXDuo SNTP client at a same time in STM32N6570-DK board? In other words: take the TouchGFX ClockExample then in CUBEMX enable the Ethernet port with NETXDuo-SNTP server. Will it cause pin conflict? I mean the Ethernet uses the same pins as LTDC.

I enabled the Ethernet in ClockExample project and I got blank screen and the app was frozen. After removing Ethernet from the project, the analog and digital clocks appeared again on the display.

Thanks,

Louis

1 ACCEPTED SOLUTION

Accepted Solutions
STackPointer64
ST Employee

 

Hello,

As mentioned by @Osman SOYKURT, using RMII mode does not create pin conflicts between peripherals, and that is the mode that should be selected.

The reason you are getting a blank screen is most likely due to Ethernet buffers overlapping with TouchGFX's. To solve this, I suggest following an STM32N6 NetXDuo example from the repository. This will add the proper function calls and configurations needed to allocate data pools, create necessary threads, and initialize protocols. An example such as NX_MQTT_Client could help. Make sure that Ethernet descriptors and buffers do not overlap with the TGFX application.

Best regards,

To improve visibility of answered topics, please click 'Accept as Solution' on the reply that resolved your issue or answered your question.

View solution in original post

3 REPLIES 3
Osman SOYKURT
ST Employee

Hello @Louie88 ,

I'm not a specialist with ETH and NETXDuo but when I try to enable those from STM32CubeMX with the N6 TBS that we provide (ThreadX version), I don't get conflicts (at least when I use RMII mode for ETH, which I believe is the correct setting? @STackPointer64 could you help?)

Osman SOYKURT
ST Software Developer | TouchGFX
Osman SOYKURT
ST Employee

Hello @Louie88 , have you been able to resolve your issue?

Osman SOYKURT
ST Software Developer | TouchGFX
STackPointer64
ST Employee

 

Hello,

As mentioned by @Osman SOYKURT, using RMII mode does not create pin conflicts between peripherals, and that is the mode that should be selected.

The reason you are getting a blank screen is most likely due to Ethernet buffers overlapping with TouchGFX's. To solve this, I suggest following an STM32N6 NetXDuo example from the repository. This will add the proper function calls and configurations needed to allocate data pools, create necessary threads, and initialize protocols. An example such as NX_MQTT_Client could help. Make sure that Ethernet descriptors and buffers do not overlap with the TGFX application.

Best regards,

To improve visibility of answered topics, please click 'Accept as Solution' on the reply that resolved your issue or answered your question.