Skip to main content
Associate
July 24, 2024
Question

VL53L5CX -- Does libGesturesMZ_m4.a support Cortex-M4F processors?

  • July 24, 2024
  • 2 replies
  • 1229 views

I want to operate the VL53L5CX to accomplish gesture recognition operations using an ARM Cortex-M4F microcontroller chip. So can libGesturesMZ_m4.a be used with Cortex-M4F?

I am trying to port the en.STSW-IMG035_F401 project to an ARM Cortex-M4F controller chip and the HT_set_square_resolution() function returns -5 at runtime.
Operation flow: lmz_platform_init -> vl53lmz_init -> gesture_library_init_configure(Err -5, HT_set_square_resolution() failed).

2 replies

hx_itAuthor
Associate
July 25, 2024

Can a friend help?

Technical Moderator
September 27, 2024

Hi hx,

the error code -5 means that your resolution is not a square. Are you sure to input the value 64 ?

Regarding the ARM core, the library has been compiled for Cortex-M4, I have no idea if it's compatible with your Cortex-M4F (and I didn't know it before your post).

Thanks, Yann

Our community relies on fruitful exchanges and good quality content. You can thank and reward helpful and positive contributions by marking them as 'Accept as Solution'. When marking a solution, make sure it answers your original question or issue that you raised. ST Employees that act as moderators have the right to accept the solution, judging by their expertise. This helps other community members identify useful discussions and refrain from raising the same question. If you notice any false behavior or abuse of the action, do not hesitate to 'Report Inappropriate Content'
Technical Moderator
September 27, 2024

Hi hx,

the error code -5 means that your resolution is not a square. Are you sure to input the value 64 ?

Regarding the ARM core, the library has been compiled for Cortex-M4, I have no idea if it's compatible with your Cortex-M4F (and I didn't know it before your post).

Thanks, Yann

Our community relies on fruitful exchanges and good quality content. You can thank and reward helpful and positive contributions by marking them as 'Accept as Solution'. When marking a solution, make sure it answers your original question or issue that you raised. ST Employees that act as moderators have the right to accept the solution, judging by their expertise. This helps other community members identify useful discussions and refrain from raising the same question. If you notice any false behavior or abuse of the action, do not hesitate to 'Report Inappropriate Content'