Skip to main content
Associate II
August 21, 2024
Solved

Problem while sending a LIN frame from touchGFX

  • August 21, 2024
  • 3 replies
  • 1482 views

I tried to send a LIN frame by creating a task .
The code didn't conatin any error but the frame wasn't sent 
What could be the problem ? 
This is my project 

Best answer by Mohammad MORADI ESFAHANIASL

Hello @Oussama_Baklouti,

As @mƎALLEm mentioned, there are no custom code for the sendData() function that you have defined for your button. Please refer to the following documentations to learn about communication of TouchGFX with backend.

Backend Communication 

MVP Design Pattern 

Screen Definition 

You can also take a look at the Board Specific Demos available in the TouchGFX Designer, like STM32F746G-Disco Intertask Communication Demo

STM32F476G-Disco Board Specific DemoSTM32F476G-Disco Board Specific Demo

I hope this helps you! 

3 replies

mƎALLEm
Technical Moderator
August 21, 2024

Hello,

This is not TouchGFX subject and I'm wondering why you start with a complex example to debug LIN while you can start with a very simple one?

Start with a simple LIN project and debug it before going forward with TouchGFX and FreeRTOS.

 

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Associate II
August 21, 2024

I tried a simple LIN project "sending a LIN frame" using an ST board and it worked fine but when i used touchGFX the frame wasn't sent 

 

mƎALLEm
Technical Moderator
August 21, 2024

@Oussama_Baklouti wrote:

I tried a simple LIN project "sending a LIN frame" using an ST board and it worked fine but when i used touchGFX the frame wasn't sent 

 


This statement is important to locate the issue and normally it should said from the beginning ;)

So you have an issue in your GUI programming. I let my TouchGFX colleagues help you.

It's related to this thread: https://community.st.com/t5/stm32-mcus-products/endless-loop-when-running-scb-enabledcache/td-p/710257

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
ST Employee
August 29, 2024

Hello @Oussama_Baklouti,

As @mƎALLEm mentioned, there are no custom code for the sendData() function that you have defined for your button. Please refer to the following documentations to learn about communication of TouchGFX with backend.

Backend Communication 

MVP Design Pattern 

Screen Definition 

You can also take a look at the Board Specific Demos available in the TouchGFX Designer, like STM32F746G-Disco Intertask Communication Demo

STM32F476G-Disco Board Specific DemoSTM32F476G-Disco Board Specific Demo

I hope this helps you!