MotoHawk:Blocks:Application Monitor 2nd Generation
Contents
MotoHawk Application Monitor (2nd Generation)
This MotoHawk™ block sets up the Continuous Built-In Tests (CBIT) in every MotoHawk application. Code is generated to monitor the stack, heap, and starvation timer.
This block is used with the 24, 70, and 112 pin targets. For 'Classic Targets' (48, 80, 128 pin) use the Application Monitor Definition block.
Block ID
motohawk_app_monitor_(2nd_Gen)
Library
MotoHawk_lib/System Debug Blocks
Description
This block is used to monitor the application's stack, heap, idle CPU usage, and OS errors for the 55xx and S12(X) processor modules. Upon discovery of a critical error, the application is stopped and certain actuators shut down safely. These currently include the Injector and Spark Sequence blocks. In the "System | Debug | Application Monitor" section, various display variables may be used to diagnose the problem.
At any time, the application is in one of four states: Init, Run, Pause, or Stop, and may be manually set from MotoTune. Init pauses after it has started up and before it runs any application code. Run has the program run until the application monitor is triggered for low stacks/heap, or high processor use. Pause, stops the application where it currently is in the app. Stop, stops the application where it is and puts all outputs in a safe state (this includes MPRD).
Block Parameters
Parameter Field | Values | Comments/Description |
---|---|---|
Application Monitor Status | Create/Do not Create | Select to create or not create status. |
Enable Monitor | Disabled / Enabled | Enable/Disable this monitor. |
On Startup | Set Pause point, if any, for monitoring status. | |
Pause After Application Initializes | As listed. | |
Pause Before Application Initializes | As listed. | |
Do Not Pause on Startup | As listed. |