SPT3.1 Can I change OUTPUT Memory layout:WR_2?

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

SPT3.1 Can I change OUTPUT Memory layout:WR_2?

跳至解决方案
483 次查看
Shi_test
Contributor III

I want to change 512-128-4 OUTPUT Memory layout:WR_2.There is WR_2 :

Shi_test_0-1679910809406.png

But I got wrong result(left is WR_2,right is using WR_6 change WR_2 ):

Shi_test_1-1679910853553.png

  • That means we can't to change WR_2?

 

0 项奖励
1 解答
459 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I am not clear what kind of memory layout you want to apply, I can only provide some advice before you provide more details:(SPT3.1 should only in S32R45.)

1. please note the parameter of the sptContext structure are loaded to WRx in order. should check that Parameters in WR_6 are valid in kernel debugging.

2. WR2 address is used as input parameter, the address of SRAM offset in WR2 will be copied to image part of WR_13, or used in WR_14. so developers should take care of these output address WRX if want apply new memory layout. as well as vector length used in the PDMA, and offset steps in WR_15. see attached picture.

3. It is not easy to modify the SPT kernel if customer is not familiar with the SPT, I recommend read the "SPT_Kernels_RRM_Design_Document.pdf "to know more about the RSDK SPT Kernel data organization and code flow. path: S32R45_RSDK__1.0.0\Docs\SPT\Kernels_data_flow\S32R45\SPT_Kernels_RRM_Design_Document.pdf.

 

Best regards,

Peter

在原帖中查看解决方案

0 项奖励
2 回复数
460 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I am not clear what kind of memory layout you want to apply, I can only provide some advice before you provide more details:(SPT3.1 should only in S32R45.)

1. please note the parameter of the sptContext structure are loaded to WRx in order. should check that Parameters in WR_6 are valid in kernel debugging.

2. WR2 address is used as input parameter, the address of SRAM offset in WR2 will be copied to image part of WR_13, or used in WR_14. so developers should take care of these output address WRX if want apply new memory layout. as well as vector length used in the PDMA, and offset steps in WR_15. see attached picture.

3. It is not easy to modify the SPT kernel if customer is not familiar with the SPT, I recommend read the "SPT_Kernels_RRM_Design_Document.pdf "to know more about the RSDK SPT Kernel data organization and code flow. path: S32R45_RSDK__1.0.0\Docs\SPT\Kernels_data_flow\S32R45\SPT_Kernels_RRM_Design_Document.pdf.

 

Best regards,

Peter

0 项奖励
471 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I have asked RADAR team for clarification.

best regards,

Peter

0 项奖励