EIVE system changes for reboot handling #763

Merged
muellerr merged 7 commits from pdec-reboot-target-self-image into main 2023-08-02 09:27:27 +02:00
Owner
No description provided.
muellerr added 2 commits 2023-08-01 09:30:06 +02:00
improvements for reboot FDIR
Some checks are pending
EIVE/eive-obsw/pipeline/head Build started...
a884176773
update changelog
Some checks are pending
EIVE/eive-obsw/pipeline/head Build queued...
EIVE/eive-obsw/pipeline/pr-main This commit looks good
b27694321f
muellerr requested review from meggert 2023-08-01 09:35:41 +02:00
muellerr added this to the v6.3.0 milestone 2023-08-01 09:35:44 +02:00
muellerr added 1 commit 2023-08-01 09:36:18 +02:00
more robust code
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good
8105e5f689
meggert requested changes 2023-08-01 13:23:27 +02:00
meggert left a comment
Owner

does work but execution is not clean

DEBUG | 11:16:38.842 | EventManager: PDEC_HANDLER reported event with ID 12410
DEBUG | 11:16:38.842 | PDEC_TRYING_RESET_WITH_INIT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0
DEBUG | 11:16:48.842 | EventManager: EIVE_SYSTEM reported event with ID 14012
DEBUG | 11:16:48.842 | PDEC_REBOOT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0
DEBUG | 11:16:49.242 | EventManager: EIVE_SYSTEM reported event with ID 14012
DEBUG | 11:16:49.242 | PDEC_REBOOT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0
INFO | 11:16:49.462 | CoreController::actionPerformReboot: Rebooting on current image
DEBUG | 11:16:49.842 | EventManager: EIVE_SYSTEM reported event with ID 14012
DEBUG | 11:16:49.842 | PDEC_REBOOT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0
DEBUG | 11:16:50.242 | EventManager: EIVE_SYSTEM reported event with ID 14012
DEBUG | 11:16:50.242 | PDEC_REBOOT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0
DEBUG | 11:16:50.842 | EventManager: EIVE_SYSTEM reported event with ID 14012
DEBUG | 11:16:50.843 | PDEC_REBOOT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0
DEBUG | 11:16:51.242 | EventManager: EIVE_SYSTEM reported event with ID 14012
DEBUG | 11:16:51.242 | PDEC_REBOOT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0
DEBUG | 11:16:51.842 | EventManager: EIVE_SYSTEM reported event with ID 14012
DEBUG | 11:16:51.842 | PDEC_REBOOT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0
ERROR | 11:16:52.165 | Sending a reboot command has failed
DEBUG | 11:16:52.165 | InternalErrorReporter::performOperation: Errors occured: Queue | TM | Store : 1 | 0 | 0
DEBUG | 11:16:52.242 | EventManager: EIVE_SYSTEM reported event with ID 14012
DEBUG | 11:16:52.242 | PDEC_REBOOT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0
ERROR | 11:16:52.666 | Sending a reboot command has failed
DEBUG | 11:16:52.666 | InternalErrorReporter::performOperation: Errors occured: Queue | TM | Store : 1 | 0 | 0
INFO | 11:16:52.766 | Executing command: writeprotect 1 1 1
Can't lock already locked copy
Could not writeprotect chip 1, copy 1 lock 1
INFO | 11:16:52.827 | Graceful shutdown handling done
DEBUG | 11:16:52.842 | EventManager: EIVE_SYSTEM reported event with ID 14012
DEBUG | 11:16:52.842 | PDEC_REBOOT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0
re-booting in 3ERROR | 11:16:53.166 | Sending a reboot command has failed
does work but execution is not clean ``` DEBUG | 11:16:38.842 | EventManager: PDEC_HANDLER reported event with ID 12410 DEBUG | 11:16:38.842 | PDEC_TRYING_RESET_WITH_INIT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0 DEBUG | 11:16:48.842 | EventManager: EIVE_SYSTEM reported event with ID 14012 DEBUG | 11:16:48.842 | PDEC_REBOOT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0 DEBUG | 11:16:49.242 | EventManager: EIVE_SYSTEM reported event with ID 14012 DEBUG | 11:16:49.242 | PDEC_REBOOT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0 INFO | 11:16:49.462 | CoreController::actionPerformReboot: Rebooting on current image DEBUG | 11:16:49.842 | EventManager: EIVE_SYSTEM reported event with ID 14012 DEBUG | 11:16:49.842 | PDEC_REBOOT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0 DEBUG | 11:16:50.242 | EventManager: EIVE_SYSTEM reported event with ID 14012 DEBUG | 11:16:50.242 | PDEC_REBOOT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0 DEBUG | 11:16:50.842 | EventManager: EIVE_SYSTEM reported event with ID 14012 DEBUG | 11:16:50.843 | PDEC_REBOOT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0 DEBUG | 11:16:51.242 | EventManager: EIVE_SYSTEM reported event with ID 14012 DEBUG | 11:16:51.242 | PDEC_REBOOT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0 DEBUG | 11:16:51.842 | EventManager: EIVE_SYSTEM reported event with ID 14012 DEBUG | 11:16:51.842 | PDEC_REBOOT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0 ERROR | 11:16:52.165 | Sending a reboot command has failed DEBUG | 11:16:52.165 | InternalErrorReporter::performOperation: Errors occured: Queue | TM | Store : 1 | 0 | 0 DEBUG | 11:16:52.242 | EventManager: EIVE_SYSTEM reported event with ID 14012 DEBUG | 11:16:52.242 | PDEC_REBOOT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0 ERROR | 11:16:52.666 | Sending a reboot command has failed DEBUG | 11:16:52.666 | InternalErrorReporter::performOperation: Errors occured: Queue | TM | Store : 1 | 0 | 0 INFO | 11:16:52.766 | Executing command: writeprotect 1 1 1 Can't lock already locked copy Could not writeprotect chip 1, copy 1 lock 1 INFO | 11:16:52.827 | Graceful shutdown handling done DEBUG | 11:16:52.842 | EventManager: EIVE_SYSTEM reported event with ID 14012 DEBUG | 11:16:52.842 | PDEC_REBOOT | P1 Hex: 0x0 | P1 Dec: 0 | P2 Hex: 0x0 | P2 Dec: 0 re-booting in 3ERROR | 11:16:53.166 | Sending a reboot command has failed ```
Owner

