S32G-VNP-RDB3 multi-core startup failed!

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

S32G-VNP-RDB3 multi-core startup failed!

Jump to solution
1,638 Views
DRAVE
Contributor IV

Hi nxp,

我们正在参照 AN13750.pdf 文档配置 S32G-VNP-RDB3 A 核 和 M 核启动环境。

软件配置如下:

1. EB tresos 29

关闭 Crypto cryptoDal RM。关闭 Secure boot 

DRAVE_0-1729668955822.png

配置 bootloader

DRAVE_1-1729668955824.png

DRAVE_2-1729668955824.png

DRAVE_3-1729668955825.png

DRAVE_4-1729668955826.png

 EBtresosStudio_EBtresosStudio29\workspace\Bootloader_S32G3XX_ASR_4.4_M7_noRM2\output 下面把 Crypto cryptoDal RM 相关的 .c .h 文件删除,不然会报错。

 

2. Integration_Reference_Examples_S32G3_2023_02 配置如下:

Integration_Reference_Examples_S32G3_2023_02\code\framework\realtime\swc\bootloader\platforms\S32G3XX\src\Bootloader_Specific.c 加上配置:

 

#define ASM_KEYWORD(x) __asm__ volatile(x)  // 不加会报错 ASM_KEYWORD 没定义 

 

Bootloader.c 修改一句:static volatile uint32 ENABLE_BREAKPOINT_AT_MAIN = 1U;

 

3. S32DS 3.5 IVT 配置如下:

DRAVE_5-1729668955826.png

烧录:

Then flash as per AN13750 explains:

Erase from 0x0 to 0x400000. Then flash as follows:

  • 0x0 -> Blob of the IVT shown previously
  • 0x100000 -> fip.bin
  • 0x200000 -> IPCF_Example_multi_instance_S32G399_M7_0.bin

烧录完成后,拨码启动,出现  pcie@40400000:RC/EP configuration not set correctly 报错,系统卡住

DRAVE_6-1729668955827.png

麻烦可以帮忙分析一下原因?谢谢!

Tags (1)
0 Kudos
Reply
1 Solution
1,622 Views
chenyin_h
NXP Employee
NXP Employee

您好

根据log所示,有可能是PCIe相关某些地方与M核程序有冲突,您可以简单这样尝试一下:先不要从flash启动bootloader,而是直接使用SD启动A核,在U-Boot中通过改变hwconfig的方式把disable PCIe,然后再重新使用flash来启动bootloader。这样有可能可以规避以上系统卡住的问题。

 

BR

Chenyin

View solution in original post

0 Kudos
Reply
4 Replies
1,575 Views
chenyin_h
NXP Employee
NXP Employee

您好

这种倒计时stuck的现象我没有遇见过,但应该是不正常的。

请问您手动进入Linux后,IPCF的相关测试是否正常?有没有其他问题发生?

 

BR

Chenyin

0 Kudos
Reply
1,570 Views
DRAVE
Contributor IV

Hi @chenyin_h ,

手动进入 Linux 后,IPCF 的相关测试是正常的,没有发现有什么问题。

Tags (2)
0 Kudos
Reply
1,623 Views
chenyin_h
NXP Employee
NXP Employee

您好

根据log所示,有可能是PCIe相关某些地方与M核程序有冲突,您可以简单这样尝试一下:先不要从flash启动bootloader,而是直接使用SD启动A核,在U-Boot中通过改变hwconfig的方式把disable PCIe,然后再重新使用flash来启动bootloader。这样有可能可以规避以上系统卡住的问题。

 

BR

Chenyin

0 Kudos
Reply
1,612 Views
DRAVE
Contributor IV

HI @chenyin_h 

我按照你的说法,hwconfig 改为如下:

hwconfig=serdes0:mode=disabled;serdes1:mode=xpcs0&xpcs1,clock=ext,fmhz=125;xpcs1_0:speed=2G5

但是启动后会卡在 uboot 倒计时 2 处,如下所示:

DRAVE_1-1729755423896.png

按回车进入 uboot 命令行,输入 boot 命令才能完成启动 linux,这样是正常的吗?

DRAVE_0-1729755387229.png

 

0 Kudos
Reply