Skip to content

Commit c8e6ad7

Browse files
committed
LVPDB: enable shutdown (SH) rail on startup
1 parent 0233e94 commit c8e6ad7

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

LVPDB/Core/User/Src/FEB_Main.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,9 @@ static bool FEB_TPS_Check_Power_Good(void)
225225
* Perform board startup sequence and configure main subsystems.
226226
*
227227
* Initializes UART and console, scans the I2C bus for attached devices,
228-
* initializes and configures TPS2482 power-management devices (including
229-
* disabling all non-LV rails and verifying power-good signals), initializes
228+
* initializes and configures TPS2482 power-management devices (disabling all
229+
* non-LV rails, then enabling the shutdown (SH) rail and verifying power-good
230+
* signals), initializes
230231
* the CAN subsystem and its ping/pong module, configures the brake-light GPIO
231232
* to off, and starts the 1 kHz timer interrupt for regular system ticks.
232233
*/
@@ -293,6 +294,13 @@ void FEB_Main_Setup(void)
293294
FEB_TPS_Enable(tps_handles[i], false);
294295
}
295296
}
297+
298+
// The shutdown circuit must be powered for the car to come up.
299+
if (tps_handles[1] != NULL)
300+
{
301+
FEB_TPS_Enable(tps_handles[1], true); // SH
302+
}
303+
296304
FEB_TPS_Check_Power_Good();
297305

298306
LOG_I(TAG_MAIN, "TPS2482 power rails configured");

LVPDB/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.7.8
1+
1.7.9

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.7.25
1+
1.7.26

0 commit comments

Comments
 (0)