The S32K312mcal configuration for Grypto is not in the corresponding memory. Hello: The code uses mcal (RTD 5.0) and HSE (HyperSE 0.6.0) as the driver. All calls to the grypto service using the code generated by mcal return a response. #define HSE_SRV_RSP_NOT_SUPPORTED (( hseSrvResponse_t ) 0xAA55A11EUL ) /**< @brief The operation or feature not supported. */ Then I tried calling the HSE interface directly and it worked fine. Why is that? Shouldn't the corresponding data be in the "no" field? In the cacheable locations, I see in the map... Could this be the reason why there's nothing in this section? Also, this is different from what I'm using. Does it matter? If you see this, please answer my question and provide a solution for how to use the mcal code correctly. Thank you very much Re: S32K312mcal配置Grypto不在对应的内存 Hi @li5920o
According to Crypto_43_HSE_MemMap.h, CRYPTO_43_HSE_START_SEC_VAR_SHARED_CLEARED_UNSPECIFIED_NO_CACHEABLE should force a variable into .mcal_shared_bss.
According to your map file, such section exists in the linker file.
It looks like some problem in compiler settings. Could you take a screenshot of all compiler settings? especially:
C Compiler - Optimization
C Compiler - Miscellaneous
C Compiler - Preprocessor
Could you also send me build log from the console and also all *.args files from your project? Clean the project before the build. Thanks.
Regards,
Lukas Re: S32K312mcal配置Grypto不在对应的内存 Hello, thank you very much for your reply. The attachment contains the args file and screenshots. The build logs are located in the /console_log folder. The configuration settings were basically unchanged; the only change was likely the GCC version (reason for the change: when I first downloaded it, installing GCC version 11.4 frequently caused issues with the compiled files failing to run, so I downloaded version 10.2 instead ). Thank you again for your reply. Re: S32K312mcal配置Grypto不在对应的内存 Hello, thank you for your reply. After enabling OS optimization as you suggested, the problem was not resolved. So, while trying to disable the following two configuration options, I accidentally discovered that disabling `-fdata-sections` resulted in the correct data configuration. I've already tested CMAC signing and verification, and they are successful. Now another question is, if disabling this option is the solution, will it have any other impact on the entire system? Because it seems to be enabled by default. Thank you very much for your reply. Re: S32K312mcal配置Grypto不在对应的内存 Hi @li5920o
I'm sorry for delayed response, we had some public holiday here.
I can see you use optimization level -O0. However, RTD was developed and tested with -Os level:
It's highly recommended to use -Os. I already saw that -O0 could cause similar issues. Could you please try if this configuration makes a difference?
Regards,
Lukas
記事全体を表示