S32G3 Bootloader only starts A core with hse feature through qspi boot mode

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

S32G3 Bootloader only starts A core with hse feature through qspi boot mode

Jump to solution
3,268 Views
Quincy_Wen
Contributor II

Hi NXP,

If I want to use Bootloader to start the A-core image with hse feature normally, what should I do?Are there any examples or documentation to refer to? Am I missing some configuration or steps? Do you have any suggestions?

Referring to AN13750, I can use this Bootloader to successfully start the A-core image without HSE feature. The A-core image with HSE feature can also be started normally from the SD card boot mode. However, it fails to use Bootloader through qspi boot. The phenomenon is that uart0 has no output.

BSP40 hse is compiled through yocto, as follows:

DISTRO_FEATURES:append = " hse "
DISTRO_FEATURES:append = " pkcs11-hse "
NXP_FIRMWARE_LOCAL_DIR = "/home/work/NXP/fsl-auto-yocto-bsp/downloads"
HSE_VERSION = "0_2_22_0"
HSE_LIC = "license.rtf"
HSE_SOC_REV = "rev1.1"
HSE_LIC_MD5 = "a1bda359fc5cdcfca04f84834841a5ca"

EB's Bootloader configuration is as follows:

Reset handler address :0x34085000  Load image at address (RAM) :0x3407b2c0

Snipaste_2024-06-05_17-12-56.png

SW:

EB tresos Studio27.1

Integration_Reference_Examples_S32G3_2023_02

SW32_RTD_4.4_4.0.0

BSP40

HSE_FW_S32G3XX_0_2_22_0

HW: S32G399A-RDB3

 

Best regards,
Quincy

Tags (4)
0 Kudos
Reply
1 Solution
2,654 Views
Quincy_Wen
Contributor II

The problem has been solved.The reason is that I didn't set the correct address of HSE-FW.

View solution in original post

0 Kudos
Reply
21 Replies
1,337 Views
ashwini2024
Contributor II

Hello @Quincy_Wen ,
I would like to know about your configurations on EB and on A core side. Could you please provide those details , if possible ?
Could you share the docs you referred ?

Thank you.

0 Kudos
Reply
1,755 Views
ashwini2024
Contributor II

Hello @Quincy_Wen @Daniel-Aguirre ,

I am facing the similar issue. Could you please tell me at which address u had configured the HSE-FW ??
I am configuring hse at 0x1200 in bootloader
Please could u give me the details?

0 Kudos
Reply
1,727 Views
Quincy_Wen
Contributor II

Quincy_Wen_0-1737512532078.png

Quincy_Wen_1-1737512550668.png

Because the time interval is too long, I can't remember the details.

But luckily I found the blob image, as shown in the screenshot, you can refer to it

 

Tags (1)
0 Kudos
Reply
843 Views
ashwini2024
Contributor II

Hello @Quincy_Wen ,

Could you tell me what configurations or changes you had done on A53 core ?

Thank you.

0 Kudos
Reply
1,700 Views
ashwini2024
Contributor II

@Quincy_Wen 

Thank you so much for the reply.
The following is my image layout after enabling hse on a core :

ashwini2024_0-1737551815628.jpeg

The following shows my blob:

ashwini2024_1-1737552399355.png

ashwini2024_2-1737552415692.png

 


The following is the Eb configurations :

ashwini2024_3-1737552445688.png



But when i flash the

  • Bootloader: Address 0x0
  • A-core Application: Flashed at 0x200000
  • M-core Application: Flashed at 0x400000

    The output is stuck and does not transition to u-boot as shows :
    ashwini2024_4-1737552582385.png

     


    Could you please let me know the issue?
0 Kudos
Reply
1,675 Views
Quincy_Wen
Contributor II

Perhaps there is an issue with your EB configuration. For example, the value of the source address (QSPI) at 0x264ee0 should be changed to 0x200000. Additionally, you need to pay attention to the requirement of 1KB alignment, although it might also be 4KB alignment (different flashes have different alignment requirements).

