rusefi / uaefi

8 stars 11 forks source link

certain UAEFI boards do not initialize 5VP below certain 12v input voltage when they should totally do so cause vehicle batteries can drain lower than that #59

Open ggurov opened 6 months ago

ggurov commented 6 months ago

Some uaefi boards (BAD BOARD) seem to not initialize 5VP regulator (GPIO::E10) when voltage is below 11.4 (ish, we ran some tests on one example board). This leads to a NO START condition. If board is connected to USB, 5VP initializes and everything is fine, even below no start threshold voltage. and power keeps on.

Other board examples (GOOD BOARD) will boot down to 6-7v input voltage just fine.

When this board (BAD BOARD) is powered below booting threshold, DFU mode still works, so MCU is alive and powered.

Same board loaded with 407-disco firmware initializes just fine (which is odd, cause GPIO::E10 is something totally not power enable, it's assigned to something in the stepper territory, so may be it just so happens to work.

Anyway, please make UAEFI initialize 5VP more reliably.

rusefillc commented 6 months ago

@ggurov any more details?

Which revision seems affected? What VBatt does TS show?

Do you have a bad board in NJ? What the minimal set of wires to reproduce the issue?

ggurov commented 6 months ago

both boards bad and good are revA

minimal set of wires is 2-3:

1 ground 2 vign (if only this is hooked up, it raises the threshold, and board is worse at booting at lower voltages ) 3 +12v main (forget what this is called) - if this is hooked up in addition to vign, board will init at lower voltage.

i do not have a power supply that can adjust below 11.6 or so, completely avoiding this. i may look into finding a 9v power brick to test my boards with.

when the board does not boot, COM port does not initialize, and TS will not connect. BUT DFU can be entered with buttons.

when the board does not boot, PE10 (en for U411 secondary regulator) stays low, when the board boots, that's at 3.3v.

when the board does not boot, 5VP led stays off.

rusefillc commented 6 months ago

@ggurov please confirm lack of capacitors next to SD as in https://github.com/andreika-git/hellen-one/issues/353

most (all?) rev B boards were populated with C117 10u, without C123 https://github.com/rusefi/uaefi/blob/main/boards/uaefi-b/board/uaefi-b-BOM-JLC.csv

first runs of rev A was populated with C117 and C123 both 22u which is too much https://github.com/rusefi/uaefi/commit/6264e59fa1d08d1c31c36f5ab17ca58ae2286c37

if you see two capacitors: remove both if you board is affected but has one capacitor - try removing it if you board has an issue without both capacitors please report

rusefillc commented 6 months ago

See also #25

ggurov commented 6 months ago

problem with looking at Vbat is usb connection will initialize the MCU making it turn 5VP on.

we did a test with a usb cable that does not have power connected, good board would initialize and report to TS down to 4.4 volts, bad board would not initialize below 11.4 or so.

ggurov commented 6 months ago

but the bad board could enter DFU via the same powerless usb cable below threshold

ggurov commented 5 months ago

bad board, running disco firmware initializes.

however, if we assign E10 to lets say "main relay", and below about 12.6v turn that on, the board goes offline.

so something is messed up with 5VP regulator, since turning it on causes MCU to go offline.

rusefillc commented 5 months ago

3v goes away, time to replace TLS115?

image

ggurov commented 5 months ago

image

5v bridge to EN on tls115 external 5v regulator, (5v to pin 7)

a fix has been proposed and tested for basic functionality https://rusefi.com/forum/viewtopic.php?f=4&t=2748