qspi running pfe_master project

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

qspi running pfe_master project

371 Views
youke
Contributor III

Hi,NXP

I'm testing the S32G with rdb2 hardware, I haven't found a M core pfe master program that I can run on qspi, I just want the M core to be able to send out udp data via pfe just fine, is there a routine for that?

BR.

0 Kudos
Reply
13 Replies

225 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @youke 

Thanks for your feedback

You mean that the PFE master with LWIP project works fine from your side via debugger, but failed for QSPI boot when flashed to the QSPI?

May I know which CMM file you used to test the elf file? and share the steps for generating blob image from raw binary.

 

BR

Chenyin

0 Kudos
Reply

221 Views
youke
Contributor III

Hi,chenyin

I tested debugging with PFE-DRV_S32G_M7_MCAL_1.3.0\example_application\run_main_RDB2.cmm and it works correctly;
Test qspi startup by adding the blob file as follows:

youke_0-1760083073438.png

 

BR.

0 Kudos
Reply

193 Views
chenyin_h
NXP Employee
NXP Employee

Thanks, @youke 

Would you mind sharing the map file with me to have a check?

 

BR

Chenyin

0 Kudos
Reply

190 Views
youke
Contributor III

Hi,chenyin

Map file uploaded, please confirm

BR.

0 Kudos
Reply

184 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @youke 

Thanks for your reply.

Would you mind changing the RAM start pointer to also 0x34390000 and have another trial?

 

BR

Chenyin

0 Kudos
Reply

177 Views
youke
Contributor III

Hi, chenyin

I followed your test modification and it didn't boot successfully (the code turned on uart1 to output the log, no associated log prints after power up)

 

BR.

0 Kudos
Reply

172 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @youke 

Thanks for your reply.

May I know if it is possible to share the elf/raw binary/linker file used? I would help to check it.

If it is not convenient to share it in this public community,  please tell me and I could help to create private sessions.

 

BR

Chenyin

0 Kudos
Reply

98 Views
youke
Contributor III

Hi, chenyin

This is the relevant document.

0 Kudos
Reply

79 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @youke 

Thanks for your reply.

I have checked the image you shared, seems there is something wrong in clock init during QSPI boot, not sure what you may had modified upon the default settings? 

 

BR

Chenyin

0 Kudos
Reply

55 Views
youke
Contributor III

Hi, chenyin

I haven't made any corresponding modifications to the initialization code; I only commented out some unused functions in the main function.
These are the QSPI-related parameters in IVT. Could they have an impact?
What other modifications do I need to make?

youke_0-1760424551817.png

BR.

0 Kudos
Reply

21 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @youke 

Thanks for your reply.

I have investigated the issue you met with the images shared, from my debugging, it is related with clock issue, some of the clocks are not enable correctly, since default settings are done for debugger purpose..

I suggest enabling corresponding clocks needed from mcu module, then rebuild the image, it should boot the board and send the frames correctly.

 

BR

Chenyin

 

0 Kudos
Reply

329 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @youke 

Thanks for your post.

Since UDP is based on IP protocol, for sending UDP packet via PFE from M core's perspective, you need to combine the PFE driver and IP stack together(for example, LWIP),  I suggest referencing the demo that mentioned from example_application directory of the PFE MCAL for details.

chenyin_h_0-1759219361788.png

 

BR

Chenyin

 

 

BR
Chenyin

0 Kudos
Reply

242 Views
youke
Contributor III

Hi,chenyin

I have tested this routine, I now want to simply run through the ping test, I tested the cmm debugging and it works, but I can't get it to start after I flushed it to QSPI, do you have a pfe master routine available for qspi?

BR.

0 Kudos
Reply