E_MEM_SERVICE_NOT_AVAIL macro undeclared (see Mem_43_INFLS.c) in latest RTD (AR: 4.7.0, SW: 2.0.0)

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

E_MEM_SERVICE_NOT_AVAIL macro undeclared (see Mem_43_INFLS.c) in latest RTD (AR: 4.7.0, SW: 2.0.0)

86 Views
M_SCH
Contributor II

Hello,

I am migrating an existing project based on the previous RTD (AR: 4.4.0, SW: 1.0.0) to the latest version (AR: 4.7.0, SW: 2.0.0 ). I am currently using the S32DS v3.5.12.

I have noticed that in the ConfigTools under the section MCAL the Fls driver is renamed/replaced by the Mem_43_INFLS, which should be the proper replacement, right?

When I attempt to build the application an error is thrown pointing at the generated C source file

  • RTD/src/Mem_43_INFLS.c at line 1013, 1093, 1445

with the statement

'E_MEM_SERVICE_NOT_AVAIL' undeclared (first use in this function) Mem_43_INFLS.c /my_project/RTD/src line 1013 C/C++ Problem

I have checked the BaseNXP driver documentation (RTD_BASE_UM.pdf) and noticed that the missing C macro is specified at page 151.

M_SCH_0-1718645629760.png

Then I checked the StandardTypes.h header file at line 141 but the macro -- as expected -- was missing.

M_SCH_1-1718645806041.png

 

Can you point out what the issue is and if I am missing something.

As a side node, I have found out that the macro is also defined in the MemAcc_GeneralTypes.h, which is not generated in my project right now.

M_SCH_2-1718645981316.png

 

One last thing: I have installed the following RTD package versions:

  • SW32K1_S32M24x_RTD_R21-11_2.0.0_P03_CD01_D2312_DS_Updatesite
  • SW32K1_S32M24x_RTD_R21-11_2.0.0_P04_D2404_DS_updatesite

 

Best regards,

 

M_SCH

Labels (1)
0 Kudos
5 Replies

51 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @M_SCH,

I'm not able to reproduce the error.

When I create a new project from example:

Mem_43_INFLS_Example_S32K144

Once the default configuration is generated, I can see

danielmartynek_0-1718800560829.png

in

danielmartynek_1-1718800594930.png

 

Regards,

Daniel

 

 

0 Kudos

50 Views
M_SCH
Contributor II

Hello Daniel,

since I have installed the P03 and P04 RTD (AR: 4.7.0, SW: 2.0.0) package for the S32K1 series and the StandardTypes.h file which is included directly through the RTD installation folder at

  • S32DS.3.5\S32DS\software\PlatformSDK_S32K1_S32M24\RTD\BaseNXP_TS_T40D2M20I0R0\include

which shows the following version of the StandardTypes.h file:

M_SCH_0-1718801376330.png

 

Can you tell me how I can generate the code from the RTD P04 instead of the P03 package version again?

 

Best regards,

 

M_SCH

0 Kudos

34 Views
danielmartynek
NXP TechSupport
NXP TechSupport

It looks like an issue with the P04 installation.

I also updated to P04 from P03, but I have

S32K1_RTD_2_0_0_P04_D2404_ASR_REL_4_7_REV_0000_20240417

in the very same directory.

Maybe you can reinstall P04 in S32DS Extensions and Updates.

 

BR, Daniel

0 Kudos

29 Views
M_SCH
Contributor II

Hello,

I have uninstalled the RTD packages P03 and P04 of the latest version (AR: 4.7.0, SW: 2.0.0) and then installed P03 and then P04. Now all C source and header files indicate that they belong to P04 through their file header comment block but now I am missing again drivers such as the Crypto driver that is only available through P03 and both packages cannot coexist.

Can you confirm this on your side as well?

Best regards,

M_SCH

0 Kudos

18 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello M_SCH,

Yes, I can confirm that.

Refer to the release notes of the drivers, not all patches have this crypto driver.

 

 

0 Kudos