Skip to main content
Associate
November 7, 2025
Solved

Source available for STSW-IMG041 Device Code ?

  • November 7, 2025
  • 2 replies
  • 238 views

Hi,

I would like to know if the STSW-IMG041 code that is flashed into the device is available somewhere. My goal would be to use the same code but on a custom board to verify that the sensor is working properly.

Thank you! 

Best answer by Zhiyuan.Han

Hi

STSW-IMG041 is the VL53L8CX GUI package, the code is not avaliable on www.st.com, if you want to test TOF on you own board, you can try to port and run the ULD example to check your customer board. 

STSW-IMG040 | Product - STMicroelectronics

 

br

Zhiyuan.Han

2 replies

Associate
November 9, 2025

The code that gets downloaded into the sensor is included in one of the .h files.

It's a huge declared array. 

But if you start at the API, have a look at the .h include files. One of them is huge. 

And there's really nothing in it except for one huge define. 

- john

"If this or any post solves your issue, please mark them as ""Accept as Solution"". It really helps the next guy.And if you notice anything wrong do not hesitate to ""Report Inappropriate Content"".I am a recently retired ST Employee. My former username was John E KVAM."
Zhiyuan.Han
Zhiyuan.HanBest answer
Technical Moderator
November 11, 2025

Hi

STSW-IMG041 is the VL53L8CX GUI package, the code is not avaliable on www.st.com, if you want to test TOF on you own board, you can try to port and run the ULD example to check your customer board. 

STSW-IMG040 | Product - STMicroelectronics

 

br

Zhiyuan.Han

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.