Skip to main content

on frError

Valid for: CANoe DE

Function Syntax

Description

The event procedure is called in the event of a general error being detected on the FlexRay bus.

Parameters

Selectors

  • Time (data type dword): The error time stamp that has been synchronized with the global time base in the computer (CAN hardware or computer system clock). The time stamp must be used if time relations should be regarded with events from other sources. This time stamp is also output in the Trace Window when receiving a symbol. Unit: 10 microseconds. Write-protected!
  • msgChannel: Channel in the tool that the FlexRay CC determines. Write-protected!
  • FR_HWTag: Identifies the type of the FlexRay hardware (data type: dword):
    • 0: HW independent
    • 1: Invalid
    • 2: Not used
    • 3: Not used
    • 4: FlexCard Cyclone II
    • 5: Vector FlexRay hardware Write-protected!
  • FR_Code: Identifies the error type (data type: LONG)
    • -1: Unknown error
    • 0: NO error
    • 1: FlexCard Overflow
    • 2: POC Error Mode Changed
    • 3: Sync Frames Below Minimum
    • 4: Sync Frame Overflow
    • 5: Clock Correction Failure
    • 6: Parity Error
    • 7: Receive FIFO Overrun
    • 8: Empty FIFO Access
    • 9: Illegal Input Buffer Access
    • 10: Illegal Output Buffer Access
    • 11: Syntax Error
    • 12: Content Error
    • 13: Slot Boundary Violation
    • 14: Transmission Across Boundary Channel A
    • 15: Transmission Across Boundary Channel B
    • 16: Latest Transmit Violation Channel A
    • 17: Latest Transmit Violation Channel B
    • 18: Error Detection on Channel A
    • 19: Error Detection on Channel B
    • 20: Message Handler Constraints Flag Error
    • 21: NIT SENA (Syntax Error during NIT Channel A)
    • 22: NIT SBNA (Slot Boundary Violation during NIT Channel A)
    • 23: NIT SENB (Syntax Error during NIT Channel B)
    • 24: NIT SBNB (Slot Boundary Violation during NIT Channel B)
    • 25: Internal Error Overflow
    • 26: Wrong Frame
    • 27: Bus Guardian Error
    • 28: CHI Error
    • 29: Error Handling Level Changed
    • 30: Symbol Received Write-protected!
  • FR_Data0: Contains extended information (data type: dword): Not used. Write-protected!
  • FR_Data1: Contains extended information (data type: dword): Not used as yet. Write-protected!
  • FR_Data2: Contains extended information (data type: dword): Not used as yet. Write-protected!
  • FR_Data3: Contains extended information (data type: dword): Not used as yet. Write-protected!
  • FR_Data4: Contains extended information (data type: dword): Not used as yet. Write-protected!

Example

The following program reacts on bus errors and prints them in the Write Window, Trace Window, and logging.