Touch GFX #5. How to Send UART data to GUI || Sample from Interrupt

  Рет қаралды 10,057

ControllersTech

ControllersTech

Күн бұрын

Пікірлер: 26
@rachidtigua7328
@rachidtigua7328 5 ай бұрын
I don’t understand why you are using uartData_q->Data without initialization of pointer uartData_q (null pointer) 5:49
@Aleexc2000
@Aleexc2000 Жыл бұрын
Would you make one video about the OTA, Over The Air programming for STM32 wireless MCU?
@cherniyosri8669
@cherniyosri8669 Жыл бұрын
hello and thanks for the video I'm currently working on multiple screen project... actually 17 screen, each screen receives specific data from uart and displays it , I'm having an issue with modelListener,, when i use the instance to call a specific function in the model::tick, it tells me that the function is undefined in the other screens!! which is what i want! please I've been stuck here for almost two weeks and this is my final year project, i would be grateful for any help ',!
@LunaNLR
@LunaNLR Жыл бұрын
In the ModelListener.h, declare the function as "virtual void uart_Data (char *data) {}" (notice the change of ; to {}). This way the default implementation will be empty and not undefined.
@cherniyosri8669
@cherniyosri8669 Жыл бұрын
@@LunaNLR thanks for the reply! i tried that as first solution but then data won't display on any screen, but as an update i tried something esle and it eventually worked, i define the function as void in the screenpresenter.h of the screen that i won't need the data to be displayed in! yet i don't know if it makes sense or not!
@DridiAbdelkader-n7o
@DridiAbdelkader-n7o Жыл бұрын
Hello , great work one question , i have a project with multiple screens and each screen receives specific data over UART , i tried to implement the same structure of this project on mine and i have issues with the model.cpp ,,, any idea or help on this
@SimonKas112
@SimonKas112 Жыл бұрын
I tried this with the Riverdi display, but I always get into HardFault Handler after leaving the line modelListener->uart_Data (RData); There's an ErrorMessage: No source available for "touchgfx::HAL::tick() at 0x8021dce"... Found no way to fix this, maybe someone has got an idea?
@ControllersTech
@ControllersTech Жыл бұрын
seems like a lot of people are getting issues with the Riverdi. I will make 2 3 more videos with the display, so that you guys can get an idea of how to make it work.
@SimonKas112
@SimonKas112 Жыл бұрын
Thank you very much!!!
@АлександрДаскаль-е6т
@АлександрДаскаль-е6т 5 ай бұрын
I also had the same problem. There is some kind of problem with pointers to the uartData_t structure. Instead of pointers, I used the structure itself as an object, and everything became OK! I'm sorry for the poor translation, I don't speak English.
@bedirhankoksoy993
@bedirhankoksoy993 Жыл бұрын
Hi, I am using STM32H735-DK Kit. I configured the touchGFX settings and I generated the code. But when I was open the STM32CubeIde, I didn't see the auto UART configuration. So I wonder why I didn't see the auto UART config. Do you have any solution for this?
@ControllersTech
@ControllersTech Жыл бұрын
What is auto uart config ?
@bedirhankoksoy993
@bedirhankoksoy993 Жыл бұрын
@@ControllersTech I mean, in the 02:37 minutes of the video you said UART already selected. But when I tried with the STM32H735-DK Kit it's not selected.
@ControllersTech
@ControllersTech Жыл бұрын
What's the big issue ? You can select it manually. Different boards may enable / disable additional things, it depends on the script ST wrote for the partiular board.
@saeedomidvari6885
@saeedomidvari6885 Жыл бұрын
I have this error in IAR! Error[Li005]: no definition for "Virtual function table for ModelListener" [referenced from ...\Obj\TouchGFX\gui\screen1_screen\Screen1Presenter.o]
@ControllersTech
@ControllersTech Жыл бұрын
Remove the word virtual from the function you defined in thr modellistener. And define it as an empty function. Void function (arg) {}
@amorftor
@amorftor Жыл бұрын
strncpy(RData, uartData_r->Data, uartData_r->size); modelListener->uart_Data(RData); is says cannot convert 'int*' to 'const char*' but my all codes same as you what can i do
@ControllersTech
@ControllersTech Жыл бұрын
Check your uartData_r structure. I guess you have defined “Data” as an integer array instead of character array
@sopandhaye2327
@sopandhaye2327 11 ай бұрын
hello sir I have same board i want to send data through GUI to modbus RTU(rs485) and received on GUI my modbus communication with slave is successfull but i want to print the received data on display and i am trying to add bodbus_CRC file in the project but there is no core with Inc and Src file to add it help me on this
@ControllersTech
@ControllersTech 11 ай бұрын
Its in the main project folder, not inside the cubeide folders.
@Karthikm-hv5ob
@Karthikm-hv5ob Жыл бұрын
How to view printf output on display?
@tomaszbartnik1966
@tomaszbartnik1966 2 ай бұрын
Aby przekazać wskaźnik do struktury przez kolejkę w STM32 z użyciem FreeRTOS, musisz dynamicznie alokować pamięć dla struktury
@tomaszbartnik1966
@tomaszbartnik1966 2 ай бұрын
wsk_bufor_t = (bufor_t *)malloc(sizeof(bufor_t)); // Alokacja pamięci if (wsk_bufor_t == NULL) { // Obsługa błędu alokacji pamięci Error_Handler(); } } void cleanup_bufor() { if (wsk_bufor_t != NULL) { free(wsk_bufor_t); // Zwolnienie pamięci wsk_bufor_t = NULL; // Ustawienie wskaźnika na NULL po zwolnieniu } }
@rafaldrzewiecki3056
@rafaldrzewiecki3056 7 ай бұрын
Riverdi with Stm32Cube is isnt compatibile, when use cube later TouchGfx not working. This display is expensive and support is like children. Not helped
@ControllersTech
@ControllersTech 6 ай бұрын
Riverdi STM32U5 is fully compatible with regeneration from STM32cube. kzbin.info/www/bejne/opnNemWKapdqe9Esi=MR7T5Brh0R1PaFvq
@lehuythanh3882
@lehuythanh3882 3 ай бұрын
I got the error as follow: C:/TouchGFXProjects/SendUARTtoGUI/TouchGFX/gui/src/model/Model.cpp:25:34: error: 'RData' was not declared in this scope 25 | strncpy (RData, uartData_r->Data, uartData_r->size); | ^~~~~ make: *** [Application/User/gui/subdir.mk:30: Application/User/gui/Model.o] Error 1 "make -j6 all" terminated with exit code 2. Build might be incomplete.
How to Update the TouchGFX GUI from other tasks
23:27
embryonic.dk
Рет қаралды 14 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 588 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 22 МЛН
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
Touch GFX #3. Send data to UI || Sampling from the GUI task || MVP
15:10
Touch GFX #8. Send Data from UI to MCU || UART
12:20
ControllersTech
Рет қаралды 6 М.
Anthropic MCP + Ollama. No Claude Needed? Check it out!
18:06
What The Func? w/ Ed Zynda
Рет қаралды 6 М.
Touch GFX #7. How to Implement Keyboard
14:05
ControllersTech
Рет қаралды 9 М.
programming projects that taught me how to code
9:49
isak
Рет қаралды 312 М.
TOUCH GFX #2. Counter || Text Area || Wildcards
13:19
ControllersTech
Рет қаралды 18 М.
Touch GFX #6. How to run Multiple Screen Project || Reverse MVP
14:56
ControllersTech
Рет қаралды 9 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 219 М.
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4 МЛН
Using Serial.read() with Arduino | Part 1
10:30
Programming Electronics Academy
Рет қаралды 140 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 588 М.