Skip to main content
Associate
July 4, 2025
Solved

Error with Smart Cup Detection Example STSW-IMG051 (VL53L7CH)

  • July 4, 2025
  • 1 reply
  • 212 views

Dear all,

I'm trying to reproduce the steps of STSW-IMG051 smart cup detection Example. Running the CupDetectEVK.exe, I get the errors you see on the screenshots.

 

I tried to check whether the sensor itself is working by running the STSW-IMG043 example, and I succeeded. I'm sure the hardware is working fine, but from the errors I see, the .bin supplied in the IMG051 example and the EVK software that comes with it don't seem to be compatible.

There are no source files available for either, so I can't dig into debugging it on my own, hence I'm turning to this portal for help.

Thanks!

Screenshot 2025-07-04 082817.png

Screenshot 2025-07-04 082841.png

 

Best answer by RogerM

From the error messages you posted it looks like you still have the IMG043 firmware binary on the STM32F401 when you ran the CupDetectEVK GUI.

If you scroll back through the output in the command window you should see a lines like this for the IMG051 firmware:
     Sending command : 'version\n'
     Received message: CupDetectKit v1.1.2.17086

While the IMG043 firmware will show the following:
    Sending command : 'version\n'
    Received message: MZ-AI Version 1.0.1

Please check again which firmware binary you have on the STM32F401 EVK.

1 reply

RogerMBest answer
ST Employee
July 7, 2025

From the error messages you posted it looks like you still have the IMG043 firmware binary on the STM32F401 when you ran the CupDetectEVK GUI.

If you scroll back through the output in the command window you should see a lines like this for the IMG051 firmware:
     Sending command : 'version\n'
     Received message: CupDetectKit v1.1.2.17086

While the IMG043 firmware will show the following:
    Sending command : 'version\n'
    Received message: MZ-AI Version 1.0.1

Please check again which firmware binary you have on the STM32F401 EVK.