seems to be caused by the sleeps within the core controller reboot function. another delay before the result checking seems to fix the event and command queue spam

seems to be caused by the sleeps within the core controller reboot function. another delay before the result checking seems to fix the event and command queue spam
meggert reviewed 2023-08-01 13:44:32 +02:00
@ -200,2 +202,2 @@
// Send full reboot request to core controller.
sendFullRebootCommand();
// Send reboot request to core controller.
ReturnValue_t result = sendSelfRebootCommand();
Owner

shadows previous declaration

shadows previous declaration
meggert marked this conversation as resolved
muellerr added 1 commit 2023-08-02 09:01:29 +02:00
pause the tasks waiting for a reboot
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good
988da377b1
meggert approved these changes 2023-08-02 09:07:10 +02:00
muellerr added 1 commit 2023-08-02 09:19:49 +02:00
this is the cleanest solution
Some checks are pending
EIVE/eive-obsw/pipeline/pr-main Build started...
4b4dd35b55
muellerr added 1 commit 2023-08-02 09:23:05 +02:00
removed stray return
Some checks are pending
EIVE/eive-obsw/pipeline/pr-main Build queued...
6d18e21edf
muellerr added 1 commit 2023-08-02 09:25:06 +02:00
small corrections
Some checks are pending
EIVE/eive-obsw/pipeline/pr-main Build queued...
949ac8942d
muellerr merged commit 0ea0322e45 into main 2023-08-02 09:27:27 +02:00
muellerr deleted branch pdec-reboot-target-self-image 2023-08-02 09:27:28 +02:00
Sign in to join this conversation.
No description provided.