Cannot get PFE version with FreeRTOS and LWIP on S32G

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Cannot get PFE version with FreeRTOS and LWIP on S32G

2,898件の閲覧回数
Chih-Hung
Contributor I

Hi,

I'm working on porting PFE on S32G but got hard fault when get PFE version.

/* Get PFE Version */
pfe.pfe_version = *(uint32_t*)(void*)((addr_t)pfe.cbus_baseaddr + CBUS_GLOBAL_CSR_BASE_ADDR + WSP_VERSION);

Is there any setting missed or incorrect process related to this hard fault?

Thanks

0 件の賞賛
返信
9 返答(返信)

135件の閲覧回数
Bertkn
Contributor I

Hello,

Could you please share what was the cause of hard fault with pfe adresses?

I'm getting the same error.

Thanks

0 件の賞賛
返信

2,885件の閲覧回数
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Can you help us providing the following information?

  • Which platform are you using? S32G2 or G3?
  • Which PFE version are you using?
  • Are you using PFE for M7 or for Linux?

Also, are you using any example as a base? If you debug the application, can you look into the memory address you are trying to read? Is it valid?

Please, let us know.

0 件の賞賛
返信

2,843件の閲覧回数
Chih-Hung
Contributor I

Hi,

  • Which platform are you using? S32G2 or G3?
    • S32G-VNP-RDB2
  • Which PFE version are you using?
    • PFE-DRV_S32G_M7_MCAL_1.0.0_QLP2
      • s32g_pfe_class firmware version 1.4.0
    • SW32_RTD_4.4_4.0.0_D2210
    • TCPIP_STACK.S32G.1.0.3
    • FreeRTOS S32CC 4.0.0 4.0.0.202211280740 
  • Are you using PFE for M7 or for Linux?
    • M7

We are using FreeRTOS example with TCPIP stack for GMAC.

0 件の賞賛
返信

2,841件の閲覧回数
Chih-Hung
Contributor I

Attach project settings

0 件の賞賛
返信

2,824件の閲覧回数
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback.

It seems that there is already a case inside the NXP online service on regards of this same situation, are these related?

Please, let us know.

0 件の賞賛
返信

2,797件の閲覧回数
Chih-Hung
Contributor I

Hi,

We are working on different codebase.

Can you check if 0x50300 we got from RDB2 is correct or not?

If not, what version can we get?

    /* Get PFE Version */
    pfe.pfe_version = *(uint32_t*)(void*)((addr_t)pfe.cbus_baseaddr + CBUS_GLOBAL_CSR_BASE_ADDR + WSP_VERSION);
    NXP_LOG_INFO("HW version 0x%x\n", (uint_t)pfe.pfe_version);

 

0 件の賞賛
返信

2,779件の閲覧回数
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback.

Regarding the PFE Version, the following is provided under the "pfe_cbus.h" file:

 

DanielAguirre_1-1685636997375.png

We don't fully understand what version you are trying to access.

Please, let us know.

0 件の賞賛
返信

2,774件の閲覧回数
Chih-Hung
Contributor I

Hi,

This getting pfe hw version code is in pfe driver PFE-DRV_S32G_M7_MCAL_1.0.0_QLP2.

Do you have any related document that I can check it?

0 件の賞賛
返信

2,761件の閲覧回数
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback.

Since this is related to the PFE registers, and due to PFE IP license limitation, PFE register description cannot be shared.

Since the routine is available inside the PFE drivers that NXP provides, and no modification should be done, then the version should be the one you are seeing.

Please, let us know.

0 件の賞賛
返信