Windrose

IEC 60730 Class B Safety Tests

nxp-mcuxpresso · 1 GitHub stars

Runs NXP's IEC 60730 Class B self-tests (CPU, RAM, flash, clock, watchdog) from a Zephyr application.

IEC 60730 Class B Safety Tests

nxp-mcuxpresso · 1 GitHub stars

Runs NXP's IEC 60730 Class B self-tests (CPU, RAM, flash, clock, watchdog) from a Zephyr application.

  • Follows branch main_github: each west update will get its latest commits. To stay on one version, it is recommended to use a release tag.

Install

# From the workspace root
curl -fsSL https://kartben.github.io/windrose/m/safety-iec60730b.yaml \
     -o zephyr/submanifests/safety-iec60730b.yaml
west update safety-iec60730b
  • License Apache-2.0 AND LicenseRef-NXP-Software-License includes custom terms: read them before shipping.

Details

Revision
main_github
License
Apache-2.0 AND LicenseRef-NXP-Software-License
Maintainers
@nxp-mcuxpresso
Last commit
1 mo ago
Includes
Samples

About

safety_iec60730b is a Zephyr module providing a test subsystem that runs the IEC 60730 Class B safety self-tests from a Zephyr application. IEC 60730-1 Annex H Class B describes the software measures a household appliance control needs to detect random hardware faults.

One vendor-neutral API exposes the tests, each selectable through Kconfig (CONFIG_IEC60730B_TEST_*): CPU and FPU registers, program counter, RAM (March C / March X), flash (CRC16 / CRC32), stack, clock, analog I/O, digital I/O and watchdog.

The tests run on one of three backends:

  • NXP HAL (CONFIG_IEC60730B_HAL_NXP, default on NXP SoCs) calls the pre-certified NXP IEC 60730 Class B Safety Library.
  • Zephyr HAL (CONFIG_IEC60730B_HAL_ZEPHYR, default elsewhere) implements the tests on Zephyr driver APIs. It is experimental and not certified.
  • No HAL (CONFIG_IEC60730B_HAL_NONE) builds weak stubs to override with a custom backend.

Enable the subsystem with CONFIG_IEC60730B=y. The zephyr/samples/safety sample runs the start-up and run-time tests. Everything under zephyr/ is Apache-2.0; the NXP library under source/ is under the NXP software license in IEC60730-LICENSE.txt.