Write safety controller test. #36

Open
opened 2021-07-21 11:28:25 +02:00 by mhu · 1 comment
Owner

Write a test for the safety flags:

Setup

  • Set a marker in the safety flag to boot into the test
  • Override the error flag weights so they don't trigger safety mechanisms
  • Restart to test mode

Test

  • Trigger failure mechanisms for all flags (if possible) and check if they occur.
  • Clear up the safety overrides
  • Set result of test in backup RAM and restart

Flag Tests

  • ERR_FLAG_MEAS_ADC_WATCHDOG: manually reconfigure the Watchdog limits so they will trigger for sure.

  • ERR_FLAG_MEAS_ADC_UNSTABLE: Do not test

  • ERR_FLAG_MEAS_ADC_OVERFLOW: Do not test

  • ERR_FLAG_TIMING_MEAS_ADC: Manually rewrite ADC register, so the ADC is misconfigured

  • ERR_FLAG_MEAS_ADC_OFF: Disable the ADC measurement and reenable it.

  • ERR_FLAG_STACK: destroy stack corruption detection area

  • ERR_FLAG_SAFETY_ADC: Manually misconfigure safety ADC

  • All others flags are tested during development by manual debugger intervention.

Eval

  • Evaluate the test result after a restart
Write a test for the safety flags: # Setup - Set a marker in the safety flag to boot into the test - Override the error flag weights so they don't trigger safety mechanisms - Restart to test mode # Test - Trigger failure mechanisms for all flags (if possible) and check if they occur. - Clear up the safety overrides - Set result of test in backup RAM and restart ## Flag Tests - ERR_FLAG_MEAS_ADC_WATCHDOG: manually reconfigure the Watchdog limits so they will trigger for sure. - ERR_FLAG_MEAS_ADC_UNSTABLE: Do not test - ERR_FLAG_MEAS_ADC_OVERFLOW: Do not test - ERR_FLAG_TIMING_MEAS_ADC: Manually rewrite ADC register, so the ADC is misconfigured - ERR_FLAG_MEAS_ADC_OFF: Disable the ADC measurement and reenable it. - ERR_FLAG_STACK: destroy stack corruption detection area - ERR_FLAG_SAFETY_ADC: Manually misconfigure safety ADC - All others flags are tested during development by manual debugger intervention. # Eval - Evaluate the test result after a restart
Author
Owner

Implement this after release of v1.0 It is not high priorit. the correct working of the safetxy controller will be ensured by testing it during development.

Implement this after release of v1.0 It is not high priorit. the correct working of the safetxy controller will be ensured by testing it during development.
mhu modified the due date from 0001-01-01 to 2022-04-30 2021-12-25 22:56:38 +01:00
mhu modified the due date from 2022-04-30 to 2022-09-14 2022-12-31 19:32:04 +01:00
mhu modified the due date from 2022-09-14 to 2023-09-14 2022-12-31 19:32:24 +01:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

2023-09-14

Dependencies

No dependencies set.

Reference: mhu/reflow-oven-control-sw#36
No description provided.