MKR-1500 won't Boot with Sensor connected to SDA

Hi all,

I’ve connected a VL53L5CS-SATEL ToF sensor to the MKR NB 1500 via the SDA and SCL lines, and everything works fine when powered and programmed via USB.

However, if I first unplug the USB and then power the board with a battery, the MKR NB 1500 fails to boot. After troubleshooting, I found that disconnecting the SDA line allows the board to boot, and I can reconnect it afterward without issues.

Obviously, manually disconnecting SDA at startup isn’t practical. Are there any workarounds to prevent the sensor from interfering with the boot process?

Thanks in advance!

Hi there and welcome!

Does it matter if the sensor is turned on or not when the MKR is powered up?

My idea was to have the SDA/SCL pins connected as part of the HW design. Can not control the sensor before boot finished, so kind of deadlock.

Sure, but I'm not addressing that for the moment. I'm curious to if the behaviour is different whether the sensor is on or not.

How about a schematic or diagram as well?

Where does the VL53L5CS-SATEL get its power from?

The schematics, I have no components on my own

https://www.st.com/resource/en/schematic_pack/vl53l5cx-satel-schematics.pdf

If sensor is completely disconnect, MKR booting fine. Then 3V3 and GND is wired from MKR to sensor, and SDA/SCL wired as well, 5V is not wired. It does not matter if EVK_PWR_EN is set to GND or +3V3 .

I know where to find Arduino schematics, the circuit that's interesting here and for us to help you better is your circuit, even if it sounds like a simple one.

This is the wiring, D2, D4 and D7 disconnected, and putting EVK_PWR_EN either to GND or +3V3, but make no difference to booting behaviour.

What about EVK_AVDD?

No, +3V3 to EVK_AVDD does not help on booting the MKR

but it's required by the VL53

What pullup resistors are used?

From the arduino schematics, I find 4k7 to +3V3 for SDA/SCL (R13 and R14).
From ST schematics I find 2k2 for SDA/SCL (R4 and R5) to IO_VDD
In parallell that would become 1k5. Maybe that becomes to small?

EVK_AVDD when supply from +5V, which is fine for USB, but now for battery power the EVK_IOVDD I think only must be used.

According to the schematic you provided, the VL53 IC AVDD comes from the output of the 3.3V regulator but you need to cut a jumper and solder another if you don't use the regulator.

Howvere, you say it works correctly when connected via USB so the schematics must be different somehow.

Yes, slightly different schematics when connected to USB, then +5V from MKR wired to AVDD. And +3V3 to IOVDD. Maybe not right, but it works, MKR boots as it should.
Notice my schematic was updated after 2 minutes, wiring +3V3 with IOVDD.

Using only battery nominal 3.7V, AVDD is disconnected and MKR does not boot. Does not boot when AVDD is connected to +5V either, but I don't think AVDD should be wired for battery.

No, you still need AVDD so that is probably the problem.

1 Like

You are right. Now it works. Thanks a lot for your guidance!! Rest of this Sunday saved now.
Best regard, John

1 Like

Have a nice day!

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.