0 Kudos
Reply
1,667 Views
ashwini2024
Contributor II

Hello @Quincy_Wen 

Thank you for the reply.
1)I changed the source address to 0x200000 but i am observing the same, control does not go to u-boot
2)Could you please elaborate more on the alignment, were u referring to A core alignment or was it on the bootloader side ?

0 Kudos
Reply
1,646 Views
Quincy_Wen
Contributor II
It means that the starting addresses of the HSE-FW and SYS-IMG stored on the flash should be multiples of 1KB. For example, my HSE starts at 0x1000.
Tags (1)
0 Kudos
Reply
1,625 Views
ashwini2024
Contributor II

Thanks for the reply @Quincy_Wen .

I gave the source address at qspi as 0x200000.But i am still facing the same issue.
Could you please suggest on that ?

ashwini2024_0-1737627284622.png

 

0 Kudos
Reply
2,655 Views
Quincy_Wen
Contributor II

The problem has been solved.The reason is that I didn't set the correct address of HSE-FW.

0 Kudos
Reply
1,835 Views
ashwini2024
Contributor II

Could you please tell me the changes u did or what addresses u configured for HSE-FW in the ivt

0 Kudos
Reply
1,786 Views
ashwini2024
Contributor II

@Quincy_Wen 

Could you please tell me the changes u did or what addresses u configured for HSE-FW in the ivt?

0 Kudos
Reply
2,612 Views
ashwini2024
Contributor II

I would want to know what you did to enable hse throuh sd card boot mode .
What did u update in local.conf ?
Or any other modifications which u did ?
Which firmware u used ?

0 Kudos
Reply
2,647 Views
ashwini2024
Contributor II

The A-core image with HSE feature can also be started normally from the SD card boot mode.
[AG] : how did you achieve the above ? could you please elaborate on that ?
PLease do reply.
Thank you.

0 Kudos
Reply
2,641 Views
Quincy_Wen
Contributor II

You can refer S32G3 : how to use HSE in linux-A53 - NXP Community

But you have to calculate the MD5 value of "license.rtf" by yourself.

0 Kudos
Reply
2,517 Views
ashwini2024
Contributor II

I am using bsp 40 and the board i am using is s32g399ardb3.
In my local.conf i have added following :
DISTRO_FEATURES:append = " hse "
NXP_FIRMWARE_LOCAL_DIR = "/yocto-s32g3/folder"
HSE_VERSION="0_2_22_0"
HSE_SOC_REV="rev1.0"
HSE_LIC_MD5 = "a1bda359fc5cdcfca04f84834841a5ca"

But i am not finding any logs in target machine I get the below result :

ashwini2024_0-1728985005925.png

 

0 Kudos
Reply
2,602 Views
ashwini2024
Contributor II

Thank you for your response.

0 Kudos
Reply
2,649 Views
ashwini2024
Contributor II

Are u able to find logs for sd card boot mode?

0 Kudos
Reply
3,230 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

We understand that AN13750 only provides the steps to implement a secure boot with HSE-FW, since a patch is provided for the Bootloader.c file as well as including the HSE-FW under the IVT.

Have you confirmed that all steps are followed under AN13750? Since your BSP version is different from the one being shown under AN13750, care should be taken.

Please, let us know.

0 Kudos
Reply
3,220 Views
Quincy_Wen
Contributor II

Hi Daniel,

Thank you for your prompt reply.Yes, I have confirmed that all steps are followed under AN13750.Moreover, I am familiar with AN13750 and have successfully implemented multicore applications on both RDB2 and RDB3 by following the documentation. As I mentioned earlier, I can boot an A-core image without the hse feature using the Bootloader, so I can confirm that all my steps are followed under AN13750. However, it should be clarified that I didn't enable secure boot. Could this affect booting an A-core image with hse enabled?Do you have any suggestions on how to implement the title?

Best regards,
Quincy

0 Kudos
Reply