Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Apr 7, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@ggurov
Copy link

ggurov commented Apr 7, 2024

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
Copy link
Contributor

@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
Copy link
Author

ggurov commented Apr 7, 2024

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
Copy link
Contributor

rusefillc commented Apr 7, 2024

@ggurov please confirm lack of capacitors next to SD as in andreika-git/hellen-one#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 6264e59

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
Copy link
Contributor

See also #25

@ggurov
Copy link
Author

ggurov commented Apr 7, 2024

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
Copy link
Author

ggurov commented Apr 7, 2024

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

@rusefillc rusefillc added the bug Something isn't working label Apr 8, 2024
@ggurov
Copy link
Author

ggurov commented Apr 9, 2024

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
Copy link
Contributor

3v goes away, time to replace TLS115?

image

@ggurov
Copy link
Author

ggurov commented Apr 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants