Use LPUART2(DSP domain) with i.MX8ULP M33

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

Use LPUART2(DSP domain) with i.MX8ULP M33

Jump to solution
1,158 Views
daisukemizobuch
Contributor II

Hello,

I am trying to run LPUART2 based on mcux-sdk/examples/evkmimx8ulp/multicore_examples/power_mode_switch/.

Refers to the following:

Test LPUART2(DSP domain) on i.MX8ULP M33  

Test LPUART2(DSP domain) EDMA on i.MX8ULP M33  

When I apply this patch and run it, a Bus Fault occurs at address 0x2810202c.

I have set MBC but a Bus Fault still occurs.

+       /* non secure state can access PCC2(PBridge2 slot 2) and LPUART2(PBridge2 slot 11) for M33 */
+       mbcBlockConfig.memoryAccessControlSelect = TRDC_MBC_ACCESS_CONTROL_POLICY_ALL_INDEX;
+       mbcBlockConfig.nseEnable                 = true;
+       mbcBlockConfig.mbcIdx                    = 3U;
+       mbcBlockConfig.domainIdx                 = TRDC_M33_DOMAIN_ID;
+       mbcBlockConfig.slaveMemoryIdx            = 0U;
+       mbcBlockConfig.memoryBlockIdx            = 2;
+       TRDC_MbcSetMemoryBlockConfig(TRDC, &mbcBlockConfig);
+       mbcBlockConfig.memoryBlockIdx            = 11;
+       TRDC_MbcSetMemoryBlockConfig(TRDC, &mbcBlockConfig);

Thank you,
mizo

Labels (1)
0 Kudos
Reply
1 Solution
1,108 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

Based on L6.6.52, there is no other patch needed. You can check the imx-atf difference if you need to run on L5.10.X.

Best Regards,
Zhiming

View solution in original post

0 Kudos
Reply
6 Replies
1,140 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

Are you using SDK2.16? The tests are based on SDK2.16, L6.6.X and i.MX8ULP EVK(not EVK9).

Best Regards,
Zhiming

0 Kudos
Reply
1,122 Views
daisukemizobuch
Contributor II

Hello @Zhiming_Liu

Thank you for the reply!

I am using MCUX_2.16.100, the Linux kernel is lf-5.10.y, and the board is not EVK.

I wanted to check whether any other modifications were required besides the "Test LPUART2(DSP domain)" patch, such as imx-atf or imx-optee-os.

If no other patches are needed, I will check the differences with the BSP.

0 Kudos
Reply
1,109 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

Based on L6.6.52, there is no other patch needed. You can check the imx-atf difference if you need to run on L5.10.X.

Best Regards,
Zhiming

0 Kudos
Reply
1,000 Views
daisukemizobuch
Contributor II

Hello @Zhiming_Liu

It worked with SDK2.16, L6.6.X and i.MX8ULP EVK. There is definitely a problem with my software.

I'd like to find the problem and get it moving.

Best Regards,
mizo

0 Kudos
Reply
990 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @daisukemizobuch 

The SDK needs to wait for uboot and ATF to load before it works, you can try updating uboot, or atf, or both

Best Regards,
Zhiming

0 Kudos
Reply
983 Views
daisukemizobuch
Contributor II
Hello @Zhiming_Liu

It worked!

> The SDK needs to wait for uboot and ATF to load before it works

After waiting, calling Fusion_init() before BOARD_SetTrdcGlobalConfig() worked.

Thanks for your support.

Best Regards,
mizo
0 Kudos
Reply