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

Deinit sequences #1369

Merged
merged 3 commits into from
Jan 20, 2025
Merged

Deinit sequences #1369

merged 3 commits into from
Jan 20, 2025

Conversation

kryptoish
Copy link
Member

@kryptoish kryptoish commented Oct 29, 2024

Changelist

De-initialized peripherals & interrupts for all boards (except VC). Changes only on quadruna.

  • bootloader_checkBootMsg
  • modifyStackPointerAndStartApp

Testing Done

  • no testing done yet

Resolved Tickets

@kryptoish kryptoish self-assigned this Oct 29, 2024
@kryptoish kryptoish marked this pull request as ready for review October 29, 2024 02:27
firmware/quadruna/CRIT/src/tasks.c Outdated Show resolved Hide resolved
firmware/quadruna/CRIT/src/tasks.c Outdated Show resolved Hide resolved
@kryptoish kryptoish requested a review from Lucien950 November 5, 2024 01:47
@kryptoish kryptoish changed the title Krish/crit deinit sequence CRIT and RSM deinit sequence Nov 5, 2024
@kryptoish kryptoish changed the title CRIT and RSM deinit sequence CRIT, RSM, and FSM deinit sequence Nov 5, 2024
@kryptoish kryptoish changed the title CRIT, RSM, and FSM deinit sequence CRIT, RSM, BMS and FSM deinit sequence Nov 8, 2024
@Lucien950 Lucien950 changed the title CRIT, RSM, BMS and FSM deinit sequence Deinit sequences Nov 10, 2024
@Lucien950 Lucien950 marked this pull request as draft November 12, 2024 04:46
@Lucien950 Lucien950 added the Systems Shared App Level Modules label Nov 14, 2024
firmware/quadruna/FSM/src/io/io_bootloader.c Outdated Show resolved Hide resolved
firmware/quadruna/BMS/src/io/io_bootloader.c Outdated Show resolved Hide resolved
firmware/quadruna/BMS/src/io/io_bootloader.c Outdated Show resolved Hide resolved
firmware/quadruna/BMS/src/io/io_bootloader.c Outdated Show resolved Hide resolved
extern uint32_t __boot_code_start__;
extern uint32_t __boot_code_size__;

void modifyStackPointerAndStartApp(const uint32_t *address)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you change the name of this from modifyingstackpointerandstartapp to io_bootloader_modifyingStackPointer

@@ -167,6 +168,7 @@ elseif ("${TARGET}" STREQUAL "test")
"${CMAKE_CURRENT_SOURCE_DIR}/src/io/io_sd.h"
"${CMAKE_CURRENT_SOURCE_DIR}/src/io/io_bspdTest.h"
"${CMAKE_CURRENT_SOURCE_DIR}/src/io/io_bmsShdn.h"
"${CMAKE_CURRENT_SOURCE_DIR}/src/io/io_bootloader.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We dont need this in test compile

@@ -152,6 +153,7 @@ elseif ("${TARGET}" STREQUAL "test")
"${CMAKE_CURRENT_SOURCE_DIR}/src/io/io_leds.h"
"${CMAKE_CURRENT_SOURCE_DIR}/src/io/io_switches.h"
"${CMAKE_CURRENT_SOURCE_DIR}/src/io/io_critShdn.h"
"${CMAKE_CURRENT_SOURCE_DIR}/src/io/io_bootloader.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing here

@@ -157,6 +158,7 @@ elseif ("${TARGET}" STREQUAL "test")
"${CMAKE_CURRENT_SOURCE_DIR}/src/io/io_suspension.h"
"${CMAKE_CURRENT_SOURCE_DIR}/src/io/io_loadCell.h"
"${CMAKE_CURRENT_SOURCE_DIR}/src/io/io_fsmShdn.h"
"${CMAKE_CURRENT_SOURCE_DIR}/src/io/io_bootloader.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing here

@kryptoish kryptoish force-pushed the krish/CRIT_Deinit_Sequence branch from b52f110 to b1b19ca Compare January 12, 2025 00:53
Copy link
Contributor

@Jugveer-Sandher Jugveer-Sandher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small changes, very close.

firmware/quadruna/BMS/src/tasks.c Outdated Show resolved Hide resolved
firmware/quadruna/BMS/src/tasks.c Show resolved Hide resolved
firmware/quadruna/CRIT/src/tasks.c Show resolved Hide resolved
firmware/quadruna/FSM/src/tasks.c Show resolved Hide resolved
firmware/quadruna/RSM/src/tasks.c Outdated Show resolved Hide resolved
firmware/quadruna/RSM/src/tasks.c Show resolved Hide resolved
@kryptoish kryptoish dismissed stale reviews from AmirTajaddodi and Lucien950 January 18, 2025 18:43

yea

@kryptoish kryptoish force-pushed the krish/CRIT_Deinit_Sequence branch 2 times, most recently from c15fb67 to 8b907d1 Compare January 18, 2025 19:51
@kryptoish kryptoish marked this pull request as ready for review January 19, 2025 23:30
@kryptoish kryptoish force-pushed the krish/CRIT_Deinit_Sequence branch from c85ca9e to 500e579 Compare January 20, 2025 00:24
@kryptoish kryptoish merged commit 332a806 into master Jan 20, 2025
33 checks passed
@kryptoish kryptoish deleted the krish/CRIT_Deinit_Sequence branch January 20, 2025 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Systems Shared App Level Modules
Development

Successfully merging this pull request may close these issues.

4 participants