Flash Test (FlsTst)
AUTOSAR Classic Memory Drivers-Modul Flash Test (FlsTst, Spezifikation: AUTOSAR_CP_SWS_FlashTest.pdf, AUTOSAR_SWS_FlashTest.pdf).
Funktionen — Übersicht
void FlsTst_Init (const FlsTst_ConfigType* ConfigPtr);Service for Flash Test initialization.void FlsTst_DeInit (void);Service for Flash Test De - Initialization.void FlsTst_Abort (void);Service for aborting the Flash Test.void FlsTst_Suspend (void);Service for suspending current operation of the Flash Test, until Fls Tst_ Resume is called.void FlsTst_Resume (void);Service for continuing the Flash Test at the point it was suspended.FlsTst_StateType FlsTst_GetCurrentState (void);Service returns the current Flash Test exection state.FlsTst_TestResultBgndType FlsTst_GetTestResultBgnd (void);Service returns the Background Flash Test result.void FlsTst_GetVersionInfo (Std_VersionInfoType* versioninfo);Service returns the version information of this module.FlsTst_TestSignatureBgndType FlsTst_GetTestSignatureBgnd (void);Service returns the Flash Test result in background mode.FlsTst_TestSignatureFgndType FlsTst_GetTestSignatureFgnd (void);Service returns the Flash Test result in foreground mode.FlsTst_ErrorDetailsType FlsTst_GetErrorDetails (void);Service returns error detais monitored from the Flash module.Std_ReturnType FlsTst_TestEcc (void);Service executes a test of ECC hardware.void FlsTst_MainFunction (void);Service for executing the Flash Test in background mode.void FlsTst_TestCompletedNotification (void);The function Fls Tst_ Test Completed shall be called every time when a complete test cycle had been tested.FlsTst_TestResultFgndType FlsTst_GetTestResultFgnd (void);Service returns the Foreground Flash Test result.Std_ReturnType FlsTst_StartFgnd (FlsTst_BlockIdFgndType FgndBlockId);Service for executing foreground Flash Test.
Typen — Übersicht
struct FlsTst_ConfigTypeThis type of external data structure shall contain the initialization data for the Flash Test.enum FlsTst_StateTypeThis is a state value returned by the API service Fls Tst_ Get Current State().enum FlsTst_TestResultFgndTypeReturn type of API service Fls Tst_ Get Result Fgnd().struct FlsTst_BlockIdFgndTypeThis type specifies the identification (ID) for a Flash block to be tested in foreground mode, which is configured in the...struct FlsTst_ErrorDetailsTypeThis type shall specify implementation specific error information monitored in the Flash test module.struct FlsTst_TestSignatureFgndTypeType for test signature in foreground modestruct FlsTst_TestResultBgndTypeReturn type of API service Fls Tst_ Get Test Result Bgnd().struct FlsTst_TestSignatureBgndTypeType for test signature in background mode.enum FlsTst_TestResultType-
Anforderungen — Übersicht
SWS_FlsTst_00007Type of error Related error code Error value Failure within Flash Test execution state FLSTST_ E_ STATE_ FAILURE 0x01 API...SWS_FlsTst_00011The function FlsTst_Init shall be called first before calling any other Flash Test functions except the function...SWS_FlsTst_00016Module Header File Imported Type Dem Rte_ Dem_ Type.SWS_FlsTst_00028[SWS_FlsTst_00028] Upstream requirements: SRS_SPAL_12163 ⌈The function FlsTst_DeInit shall de-initialize all Flash Test...SWS_FlsTst_00029[SWS_FlsTst_00029] ⌈The function FlsTst_DeInit shall set the Flash Test module state to FLSTST_UNINIT.SWS_FlsTst_00033[SWS_FlsTst_00033] Upstream requirements: SRS_BSW_00323, SRS_BSW_00386, SRS_SPAL_12448, SRS_ FlsTst_14219 ⌈If development...SWS_FlsTst_00050[SWS_FlsTst_00050] Upstream requirements: SRS_FlsTst_14219 ⌈The function FlsTst_StartFgnd is only applicable for Foreground...SWS_FlsTst_00051[SWS_FlsTst_00051] Upstream requirements: SRS_FlsTst_14219 ⌈The function FlsTst_StartFgnd shall be pre compile time...SWS_FlsTst_00061[SWS_FlsTst_00061] Upstream requirements: SRS_FlsTst_14223 ⌈The function FlsTst_GetErrorDetails shall return the error details...SWS_FlsTst_00062[SWS_FlsTst_00062] Upstream requirements: SRS_BSW_00386, SRS_FlsTst_14223 ⌈The function FlsTst_GetErrorDetails shall be pre...SWS_FlsTst_00064[SWS_FlsTst_00064] Upstream requirements: SRS_FlsTst_14224 ⌈The function FlsTst_TestEcc shall execute a test of the ECC circuitry.SWS_FlsTst_00065[SWS_FlsTst_00065] Upstream requirements: SRS_BSW_00386, SRS_FlsTst_14224 ⌈The function FlsTst_TestEcc shall be pre compile...SWS_FlsTst_00072Dem _ Set - Event Status Dem.SWS_FlsTst_00073Det _ Report Error Det.SWS_FlsTst_00074[SWS_FlsTst_00074] Upstream requirements: SRS_FlsTst_14212 ⌈The callback notifications shall be configurable as function...SWS_FlsTst_00075[SWS_FlsTst_00075] Upstream requirements: SRS_FlsTst_14212 ⌈The callback notifications shall have no parameters and no return...SWS_FlsTst_00076[SWS_FlsTst_00076] Upstream requirements: SRS_FlsTst_14212 ⌈If a callback notification is configured as null pointer, the...SWS_FlsTst_00140[SWS_FlsTst_00140] ⌈The length of a partial test is defined by the number of tested cells, which shall be tested in one...SWS_FlsTst_00142[SWS_FlsTst_00142] ⌈A background test shall be aborted or suspended via the API services FlsTst_Abort() or FlsTst_Suspended().SWS_FlsTst_00143[SWS_FlsTst_00143] Upstream requirements: SRS_FlsTst_14219 ⌈Foreground tests are defined as synchronous tests which shall not...SWS_FlsTst_00156Figure 7.SWS_FlsTst_00167When FlsTstTestResultSignature is disabled, the function FlsTst_MainFunction shall set the overall r esult status for a test...SWS_FlsTst_00168: Failure detection in back ground mode Long Description: This Extended Production Error shall be issued in case a failure is...
Funktionen & Typen — Detailansicht
fonction FlsTst_Init [SWS_FlsTst_00017] 📄 PDF
void FlsTst_Init(const FlsTst_ConfigType* ConfigPtr);
Service for Flash Test initialization.
fonction FlsTst_DeInit [SWS_FlsTst_00027] 📄 PDF
void FlsTst_DeInit(void);
Service for Flash Test De - Initialization.
fonction FlsTst_Abort [SWS_FlsTst_00030] 📄 PDF
void FlsTst_Abort(void);
Service for aborting the Flash Test.
fonction FlsTst_Suspend [SWS_FlsTst_00034] 📄 PDF
void FlsTst_Suspend(void);
Service for suspending current operation of the Flash Test, until Fls Tst_ Resume is called.
fonction FlsTst_Resume [SWS_FlsTst_00035] 📄 PDF
void FlsTst_Resume(void);
Service for continuing the Flash Test at the point it was suspended.
fonction FlsTst_GetCurrentState [SWS_FlsTst_00040] 📄 PDF
FlsTst_StateType FlsTst_GetCurrentState(void);
Service returns the current Flash Test exection state.
fonction FlsTst_GetTestResultBgnd [SWS_FlsTst_00042] 📄 PDF
FlsTst_TestResultBgndType FlsTst_GetTestResultBgnd(void);
Service returns the Background Flash Test result.
fonction FlsTst_GetVersionInfo [SWS_FlsTst_00044] 📄 PDF
void FlsTst_GetVersionInfo(Std_VersionInfoType* versioninfo);
Service returns the version information of this module.
fonction FlsTst_GetTestSignatureBgnd [SWS_FlsTst_00054] 📄 PDF
FlsTst_TestSignatureBgndType FlsTst_GetTestSignatureBgnd(void);
Service returns the Flash Test result in background mode.
fonction FlsTst_GetTestSignatureFgnd [SWS_FlsTst_00057] 📄 PDF
FlsTst_TestSignatureFgndType FlsTst_GetTestSignatureFgnd(void);
Service returns the Flash Test result in foreground mode.
fonction FlsTst_GetErrorDetails [SWS_FlsTst_00060] 📄 PDF
FlsTst_ErrorDetailsType FlsTst_GetErrorDetails(void);
Service returns error detais monitored from the Flash module.
fonction FlsTst_TestEcc [SWS_FlsTst_00063] 📄 PDF
Std_ReturnType FlsTst_TestEcc(void);
Service executes a test of ECC hardware. This is only applicable in case the hardware provices such functionality.
fonction FlsTst_MainFunction [SWS_FlsTst_00066] 📄 PDF
void FlsTst_MainFunction(void);
Service for executing the Flash Test in background mode.
fonction FlsTst_TestCompletedNotification [SWS_FlsTst_00077] 📄 PDF
void FlsTst_TestCompletedNotification(void);
The function Fls Tst_ Test Completed shall be called every time when a complete test cycle had been tested.
fonction FlsTst_GetTestResultFgnd [SWS_FlsTst_00112] 📄 PDF
FlsTst_TestResultFgndType FlsTst_GetTestResultFgnd(void);
Service returns the Foreground Flash Test result.
fonction FlsTst_StartFgnd [SWS_FlsTst_00149] 📄 PDF
Std_ReturnType FlsTst_StartFgnd(FlsTst_BlockIdFgndType FgndBlockId);
Service for executing foreground Flash Test.
type FlsTst_ConfigType [SWS_FlsTst_00018] 📄 PDF
This type of external data structure shall contain the initialization data for the Flash Test.
type FlsTst_StateType [SWS_FlsTst_00048] 📄 PDF
This is a state value returned by the API service Fls Tst_ Get Current State().
type FlsTst_TestResultFgndType [SWS_FlsTst_00052] 📄 PDF
Return type of API service Fls Tst_ Get Result Fgnd().
type FlsTst_BlockIdFgndType [SWS_FlsTst_00100] 📄 PDF
This type specifies the identification (ID) for a Flash block to be tested in foreground mode, which is configured in the configuration structure.
type FlsTst_ErrorDetailsType [SWS_FlsTst_00108] 📄 PDF
This type shall specify implementation specific error information monitored in the Flash test module.
type FlsTst_TestSignatureFgndType [SWS_FlsTst_00109] 📄 PDF
Type for test signature in foreground mode
type FlsTst_TestResultBgndType [SWS_FlsTst_00153] 📄 PDF
Return type of API service Fls Tst_ Get Test Result Bgnd().
type FlsTst_TestSignatureBgndType [SWS_FlsTst_00155] 📄 PDF
Type for test signature in background mode.
type FlsTst_TestResultType [SWS_FlsTst_00164] 📄 PDF
-
requirement SWS_FlsTst_00007 [SWS_FlsTst_00007] 📄 PDF
Type of error Related error code Error value Failure within Flash Test execution state FLSTST_ E_ STATE_ FAILURE 0x01 API parameter out of specified range FLSTST_ E_ PARAM_ INVALID 0x02 API service used without module initialization FLSTST_ E_ UNINIT 0x03 Flash Test module is already initialized FLSTST_ E_ ALREADY_ INITIALIZED 0x04 For Variant PB: Configuration pointer is a NULL pointer. For Variant PC: Configuration pointer is NOT a NULL pointer. FLSTST_ E_ INIT_ FAILED 0x05 Pointer is a NULL pointer FLSTST_ E_ PARAM_ POINTER 0x06
requirement SWS_FlsTst_00011 [SWS_FlsTst_00011] 📄 PDF
The function FlsTst_Init shall be called first before calling any other Flash Test functions except the function FlsTst_GetCurrentState . If this sequence is not respected, the error code FLSTST_E_UNINIT shall be reported to the Default Error Tracer (if development error detection is enabled).
requirement SWS_FlsTst_00016 [SWS_FlsTst_00016] 📄 PDF
Module Header File Imported Type Dem Rte_ Dem_ Type.h Dem _ Event Id Type Rte_ Dem_ Type.h Dem _ Event Status Type Std Std_ Types.h Std _ Return Type Std_ Types.h Std _ Version Info Type
requirement SWS_FlsTst_00028 [SWS_FlsTst_00028] 📄 PDF
[SWS_FlsTst_00028] Upstream requirements: SRS_SPAL_12163 ⌈The function FlsTst_DeInit shall de-initialize all Flash Test relevant registers and global variables that were initialized by FlsTst_Init.⌋
requirement SWS_FlsTst_00029 [SWS_FlsTst_00029] 📄 PDF
[SWS_FlsTst_00029] ⌈The function FlsTst_DeInit shall set the Flash Test module state to FLSTST_UNINIT.⌋
requirement SWS_FlsTst_00033 [SWS_FlsTst_00033] 📄 PDF
[SWS_FlsTst_00033] Upstream requirements: SRS_BSW_00323, SRS_BSW_00386, SRS_SPAL_12448, SRS_ FlsTst_14219 ⌈If development error detection is enabled and the parameter FgndBlockId is out of range, the DET error value FLSTST_E_PARAM_INVALID shall be raised and the func- tion shall return without any action with return value E_NOT_OK.⌋
requirement SWS_FlsTst_00050 [SWS_FlsTst_00050] 📄 PDF
[SWS_FlsTst_00050] Upstream requirements: SRS_FlsTst_14219 ⌈The function FlsTst_StartFgnd is only applicable for Foreground mode Flash Test operation.⌋
requirement SWS_FlsTst_00051 [SWS_FlsTst_00051] 📄 PDF
[SWS_FlsTst_00051] Upstream requirements: SRS_FlsTst_14219 ⌈The function FlsTst_StartFgnd shall be pre compile time configurable On/Off by the configuration parameter: FlsTst_StartFgndApi.⌋
requirement SWS_FlsTst_00061 [SWS_FlsTst_00061] 📄 PDF
[SWS_FlsTst_00061] Upstream requirements: SRS_FlsTst_14223 ⌈The function FlsTst_GetErrorDetails shall return the error details monitored from the Flash Test driver.⌋
requirement SWS_FlsTst_00062 [SWS_FlsTst_00062] 📄 PDF
[SWS_FlsTst_00062] Upstream requirements: SRS_BSW_00386, SRS_FlsTst_14223 ⌈The function FlsTst_GetErrorDetails shall be pre compile time configurable On/Off by the configuration parameter: FlsTst_GetErrorDetailsApi.⌋
requirement SWS_FlsTst_00064 [SWS_FlsTst_00064] 📄 PDF
[SWS_FlsTst_00064] Upstream requirements: SRS_FlsTst_14224 ⌈The function FlsTst_TestEcc shall execute a test of the ECC circuitry.⌋
requirement SWS_FlsTst_00065 [SWS_FlsTst_00065] 📄 PDF
[SWS_FlsTst_00065] Upstream requirements: SRS_BSW_00386, SRS_FlsTst_14224 ⌈The function FlsTst_TestEcc shall be pre compile time configurable On/Off by the configuration parameter: FlsTst_TestEccApi.⌋
requirement SWS_FlsTst_00072 [SWS_FlsTst_00072] 📄 PDF
Dem _ Set - Event Status Dem.h Called by SW - Cs or BSW modules to report monitor status information to the Dem. BSW modules calling Dem_ Set Event Status can safely ignore the return value. This API will be available only if ({Dem/ Dem Config Set/ Dem Event Parameter/ Dem Event Reporting Type} == STANDARD_ REPORTING)
requirement SWS_FlsTst_00073 [SWS_FlsTst_00073] 📄 PDF
Det _ Report Error Det.h Service to report development errors.
requirement SWS_FlsTst_00074 [SWS_FlsTst_00074] 📄 PDF
[SWS_FlsTst_00074] Upstream requirements: SRS_FlsTst_14212 ⌈The callback notifications shall be configurable as function pointers within the initial- ization data structure (FlsTst_ConfigType).⌋
requirement SWS_FlsTst_00075 [SWS_FlsTst_00075] 📄 PDF
[SWS_FlsTst_00075] Upstream requirements: SRS_FlsTst_14212 ⌈The callback notifications shall have no parameters and no return value.⌋
requirement SWS_FlsTst_00076 [SWS_FlsTst_00076] 📄 PDF
[SWS_FlsTst_00076] Upstream requirements: SRS_FlsTst_14212 ⌈If a callback notification is configured as null pointer, the Flash Test module shall not execute the callback.⌋
requirement SWS_FlsTst_00140 [SWS_FlsTst_00140] 📄 PDF
[SWS_FlsTst_00140] ⌈The length of a partial test is defined by the number of tested cells, which shall be tested in one scheduled task. (see [ECUC_FlsTst_00161]). The required time for a partial test without interruption is defined as "T est time". ⌋ Note: The partial test can be interrupted by a higher priority task at any time, because the Flash test does not require atomic sequences. It is the responsibility of the user to ensure that the interruptible partial test is finished before the scheduler interval is started(See Figure 7.2). [SWS_FlsTst_00142] ⌈A background test shall be aborted or suspended via the API services FlsTst_Abort() or FlsTst_Suspended(). The maximum latency time until the API call request is processed, shall be configurable (see [ECUC_FlsTst_00120]). ⌋ est
requirement SWS_FlsTst_00142 [SWS_FlsTst_00142] 📄 PDF
[SWS_FlsTst_00142] ⌈A background test shall be aborted or suspended via the API services FlsTst_Abort() or FlsTst_Suspended(). The maximum latency time until the API call request is processed, shall be configurable (see [ECUC_FlsTst_00120]). ⌋ est
requirement SWS_FlsTst_00143 [SWS_FlsTst_00143] 📄 PDF
[SWS_FlsTst_00143] Upstream requirements: SRS_FlsTst_14219 ⌈Foreground tests are defined as synchronous tests which shall not be interrupted. The execution of Foreground tests is configurable (see [ECUC_FlsTst_00086]) and can be called after module initialization at any time. ⌋
requirement SWS_FlsTst_00156 [SWS_FlsTst_00156] 📄 PDF
Figure 7.1: Background Test: Test Interval [SWS_FlsTst_00140] ⌈The length of a partial test is defined by the number of tested cells, which shall be tested in one scheduled task. (see [ECUC_FlsTst_00161]). The required time for a partial test without interruption is defined as "T est time". ⌋ Note: The partial test can be interrupted by a higher priority task at any time, because the Flash test does not require atomic sequences. It is the responsibility of the user to ensure that the interruptible partial test is finished before the scheduler interval is started(See Figure 7.2). [SWS_FlsTst_00142] ⌈A background test shall be aborted or suspended via the API services FlsTst_Abort() or FlsTst_Suspended(). The maximum latency time until the API call request is processed, shall be configurable (see [ECUC_FlsTst_00120]). ⌋ est
requirement SWS_FlsTst_00167 [SWS_FlsTst_00167] 📄 PDF
When FlsTstTestResultSignature is disabled, the function FlsTst_MainFunction shall set the overall r esult status for a test interval to FLSTST_RESULT_NOT_OK if at least one block test result is not ok regardless whether all blocks are already tested or not. Additionally the DEM FLSTST_E_FLSTST_FAILURE shall be triggered with the detection criteria "Fail" .
requirement SWS_FlsTst_00168 [SWS_FlsTst_00168] 📄 PDF
: Failure detection in back ground mode Long Description: This Extended Production Error shall be issued in case a failure is detected in background mode within a test interval. Detection Criteria: Fail At least one block within a test interval in background mode is NOT OK (see SWS _FlsTst_00167 ) Pass All blocks within a test interval in background mode are tested with the result OK.(see SWS_FlsTst_00161) Secondary Parameters: N/A Time Required : N/A Monitor Frequency continuous
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/CP_MOD_FlsTst- Status
- unspecified
- Version
AUTOSAR/AP/record/CP_MOD_FlsTst@rel:R20-11#5a4bde80- Content hash
5a4bde80- Source
- https://www.autosar.org/fileadmin/standards/R20-11/CP/AUTOSAR_SWS_FlashTest.pdf#nameddest=SWS_FlsTst_00017