Skip to main content
Associate II
August 5, 2024
Solved

Warning : current language does not match this frame.

  • August 5, 2024
  • 1 reply
  • 3966 views

Hello,

I'm currently learning how to use an STM32H7B3I-EVAL, I'm just starting out. I'm trying to debug a simple TouchGFX project with only a slider with STM32CubeIDE.

The problem is that when debugging I get a warning:

Warning: the current language does not match this frame. 
set *(int *)0xE000EDFC=*(int *)0xE000EDFC|0x7F0

rozeelc_0-1722852603717.pngrozeelc_1-1722852621598.pngrozeelc_2-1722852649629.png

rozeelc_3-1722852670825.png

I use : TouchGFX 4.20

           CubeIDE 1.9

Does anyone have an explication please?

Best answer by Mohammad MORADI ESFAHANIASL

Yes, Swipe Container has a member function called getSelectedPage() that returns the page that is currently displayed.

You can use handleDragEvent(const DragEvent& Event) to detect when the container is swiped, so you can change your text. For instance:

void Screen1View::handleDragEvent(const DragEvent& Event)
{
 Screen1ViewBase::handleDragEvent(Event);
 uint8_t pageNumber = swipeContainer.getSelectedPage();
 
 switch (pageNumber)
 {
 case 0:
 //Update the text for the first page
 break;
 case 1:
 //Update the text for the second page
 break;
 case 2:
 //Update the text for the thrid page
 break;
 default:
 break;
 }
}

I hope this helps you!

1 reply

ST Employee
August 6, 2024

Hello @rozeelc,

I tried to replicate the project you have, but I didn't encounter the issue you mentioned. 

Are you using the available TouchGFX Board Setup (TBS) for STM32H7B3I-Eval? 

TBS for STM32H7B3I-EvalTBS for STM32H7B3I-Eval

I also noticed that in your debugger, no External Loader is selected. Do you still manage to start the debugger? 

rozeelcAuthor
Associate II
August 7, 2024

Hello @Mohammad MORADI ESFAHANIASL ,

I'm sorry for the inconvenience. I managed to resolve the initial problem by selecting an External Loader. However, I now have another question and I hope you can help me.

I apologize if there are any errors, I am French.

I am working on creating a mixing console with 512 sliders. I have created a page with 8 sliders, and it is necessary to swipe to switch from one set of sliders to another. Above each slider, I want to display its value. My problem is that to display the value of the slider, I have to create a new interaction for each one.

rozeelc_0-1723033615594.png

I would like to know if TouchGFX can handle more than 512 interactions and if there is a simpler way to achieve what I want.

Thank you in advance for your help.

ST Employee
August 7, 2024

I'm glad you fixed the first issue :D

To have a better architecture for your GUI, I suggest creating a Custom Container that contains the slider and a text area to show its value, then you can easily control the interactions inside the container. 
Then, you can place your custom container instances inside a Swipe Container to accommodate all of them in a container that supports multiple pages. 

I hope this helps you achieve what you need.