BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: Evecmd32_Text not working  (Read 8198 times)

Hola

  • Newbie
  • *
  • Posts: 1
    • View Profile
Evecmd32_Text not working
« 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.
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 746
    • View Profile
Re: Evecmd32_Text not working
« Reply #1 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
Logged

HEYYA

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Evecmd32_Text not working
« Reply #2 on: January 11, 2024, 09:27:41 AM »

Can you please give an example code snippet for this?
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 746
    • View Profile
Re: Evecmd32_Text not working
« Reply #3 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

Logged