BRT Community

General Category => Discussion - EVE => Topic started by: Hola on November 10, 2023, 05:22:20 AM

Title: Evecmd32_Text not working
Post 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.
Title: Re: Evecmd32_Text not working
Post by: BRT Community on November 10, 2023, 11:53:13 AM
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
Title: Re: Evecmd32_Text not working
Post by: HEYYA on January 11, 2024, 09:27:41 AM
Can you please give an example code snippet for this?
Title: Re: Evecmd32_Text not working
Post by: BRT Community on January 18, 2024, 03:56:29 PM
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