S32G-VNP-GLDBOX Gmac_Ip_InternalLoopback test

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32G-VNP-GLDBOX Gmac_Ip_InternalLoopback test

跳至解决方案
1,595 次查看
longtengqiufeng1
Contributor III

Hi:

I  create the Gmac_Ip_InternalLoopback_S32G274A_M7 project  from SW32G_RTD_4.4_3.0.2_HF01_DS_updatesite_D2204 using S32DS v3.4. However, it does not seem to work.

Due to lack of Debugger, I only find the program stop at this  line,the program is stuck in an endless loop:

longtengqiufeng1_0-1667976817568.png

Please help me to solve the issue, if any configurations need to be checked?

Thanks !!!

0 项奖励
回复
1 解答
1,535 次查看
longtengqiufeng1
Contributor III

I solve it !

I got a PE Debugger , and find that linker.ld has problem !

In order to use SD card , I modify the document like this:

longtengqiufeng1_0-1668666029264.png

when I recovery the file , I find that program running success!

在原帖中查看解决方案

0 项奖励
回复
6 回复数
1,556 次查看
longtengqiufeng1
Contributor III

Can someone solve this problem...?

0 项奖励
回复
1,549 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

At this moment, we are working on a solution for using the SD for this specific example.

A workaround seems to be using the embedded NOR Flash available on the RDB2 and using the default linker file provided in the example. Due to the image being too large, a configuration for the QSPI controller should be provided to initialize and fetch the information in higher speeds.

Please, let us know if this information was helpful or not.

0 项奖励
回复
1,544 次查看
longtengqiufeng1
Contributor III

Hi,

I use Uart to print the The function Gmac_Ip_GetTransmitStatus return value is GMAC_STATUS_BUSY(02).

And I try to solve it referring to this solution,but failed.

longtengqiufeng1_0-1668569373549.png

I check all of the clock of GMAC , the MC_CGM_0 MUX_9, MUX_10, MUX_11 and MUX_15 you mentioned not locked .

This my clock figures....

longtengqiufeng1_1-1668569635086.pnglongtengqiufeng1_2-1668569697640.png

But your response was to say that this program can not runing using SD card ??

I use the same method to runing FreeRTOS+LWIP demo of TCP/IP Stack.zip from Automotive Software Package Manager . I fail to  ping 192.168.0.200 on P3A network interface.

longtengqiufeng1_3-1668570387123.png

Could you help me to solve this probelm,plese ?

Thank you!!

 

0 项奖励
回复
1,536 次查看
longtengqiufeng1
Contributor III

I solve it !

I got a PE Debugger , and find that linker.ld has problem !

In order to use SD card , I modify the document like this:

longtengqiufeng1_0-1668666029264.png

when I recovery the file , I find that program running success!

0 项奖励
回复
1,581 次查看
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

We have verified the example and does not seem to need anything else aside from generating the code with the "S32 Configurations Tools" (not even an external connection).

You are saying that you don't have a debugger, How are you doing the programming for this code in your board? Have you tried another example? Just to know if the board is working as expected.

Depending on how you are doing your programming, have you configured the bootmode correctly? Are you using the serial boot mode? Or the RCON one?

Please, let us know for us to continue improving our answer.

0 项奖励
回复
1,580 次查看
longtengqiufeng1
Contributor III

Hi

Thank you for your reply!

I refer to "Light Up RGB LED Based On Real Time Drivers " in the "S32G-GOLDBOX-SW-UG" document, download image to SD card,  the LED and UART and SPI test program with M7 was verified.

I use the RGB LED and serial port to help find the problem.

Thses are my modified code and S32 Configurations Tools

longtengqiufeng1_0-1668047003903.png

longtengqiufeng1_1-1668047024845.png

longtengqiufeng1_2-1668047044278.png

 

longtengqiufeng1_3-1668047072338.png

 

  • If the program runs successfully,RGB LED will close.But it not ......ToT

  • please help me  to solve this problem,thank a lot!

PS:

  • Attachment  is the program I generated

 

0 项奖励
回复