2054179_en-US

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

2054179_en-US

2054179_en-US

Hse_lp_AesEncAsynclrg_S32K344 example issue

Hello,

Using this example, Hse_lp_AesEncAsynclrg_S32K344, did not complete successfully and encountered a return value of 0xbb55bb55. What is the reason for this issue?

Thanks!

Re: Hse_lp_AesEncAsynclrg_S32K344 example issue

a1: It is recommended to read Table 165. SBAF and HSE Firmware version compatibility for S32K344, S32K324, and S32K314 devices in RM758224-HSE-B Firmware Reference Manual - V2.4(2.4).pdf, which mentions: Sequence of steps to be followed to update to the latest version of SBAF and HSE FW
This is related to the HSE FW and SBAF versions in your current chip.
0x4039C020 will display the current installed SBAF version.
HSE_GetVersion_Example(&gHseFwVersion); in the S32K344_HSE_FW_INSTALL project will show you the current HSE FW version.

b1: It is listed in Table 98.Secure flash memory configuration of S32K3XXRM.

a2: Cannot be any other value. You must program UTEST HSE FW feature usage flag value 0xAABBCCDDDDCCBBAA to address 0x1B000000.

b2: I suggest you read AN744810-HSE FW install for S32K3xx(1.0) Rev. 1, 06 2021.pdf(please download it from secure file)

c2: Refer to the answer in a1

Re: Hse_lp_AesEncAsynclrg_S32K344 example issue

Hi @Robin_Shen ,

Thank you for your support!

Regarding your questions about FW INSTALL and SBAF UPDATE demo:

In the S32K344_SBAF_UPDATE example, the function sbafUpdateExample() returns a failure for srvResponse.
  a. Is this a normal occurrence? If it is, how can I determine if the SBAF firmware updated        successfully?
  b. Where exactly does the SBAF firmware reside in the flash memory address range?
  please refer  to attachment.

In the S32K344_HSE_FW_INSTALL example, as per the readme file, a reset is required after the first run. My specific queries are:
  a. Does the UTEST flag 0xAABBCCDDDDCCBBAA hold any specific significance or can it be changed to another value?
  b. After the HSE firmware undergoes a power-on reset, which flash memory address range did it get copied to? Was this done by sbaf?
  c. What is the relationship between S32K344_HSE_FW_INSTALL and S32K344_SBAF_UPDATE? Are there any specific steps or order to follow?

Additionally, I have successfully run the Hse_lp_AesEncAsynclrg_S32K344 example.


Re: Hse_lp_AesEncAsynclrg_S32K344 example issue

After installing HSE_FW_S32K344_0_2_40_0.exe and SBAF_S32K344_0_0_15_0.exe. You also need to install HSE FW for S32K344 and update SBAF.

S32K344_HSE_FW_INSTALL project shows an option how to install HSE FW. Please read the description:
C:\NXP\S32K3_HSE_DemoExamples_1_0_0\S32K3_HSE_DemoExamples\Device_Configuration\S32K344_HSE_FW_INSTALL\Readme.md
S32K344_SBAF_UPDATE project shows an option how to update the SBAF. Please read the description:
C:\NXP\S32K3_HSE_DemoExamples_1_0_0\S32K3_HSE_DemoExamples\Device_Configuration\S32K344_SBAF_UPDATE\Readme.md

Those project can be found after installing S32K3 MCUs for General Purpose HSE Demo Examples(S32K3_HSE_DemoExamples).

Re: Hse_lp_AesEncAsynclrg_S32K344 example issue

Hi @Robin_Shen ,

After adding the header files from the interface directory to the INCLUDES path, the compilation has now passed. Additionally, I have installed SBAF_S32K344_0_0_15_0 and HSE_FW_S32K344_0_2_40_0, with their paths set to C:\NXP\SBAF_S32K344_0_0_15_0 and C:\NXP\HSE_FW_S32K344_0_2_40_0, respectively. However, after running the program, it still returns 0xbb55bb55. Could you please advise if there are any missing configurations?

Re: Hse_lp_AesEncAsynclrg_S32K344 example issue

Note that the 5 folders mentioned during import must be imported once.

Re: Hse_lp_AesEncAsynclrg_S32K344 example issue

Hi @Robin_Shen ,

Thank you for your support!

I have integrated the HSE files, but the compilation still fails. Please refer to the attachment.

Thanks!

 

 

Re: Hse_lp_AesEncAsynclrg_S32K344 example issue

Hi

Have you installed HSE FW before testing Hse_Ip_AesEncAsyncIrq_S32K344?
The following is the version installed in my S32K344:
HSE FW:  0.2.40.0 S32K344 HSE FW 0.2.40.0 SR Release_RTD400
SBAF:      0.15.0 S32K344 SBAF 0.15.0 RTM Release
According to the 3.2 Compiling the application prompt of Hse_Ip_AesEncAsyncIrq_S32K344 description.txt, I imported the header file of the corresponding version, for example:
C:\NXP\HSE_FW_S32K344_0_2_40_0\hse_ab_swap\interface

3.2 Compiling the application description.txt Hse_Ip_AesEncAsyncIrq_S32K344.png

Afterwards, when debugging,

HseResponse = App_GetHseAttrCapabilities(MU0_INSTANCE_U8, &Hse_AttrCapabilities);

the returned value is 0x55a5aa33, which means HSE_SRV_RSP_OK

App_GetHseAttrCapabilities HSE_SRV_RSP_OK Hse_Ip_AesEncAsyncIrq_S32K344_RTD400.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

Re: Hse_lp_AesEncAsynclrg_S32K344 example issue

update error screenshot.

Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 04:27 PM
Updated by: