Jump to main content

# 2.2.5.8 Application (Core 0) Reset With Metrology (Core 1) Running Application Example

The Dual Core architecture allows some interesting functionality for an electricity meter, such as the possibility to restart the Core 0 (Driver and Applications) while the Core 1 continues running the Metrology Library, taking measurements and generating pulses.

The Metrology Driver initialization is designed in the following way:

The Reset Cause is a parameter of Initialization function. If this cause is a Watchdog on Core 0, no reinitialization of Core 1 is done, as it assumes that Core 1 is running correctly, and Metrology may be doing critical operations that must not be interrupted.

The Demo Meter application includes an example showing how Core 1 is able to continue working while Core 0 is being reset.

This is done by forcing a Watchdog reset on Core 0 using the buttons on evaluation boards. The user has to press the Scroll-down button, and then without releasing it, press the Scroll-up button. This generates an infinite loop and therefore, Watchdog is triggered on Core 0.

As stated above, this behaviour of keeping Core 1 running is implemented only for a Watchdog reset on Core 0. For any other reset type, the Core 1 is reset on Metrology Driver initialization, and the Metrology Library binary file is reloaded.

Rev: E