BRT Community
General Category => Discussion - EVE => Topic started by: Hola on November 10, 2023, 05:22:20 AM
-
The program does not run properly and the device hangs when Evecmd32_Text command is used. When the command is commented, it works fine.
-
Hi,
Could you advise on what the implementation of your text command is in your library?
For text, make sure to terminate the string and to pad the string so that the whole command is a multiple of 4 bytes (or ensure the next command begins at a 4-byte aligned address in the command buffer, depending on how you do your RAM_CMD writes).
Best Regards, BRT Community
-
Can you please give an example code snippet for this?
-
Hi,
You can find an example in this Github repository (see line 59)
https://github.com/Bridgetek/EveApps/blob/7b5c27dc6be73e62a2dab38c3e444ba36cea516e/common/eve_hal/EVE_CoCmd_Widgets.c
We also have one in this file (line 1042)
https://github.com/Bridgetek/EVE-MCU-BRT_AN_025/blob/main/source/EVE_API.c
Best Regards, BRT Community