Context:
We are using the MCAL drivers with our own system, which does not AUTOSAR. I’m trying to understand exactly how we can handle errors from the MCAL layer using the following AUTOSAR modules:
- Default Error Tracer (DET)
- Diagnostic Event Manager (DEM)
- Diagnostic Communication Management (DCM)
In the paper attached to this post “SDK/MCAL to Real Time Drivers”, the following statement is made in Section 3.6
“The RTD provide a “stub” implementation of these ASR modules, which can be used or overwritten by the customer application”

We are currently using the SDK version below:

In that folder, there are all the MCAL drivers offered by the platform, as well as the stub files for the DET & DEM modules (DEM example shown below)

These files have stub functions in them, as mentioned, but this raises several questions that we would like to ask:
Questions:
1.Do I have to implement these stub files & modules at all?
- Since the MCAL API returns synchronous and asynchronous errors, couldn’t the application writer provide their custom error handling, or are the DET and DEM modules needed for this?
2. If I were to Implement these files, would I do so in the location of the stub files?
- Let's say we want to update the MCAL driver version, how would these files not disappear on updates if they're implemented in the stub folder location?
Thanks in advance for your time and help!