S32K142 CPU self Test

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

S32K142 CPU self Test

1,533 Views
likuihan
Contributor I

nxp工程师您好,有些问题咨询下:

我现在使用的mcu型号是s32k142系列,想使用你们的这个系列芯片自检“lib_m4_scst.a”库来对mcu工作中,对mcu内核中的通用寄存器  累加器  乘法器 除法器  栈和堆以及ram自检,有些问题要咨询和请教,请给予指导.

问题1:在程序运行中调用 m4_scst_execute_core_tests(0U,43U);这个函数就可以实现上述所有mcu自检功能吗?

问题2:我现在使用的编译环境是IAR的“IAR 8.20”,nxp提供的例程编译环境为 “S32 Design Studio for ARM Version 2018.R1”,这两个的编译环境的链接文件格式不一样,由于使用“lib_m4_scst.a”库需要在s32编译环境中的链接文件

中添加以下两段:

.m4_scst :
{
*(.m4_scst_test_code)
*(.m4_scst_exception_wrappers)
*(.m4_scst_test_code_unprivileged)
*(.m4_scst_test_shell_code)
*(.m4_scst_vector_table)
*(.m4_scst_rom_data)
. = ALIGN(4);
*(.m4_scst_test_code1_unprivileged)
} > m_text

.m4_scst2 :
{
*(.m4_scst_ram_data)
. = ALIGN(4);
*(.m4_scst_ram_data_target0)
. = ALIGN(4);
*(.m4_scst_ram_data_target1)
. = ALIGN(4);
*(.m4_scst_ram_test_code)
*(.m4_scst_test_shell_data)
} > m_data_2

现在要把这部分内容移到IAR编译环境的链接文件中,这段内容不太熟悉,烦请上述这段话怎么移植到IAR 的链接文件中,附件为分别为这两个链接文件使用的链接文件。

Tags (1)
0 Kudos
0 Replies