AutoSAR version mismatch compilation error in the IDE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AutoSAR version mismatch compilation error in the IDE

552 Views
yunaidejiezi
Contributor II

Initially, I added the C40_IP driver in the EB tool as shown in Figure 1. After compiling, the AutoSAR version mismatch error started to appear. I tried methods such as deleting the workspace (.metadata), removing C40_IP, restarting the computer, and manually modifying the version numbers, but the issue was not resolved. Subsequently, I opened another project and compiled it (this project did not include C40), but the version mismatch error also appeared as shown in Figures 2 and 3. This project had no issues during previous compilations. I would like to ask if anyone has encountered a similar situation and how it can be resolved. Additionally, what can be done to avoid triggering such issues as much aspossible? Thank you all.

yunaidejiezi_0-1769496514060.pngyunaidejiezi_1-1769496535687.png

yunaidejiezi_2-1769496569775.png

I apologize for any inconvenience caused by the AI translation of the above content.

0 Kudos
Reply
2 Replies

507 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

An AUTOSAR version mismatch typically happens when the RTD/MCAL headers pulled into the build aren’t from the same updatesite (or are partially mixed after adding/removing drivers/configs). This can be triggered even if you just added a new IP (like C40_IP) in EB Tresos - the build may pick up headers from a different RTD version left in your S32DS installation or workspace cache.

What can help...
- Avoid mixing RTD packages in one S32DS: 32DS currently doesn’t support multiple RTD packages (e.g., 3.x and 4.x) inside the same IDE instance. If your machine has various RTD versions installed over time, set up separate S32DS instances (e.g., S32DS.3.5_RTD400, S32DS.3.5_RTD300) and keep each instance “clean” with only the matching development packages + RTD updatesite for that project. 
- Temporary unblock (use with caution): define DISABLE_MCAL_INTERMODULE_ASR_CHECK in project settings to skip inter-module AUTOSAR version checks and allow compilation. This is useful to confirm your environment is otherwise fine, but it disables compatibility enforcement, so validate thoroughly and revert once your RTD packages are aligned. 

BR, Petr

491 Views
yunaidejiezi
Contributor II

Hi Petr

Thank you for your answer. Now I know how to avoid version number issues. However, there is still one point: another project without C40 also reports the same compilation error, and reimporting the project didn't help. Could you please explain what might be causing this and how to fix it? I would greatly appreciate it.

0 Kudos
Reply