SK-AM62-LP: Regarding EthTrcv Initialization Failure During SBL OSPI NOR Boot Mode along with App Image

Part Number: SK-AM62-LP


Tool/software:

Hello Team,

MCAL Package: MCAL_SitaraMPU_10.01.00.03

we are using SBL NOR Flash on SK AM62 LP Board.

we have created an HS_FS TI APP image for Booting and loading using SBL OSPI NOR. we added our app image to load on R5 core and updated our default cfg file to boot from Flash.

While Debugging with -Os optimization option, we figured out that EthTrcv Init is Failing and So Ethernet Communication is not Up.

But when we change to -O0 optimization option, it is successful and communication works.

Can you please let us know what could be the issue here.

Regards,

Pradeep R

  • Update from email:

    "We debugged further and found that during EthTrcv Initialization, the value of phyId1 is returned zero from below code snippet. If we try to add a delay before this function then EthTrcv Initialization is successful."

    retVal = EthTrcv_readReg(trcv, ETHTRCV_PHYIDR1, &phyId1);

  • Hi Pradeep,

    You can check if the MPU was properly configured by looking at the R5F MPU region registers. By changing the region number using debugger, you should be to see different configured regions and they should match with the regions in ti_dpl_config.c file. Can you check if you are also able to see this?

    Regards,

    Nihar Potturu

  • Hello Nihar,

    Yes, we are able to see different MPU regions configured by changing MPU region register number.

    These are MPU region values

    MPU
    Region_Number      Region_BaseAddress    Region_Size_Enable        Region_Access
    0                                  0x00000000                       0x0000003F                  0x00001204
    1                                  0x00000000                       0x0000000D                  0x0000020B
    2                                  0x41C00000                       0x00000025                  0x0000020B
    3                                  0x70000000                       0x0000001F                   0x0000020B
    4                                  0x80000000                       0x0000003D                   0x0000030B
    5                                  0x41010000                       0x0000001D                   0x0000030C
    6                                  0x00000000                       0x0000001D                   0x0000030C
    7                                  0x43C00000                      0x00000023                    0x0000030B
    8                                  0x0FC40000                      0x0000000F                    0x00001304
    9                                  0x60000000                       0x0000000D                    0x00001304

    Please find the attached video.

    Regards,

    Pradeep R

  • Hello  ,

    can you please provide your feedback.

    Regards,

    Pradeep R

  • Hello  ,

    can you please provide your feedback.

    Regards,

    Pradeep R