Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM263P4-Q1: Ethernet not working on some boards

Part Number: AM263P4-Q1
Other Parts Discussed in Thread: DP83869HM, SYSCONFIG, UNIFLASH

Hi,

I am having trouble with ethernet.

I have a custom board with a DP83869HM, mostly just like the eval board, and it is working on some boards, but not on others.

The code fails in function EnetApp_driverOpen => EnetApp_enableMacPort  with error code -3 (ENET_EINVALIDPARAMS). I tried comparing params but I could not find a difference, or I don’t know where to look.

I cannot find any HW error, I tried swapping Phys from a working and a non-working board, but this changes nothing. HW signals seem to be fine. Voltages are correct, 25MHz clock is ok, I see traffic on MDIO, and the RxClk from the Phy. I don’t see a TxClk on the non-working boards, but my guess is that the SW just doesn’t get to the point where TxClk starts.

Any idea what could be the problem here? Or where I have to look?

Best regards,

Frank

  • Hi Frank,

    The AM263Px device that you are using, is the LaunchPad or Control Card? And can you please share the following:

    1. MCU_PLUS_SDK version being used.

    2. The revision number of LP/CC board. There will be a label mentioning something like "PROCxxxE2" or "PROCxxxxA" or something similar.

    3. Can you please share the boot-mode the device is set in, if there is any SBL flashed to the device.

    4. Is the failure consistent, i.e., on the board where it doesn't work, does it never work, or only fails in some iterations. Same question for the boards on which the applications work.

    Regards,
    Shaunak

  • AM263P4AFONFZCZRQ1 on a custom board
    SDK 26.00.00.06
    OSPI boot with SBL OSPI
    I think it worked one time, while trying to debug it by stepping through the code, but it never works when booting from flash. the good boards work every time.

  • i tried the bad board again:

    - when booting from flash, it never works. when I attach a debugger, I can see that the code is stuck in line 400 of the ti_enet_open_close.c with status = -3 (ENET_EINVALIDPARAMS).

    397 for(i = 0; i < numMacPorts; i++)
    398 {
    399     status = EnetApp_enableMacPort(gEnetAppSysCfgObj.hEnet, enetType, instId, selfCoreId, macPortList[i], portNoPhyStatus[i]);
    400     EnetAppUtils_assert(status == ENET_SOK);
    401 }

    - when starting from a ccs debug session in devboot mode, it works every time.

    I had a similar case some time ago with MCAN, that I was never able to resolve.

     To me it feels to be something chip specific - some work, some don't.

  • Hi Frank,

    Would it be possible for you to share some more info about the failure case. The ENET_INVALID_PARAM would come when some check fails inside the EnetApp_enableMacPort() function.

    I do not have any local setup where I can re-produce this issue.

    Also, does this consistently fail even after a power-cycle on bad boards with OSPI Boot with SBL OSPI?

    I don't think it is a software issue because the same software works on the good boards with same boot mode.

    Regards,
    Shaunak

  • today my good board stopped working too (no eth when booting from ospi). No idea why, maybe my luck just ran out. so unfortunately I cannot compare against that, but I did compare dev boot vs.OSPI boot on some registers that seem relevant (MSS_CTRL, MSS_RCM, TOP_RCM, TOP_CTRL, IOMUX, CPSW) and there are some differences visible, many of them are related to clock settings.

    this also explains, why my mentioned MCAN problem does not occure with this newer board. I use MCAN 0 and 7 now, instead of 0 and 1 and MCAN 1 is one of the peripherals that are affected by what ever is happening here.

    So is this a problem with the OSPI SBL maybe?

    Register Name Address dev boot ospi boot description
    MSS_CTRL_CPSW_CONTROL 0x50D00810 0x00020100 0x01000100
    MSS_CTRL_FAULT_ADDRESS 0x50D01024 0x00000000 0x00000834 Fault Address register.
    MSS_CTRL_FAULT_TYPE_STATUS 0x50D01028 0x00000000 0x00000042 Fault Type Status register.
    MSS_CTRL_INTR_RAW_STATUS 0x50D01010 0x00000000 0x00000004 Interrupt Raw Status/Set Register.
    MSS_CTRL_L2IOCRAM_MEM_INIT_DONE 0x50D00244 0x0000003F 0x00000000
    MSS_CTRL_LOCK0_KICK0 0x50D01008 0x01234567 0x00000000  - KICK0 component.
    MSS_CTRL_LOCK0_KICK1 0x50D0100C 0x0FEDCBA8 0x00000000  - KICK1 component.
    MSS_CTRL_R5SS0_CONTROL 0x50D00020 0x00000000 0x07000700
    MSS_CTRL_R5SS0_CORE0_ADDRPARITY_ERR_ATCM 0x50D18124 0x00000AA8 0x00000762
    MSS_CTRL_R5SS0_CORE0_TCM_ADDRPARITY_ERRAGG_STATUS 0x50D18104 0x00000000 0x00000007
    MSS_CTRL_R5SS0_CORE0_TCM_ADDRPARITY_ERRAGG_STATUS_RAW 0x50D18108 0x00000000 0x00000007
    MSS_CTRL_R5SS0_CORE1_ADDRPARITY_ERR_ATCM 0x50D18128 0x00000027 0x00000000
    MSS_CTRL_R5SS0_CORE1_ERR_ADDRPARITY_B0TCM 0x50D18130 0x00000372 0x00000000
    MSS_CTRL_R5SS0_CORE1_ERR_ADDRPARITY_B1TCM 0x50D18138 0x00000405 0x00000000
    MSS_CTRL_R5SS0_ROM_ECLIPSE 0x50D00080 0x00000007 0x00000707
    MSS_CTRL_R5SS1_CONTROL 0x50D00040 0x00000000 0x00000700
    MSS_CTRL_R5SS1_CORE0_ADDRPARITY_ERR_ATCM 0x50D18164 0x00000034 0x00000039
    MSS_CTRL_R5SS1_CORE0_ERR_ADDRPARITY_B0TCM 0x50D1816C 0x00000034 0x00000039
    MSS_CTRL_R5SS1_CORE0_ERR_ADDRPARITY_B1TCM 0x50D18174 0x00000034 0x00000039
    MSS_CTRL_R5SS1_CORE0_TCM_ADDRPARITY_ERRAGG_STATUS 0x50D18144 0x00000000 0x00000007
    MSS_CTRL_R5SS1_CORE0_TCM_ADDRPARITY_ERRAGG_STATUS_RAW 0x50D18148 0x00000000 0x00000007
    MSS_CTRL_R5SS1_CORE1_ADDRPARITY_ERR_ATCM 0x50D18168 0x00000030 0x00000035
    MSS_CTRL_R5SS1_CORE1_ERR_ADDRPARITY_B0TCM 0x50D18170 0x00000035 0x00010044
    MSS_CTRL_R5SS1_CORE1_ERR_ADDRPARITY_B1TCM 0x50D18178 0x00000030 0x00000035
    MSS_CTRL_TPCC0_INTAGG_MASK 0x50D00830 0x000001FB 0x000001FD
    MSS_CTRL_TPCC0_INTAGG_STATUS 0x50D00834 0x00000000 0x00000002
    MSS_CTRL_TPCC0_INTAGG_STATUS_RAW 0x50D00838 0x00000000 0x00000003
    MSS_CTRL_TPTC_XID_REORDER_CFG 0x50D00808 0x00000000 0x00000000
    MSS_RCM_CONTROLSS_PLL_CLK_SRC_SEL 0x53208160 0x00000222 0x00000000 This Register is used for selecting the clock source for Corresponding root clock.
    MSS_RCM_CONTROLSS_PLL_CLK_STATUS 0x53208460 0x00000004 0x00000001 Clock source selection and Divider Value  of respective clock.
    MSS_RCM_FAULT_ADDRESS 0x53209024 0x00000334 0x00000310 Fault Address register.
    MSS_RCM_HSM_WDT_CLK_SRC_SEL 0x53208804 0x00000555 0x00000000 This Register is used for selecting the clock source for Corresponding root clock.
    MSS_RCM_HSM_WDT_CLK_STATUS 0x53208840 0x00000020 0x00000001 Clock source selection and Divider Value  of respective clock.
    MSS_RCM_I2C_CLK_DIV_VAL 0x53208264 0x00000333 0x00000000 This Register is used to select the Divider value for respective clk.
    MSS_RCM_I2C_CLK_SRC_SEL 0x53208164 0x00000333 0x00000000 This Register is used for selecting the clock source for Corresponding root clock.
    MSS_RCM_I2C_CLK_STATUS 0x53208464 0x00000308 0x00000001 Clock source selection and Divider Value  of respective clock.
    MSS_RCM_LIN0_UART0_CLK_SRC_SEL 0x53208174 0x00000777 0x00000000 This Register is used for selecting the clock source for Corresponding root clock.
    MSS_RCM_LIN0_UART0_CLK_STATUS 0x53208474 0x00000080 0x00000001 Clock source selection and Divider Value  of respective clock.
    MSS_RCM_LIN1_UART1_CLK_SRC_SEL 0x53208178 0x00000777 0x00000000 This Register is used for selecting the clock source for Corresponding root clock.
    MSS_RCM_LIN1_UART1_CLK_STATUS 0x53208478 0x00000080 0x00000001 Clock source selection and Divider Value  of respective clock.
    MSS_RCM_LIN2_UART2_CLK_SRC_SEL 0x5320817C 0x00000777 0x00000000 This Register is used for selecting the clock source for Corresponding root clock.
    MSS_RCM_LIN2_UART2_CLK_STATUS 0x5320847C 0x00000080 0x00000001 Clock source selection and Divider Value  of respective clock.
    MSS_RCM_LIN3_UART3_CLK_SRC_SEL 0x53208180 0x00000777 0x00000000 This Register is used for selecting the clock source for Corresponding root clock.
    MSS_RCM_LIN3_UART3_CLK_STATUS 0x53208480 0x00000080 0x00000001 Clock source selection and Divider Value  of respective clock.
    MSS_RCM_LIN4_UART4_CLK_SRC_SEL 0x53208184 0x00000777 0x00000000 This Register is used for selecting the clock source for Corresponding root clock.
    MSS_RCM_LIN4_UART4_CLK_STATUS 0x53208484 0x00000080 0x00000001 Clock source selection and Divider Value  of respective clock.
    MSS_RCM_LIN5_UART5_CLK_SRC_SEL 0x53208188 0x00000777 0x00000000 This Register is used for selecting the clock source for Corresponding root clock.
    MSS_RCM_LIN5_UART5_CLK_STATUS 0x53208488 0x00000080 0x00000001 Clock source selection and Divider Value  of respective clock.
    MSS_RCM_MCAN0_RST_CTRL 0x53208588 0x00000000 0x00000000 This register is used to Reset respective IP.
    MSS_RCM_MCAN1_CLK_DIV_VAL 0x53208204 0x00000444 0x00000000 This Register is used to select the Divider value for respective clk.
    MSS_RCM_MCAN1_CLK_SRC_SEL 0x53208104 0x00000444 0x00000000 Clock Source selection Register for corresponding Root clock.
    MSS_RCM_MCAN1_CLK_STATUS 0x53208404 0x00000410 0x00000001 Clock source selection and Divider Value  of respective clock.
    MSS_RCM_MCAN2_CLK_DIV_VAL 0x53208208 0x00000444 0x00000000 This Register is used to select the Divider value for respective clk.
    MSS_RCM_MCAN2_CLK_SRC_SEL 0x53208108 0x00000444 0x00000000 Clock Source selection Register for corresponding Root clock.
    MSS_RCM_MCAN2_CLK_STATUS 0x53208408 0x00000410 0x00000001 Clock source selection and Divider Value  of respective clock.
    MSS_RCM_MCAN3_CLK_DIV_VAL 0x5320820C 0x00000444 0x00000000 This Register is used to select the Divider value for respective clk.
    MSS_RCM_MCAN3_CLK_SRC_SEL 0x5320810C 0x00000444 0x00000000 Clock Source selection Register for corresponding Root clock.
    MSS_RCM_MCAN3_CLK_STATUS 0x5320840C 0x00000410 0x00000001 Clock source selection and Divider Value  of respective clock.
    MSS_RCM_MCSPI0_CLK_DIV_VAL 0x5320823C 0x00000333 0x00000000 This Register is used to select the Divider value for respective clk.
    MSS_RCM_MCSPI0_CLK_SRC_SEL 0x5320813C 0x00000333 0x00000000 This Register is used for selecting the clock source for Corresponding root clock.
    MSS_RCM_MCSPI0_CLK_STATUS 0x5320843C 0x00000308 0x00000001 Clock source selection and Divider Value  of respective clock.
    MSS_RCM_MCSPI2_CLK_DIV_VAL 0x53208244 0x00000333 0x00000000 This Register is used to select the Divider value for respective clk.
    MSS_RCM_MCSPI2_CLK_SRC_SEL 0x53208144 0x00000333 0x00000000 This Register is used for selecting the clock source for Corresponding root clock.
    MSS_RCM_MCSPI2_CLK_STATUS 0x53208444 0x00000308 0x00000001 Clock source selection and Divider Value  of respective clock.
    MSS_RCM_MCSPI3_CLK_DIV_VAL 0x53208248 0x00000333 0x00000000 This Register is used to select the Divider value for respective clk.
    MSS_RCM_MCSPI3_CLK_SRC_SEL 0x53208148 0x00000333 0x00000000 This Register is used for selecting the clock source for Corresponding root clock.
    MSS_RCM_MCSPI3_CLK_STATUS 0x53208448 0x00000308 0x00000001 Clock source selection and Divider Value  of respective clock.
    MSS_RCM_MCSPI4_CLK_DIV_VAL 0x5320824C 0x00000333 0x00000000 This Register is used to select the Divider value for respective clk.
    MSS_RCM_MCSPI4_CLK_SRC_SEL 0x5320814C 0x00000333 0x00000000 This Register is used for selecting the clock source for Corresponding root clock.
    MSS_RCM_MCSPI4_CLK_STATUS 0x5320844C 0x00000308 0x00000001 Clock source selection and Divider Value  of respective clock.
    MSS_RCM_MMC0_CLK_DIV_VAL 0x53208250 0x00000333 0x00000000 This Register is used to select the Divider value for respective clk.
    MSS_RCM_MMC0_CLK_SRC_SEL 0x53208150 0x00000333 0x00000000 This Register is used for selecting the clock source for Corresponding root clock.
    MSS_RCM_MMC0_CLK_STATUS 0x53208450 0x00000308 0x00000001 Clock source selection and Divider Value  of respective clock.
    MSS_RCM_R5SS0_RST_STATUS 0x53208010 0x00000783 0x00000703 R5SS Reset Cause Status register of corresponding R5SS.
    MSS_RCM_R5SS0_RST_WFICHECK 0x53208024 0x00000707 0x07070707 Enable WFI ceck before R5 Reset is asserted.
    MSS_RCM_R5SS1_RST_STATUS 0x53208030 0x00000783 0x00000603 R5SS Reset Cause Status register of corresponding R5SS.
    MSS_RCM_R5SS1_RST_WFICHECK 0x53208044 0x00000707 0x07070707 Enable WFI ceck before R5 Reset is asserted.
    MSS_RCM_WDT1_CLK_SRC_SEL 0x5320812C 0x00000222 0x00000000 This Register is used for selecting the clock source for Corresponding root clock.
    MSS_RCM_WDT1_CLK_STATUS 0x5320842C 0x00000004 0x00000001 Clock source selection and Divider Value  of respective clock.
    TOP_RCM_SOP_MODE_VALUE 0x53200024 0x0000000B 0x0000000C Sense on Power mode value.
    TOP_RCM_PLL_CORE_CLKCTRL 0x53200404 0x00095001 0x200B5001 Clock control for Core PLL.
    TOP_RCM_PLL_CORE_STATUS 0x53200424 0xC0001610 0xC0001E10 Core PLL status regiser.
    TOP_RCM_PLL_PER_CLKCTRL 0x53200804 0x00095001 0x200B5001 Clock control for Peripheral PLL.
    TOP_RCM_PLL_PER_STATUS 0x53200824 0xC0001618 0xC0001E10 Peripheral PLL status regiser.
    TOP_RCM_PLL_PER_HSDIVIDER_CLKOUT0 0x5320082C 0x0000030B 0x0000032B Peripheral PLL high speed divider clock 0 control.
    TOP_RCM_PLL_PER_HSDIVIDER_CLKOUT1 0x53200830 0x00000309 0x00000329 Peripheral PLL high speed divider clock 1 control.
    TOP_RCM_PLL_PER_HSDIVIDER_CLKOUT2 0x53200834 0x0000000B 0x0000002B Peripheral PLL high speed divider clock 2 control.
    TOP_RCM_TRCCLKOUT_CLK_SRC_SEL 0x53200C20 0x00000222 0x00000000 Clock Source select register for TRC clkout.
    TOP_RCM_TRCCLKOUT_DIV_VAL 0x53200C24 0x00000111 0x00000000 Clock Divider register for TRC clkout.
    TOP_RCM_TRCCLKOUT_CLK_STATUS 0x53200C2C 0x00000104 0x00000001 Clock Status register for TRC clkout.
    TOP_CTRL_TSENSE0_DATA0 0x50D80D20 0x0033834B 0x01422E4B Temp Sensor 0 Result FIFO Register 0
    TOP_CTRL_TSENSE0_DATA1 0x50D80D24 0x0033854B 0x01429F4B Temp Sensor 0 Result FIFO Register 1
    TOP_CTRL_TSENSE0_DATA2 0x50D80D28 0x0033844B 0x01429F4B Temp Sensor 0 Result FIFO Register 2
    TOP_CTRL_TSENSE0_DATA3 0x50D80D2C 0x0033834B 0x01429E4B Temp Sensor 0 Result FIFO Register 3
    TOP_CTRL_TSENSE0_ACCU 0x50D80D30 0x000F4853 0x005E87CB Temp Sensor 0 Result Accumulator Register.
    TOP_CTRL_TSENSE1_DATA0 0x50D80D50 0x00338A4B 0x0142A34B Temp Sensor 1 Result FIFO Register 0
    TOP_CTRL_TSENSE1_DATA1 0x50D80D54 0x00338A4B 0x0142A24B Temp Sensor 1 Result FIFO Register 1
    TOP_CTRL_TSENSE1_DATA2 0x50D80D58 0x0033894B 0x0142A24B Temp Sensor 1 Result FIFO Register 2
    TOP_CTRL_TSENSE1_DATA3 0x50D80D5C 0x00338B4B 0x0142A14B Temp Sensor 1 Result FIFO Register 3
    TOP_CTRL_TSENSE1_ACCU 0x50D80D60 0x000F42FF 0x005E875B Temp Sensor 1 Result Accumulator Register.
    IOMUX_EPWM10_B_CFG_REG 0x53100100 0x000005F7 0x00000505 EPWM10_B IO config register.
    IOMUX_EPWM11_A_CFG_REG 0x53100104 0x000005F7 0x00000506 EPWM11_A IO config register.
    IOMUX_EPWM11_B_CFG_REG 0x53100108 0x000005F7 0x00000506 EPWM11_B IO config register.
    IOMUX_EPWM12_A_CFG_REG 0x5310010C 0x000005F7 0x00000506 EPWM12_A IO config register.
    IOMUX_EPWM12_B_CFG_REG 0x53100110 0x000005F7 0x00000506 EPWM12_B IO config register.
    IOMUX_EPWM13_A_CFG_REG 0x53100114 0x000005F7 0x00000506 EPWM13_A IO config register.
    IOMUX_MCAN0_RX_CFG_REG 0x5310001C 0x000005F7 0x00000506 MCAN0_RX IO config register.
    IOMUX_MCAN0_TX_CFG_REG 0x53100020 0x000005F7 0x00000506 MCAN0_TX IO config register.
    IOMUX_MCAN1_RX_CFG_REG 0x53100024 0x000005F7 0x00000506 MCAN1_RX IO config register.
    IOMUX_QSPI0_D2_CFG_REG 0x53100014 0x000005F7 0x00000506 QSPI0_D2 IO config register.
    IOMUX_QSPI0_D3_CFG_REG 0x53100018 0x000005F7 0x00000506 QSPI0_D3 IO config register.
    CPSW_MDIO_USER_GROUP_USER_ACCESS_REG_j 0x52800F80 0x2220BF02 0x00000000 MDIO User Access  Register
    CPSW_MDIO_USER_INT_RAW_REG 0x52800F20 0x00000001 0x00000000 MDIO User Interrupt Raw Register
    CPSW_NC_ALE_TBLCTL 0x5283E020 0x00000000 0x000001FF The ALE table control register is used to read or write that ALE table entries. After writing to this register any read or write to any ALE register will be stalled until the read or write operation completes.
    CPSW_NC_ALE_TBLW0 0x5283E03C 0x761DECF2 0x00000000 The ALE Table Word 0 is the least significant word of an ALE table entry.
    CPSW_NC_ALE_TBLW1 0x5283E038 0x100070FF 0x00000000 The ALE Table Word 1 is the middle word of an ALE table entry.
    CPSW_NC_ALE_THREADMAPDEF 0x5283E134 0x00008000 0x00000000 The THREAD Mapping Default Value register is used to set the default thread ID when no classifier is matched,
    CPSW_NC_CPDMA_INT_EOI_VECTOR_REG 0x52834094 0x00000006 0x00000007 The CPDMA_EOI_VECTOR(4:0) output bus reflects the value written to this location one VBUSP_GCLK cycle after a write to this location.  The EOI_WR signal is asserted for a single clock cycle after a latency of two VBUSP_GCLK cycles when a write is performed to this location.
    CPSW_NC_CPDMA_INT_FH_INTMASK_CLEAR_REG 0x5283408C 0x00000001 0x00000000 CPDMA FHost Interrupt Masked CLR
    CPSW_NC_CPDMA_INT_FH_INTMASK_SET_REG 0x52834088 0x00000001 0x00000000 CPDMA FHost Interrupt Masked SET
    CPSW_NC_CPDMA_INT_FH_INTSTAT_RAW_REG 0x52834080 0x00000001 0x00000000 CPDMA FHost Interrupt Status RAW
    CPSW_NC_CPDMA_INT_TH_INTMASK_CLEAR_REG 0x528340AC 0x00000001 0x00000000 CPDMA THost Interrupt Masked CLR
    CPSW_NC_CPDMA_INT_TH_INTMASK_SET_REG 0x528340A8 0x00000001 0x00000000 CPDMA THost Interrupt Masked SET
    CPSW_NC_CPDMA_SRAM_FH0_CP_REG 0x52834240 0x78202020 0x00000000 CPDMA FHost Channel 0 Completion Pointer
    CPSW_NC_CPDMA_SRAM_TEST_FH0_CP_REG 0x52834340 0x78202020 0x00000000 Test CPDMA FHost Channel 0 Completion Pointer
    CPSW_NC_CPPI_P0_BLK_CNT_REG 0x52821010 0x00000002 0x00000001 CPPI Port 0 FIFO Block Usage Count
    CPSW_NC_CPPI_P0_CONTROL_REG 0x52821004 0x0002000B 0x00020009 CPPI Port 0 Control
    CPSW_NC_ETH_MAC_PN_MAC_BOFFTEST_REG_j 0x5282233C 0x012D0000 0x02680000 Enet Port N Mac Backoff Test
    CPSW_NC_STAT_ENET_PN_TX_PRI_BCNT_REG_j_k 0x5283A1A0 0x000005A0 0x00000000 ENET Port n PRIORITY N Packet Byte Count
    CPSW_NC_STAT_ENET_PN_TX_PRI_REG_j_k 0x5283A180 0x00000012 0x00000000 ENET Port n PRIORITY N Packet Count
    CPSW_NC_STAT_NETOCTETS_j 0x5283A080 0x230FD18A 0x00000000 Total number of bytes received and transmitted
    CPSW_NC_STAT_OCTETFRAMES65T127_j 0x5283A06C 0x00000012 0x00000000 Total number of frames of size 65 to 127 bytes received and transmitted
    CPSW_NC_STAT_OCTETFRAMES512T1023_j 0x5283A078 0x000E57FD 0x00000000 Total number of frames of size 512 to 1023 bytes received and transmitted
    CPSW_NC_STAT_RXGOODFRAMES_j 0x5283A000 0x0018745A 0x00000000 Total number of good frames received
    CPSW_NC_STAT_RXOCTETS_j 0x5283A030 0x3BCF30C4 0x00000000 Total number of received bytes in good frames
    CPSW_NC_STAT_TXGOODFRAMES_j 0x5283A034 0x0000001E 0x00000000 Total number of good frames transmitted
    CPSW_NC_STAT_TXMULTICASTFRAMES_j 0x5283A03C 0x0000001E 0x00000000 Total number of good multicast frames transmitted
    CPSW_NC_STAT_TXOCTETS_j 0x5283A064 0x00000960 0x00000000 Total number of bytes in all good frames transmitted
    CPSW_NC_STAT_TXSINGLECOLLFRAMES_j 0x5283A04C 0x0000001E 0x00000000 Total number of transmitted frames experiencing a single collision
    CPSW_REGS_INT_SS_C1_FH_PULSE_EN_REG 0x52801848 0x00000001 0x00000000 Core 1 FHost Pulse Interrupt Enable Register
    CPSW_REGS_INT_SS_C1_TH_PULSE_EN_REG 0x52801844 0x00000001 0x00000000 Core 1 THost Pulse Interrupt Enable Register
    CPSW_RGMII2_STATUS_REG 0x52800034 0x0000000D 0x00000000 RGMII2 Status Register.
  • Hi Frank,

    Apologies for a delayed response, i was out-of-office,

    Let me evaluate the above register dumps and take a look at it.

    today my good board stopped working too (no eth when booting from ospi).

    Does the good board still work with DEV Boot mode?

    Regards,
    Shaunak

  • yes, devboot works fine.

  • Hi Frank,

    I did try an ethernet application on the DP83869HM PHY on the TI Control Card with the ZCZ Package. It seems to work fine in both OSPI and DEV Boot-mode. Let me loop in more hardware experts who might be able to help here

    Regards,
    Shaunak

  • Hi Frank, 

    If my understanding is correct, the issue is happening not only when the application is ethernet but also when the application is MCAN.

    Also, I see that there are differences in the clocking registers. So we can debug in this direction first. 

    1. Can you please try the same experiment but this time using sbl null example in the SDK.

    In the below path, there is a sbl image called sbl_null,

    mcu_plus_sdk_am263px_26_00_00_06/tools/boot/sbl_prebuilt/am263px-cc/sbl_null.debug.tiimage

    The aim of this sbl is just to configure the clocks basically a substitute for the gel script. In dev boot mode it is the gel script who does the clock configuration.

    2. Flash the SBL NULL image into custom board

    3. Boot the device, on boot the below logs are expected

    4. Now the device is good to go. We can load the program from CCS.

    5. Before launching the target configuration, Create a target configuration without gel scripts.

    For this just clear the initialization script text filed as shown in the below image,

    6. Launch the target configuration and load the program like usual.

    7. Now we can run the program

    The reason behind this is because, when I examined the TOP RCM and MSS RCM dumps between gel script and SBL NULL, the register dumps were identical.

    Thanks & Regards,

    Aswin

  • removing the GEL file path results in "..\..\..\..\..\..\..\..\.." is this correct? 
    when I try this in my sys-project (I use all 4 cores, eth is on R5_1): it does not work:
    Cortex_R5_0: GEL: Error loading file 'D:\..': unable to open GEL file 'D:\..'
    Cortex_R5_1: GEL: Error loading file 'D:\..': unable to open GEL file 'D:\..'
    Cortex_R5_2: GEL: Error loading file 'D:\..': unable to open GEL file 'D:\..'
    Cortex_R5_3: GEL: Error loading file 'D:\..': unable to open GEL file 'D:\..'
    Cortex_R5_0: AM263Px_ZCZ_F
    Cortex_R5_0: Board Selected : EVM
    Cortex_R5_0: Part Selected : SIP (On-Chip Flash)
    Cortex_R5_0: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x40: (Error -1065 @ 0x0) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 20.5.0.3902) 
    Cortex_R5_0: File Loader: Verification failed: Target failed to write 0x00000000
    Cortex_R5_0: GEL: File: ########.out: Load failed.

    if I do this in the R5_1 project, it seems to work, the only feedback I see is:
    Cortex_R5_1: CPU reset (soft reset) has been issued through GEL on program load.
    I then can start the core*, but ethernet does not work. it is the same behaviour as initially.  (* running core R5_1 on its own is sufficient, because if I start my sys-project from devboot, but only start R5_1, the one with ethernet, and leave the other cores halted, it works fine.)

    then I tried with a completely new project (empty/nortos on R5_0, no changes in sysconfig)

    1. power on with devboot => erased the whole flash with UniFlash, just to be sure
    2. power on with devboot => CCS debug session with GEL files, read registers MCC_RCM and TOP_RCM
    3. power on with devboot => flashed sbl_null.debug.tiimage with UniFlash
    4. power on with ospiboot => UART output same as yours, (times differ by a few us).
      CCS debug session without GEL files, read registers MCC_RCM and TOP_RCM

    the following registers of MSS_RCM and TOP_RCM differ:

    reg addr devboot sbl_null
    MSS_RCM_CONTROLSS_PLL_CLK_SRC_SEL 0x53208160 0x00000222 0x00000000
    MSS_RCM_CONTROLSS_PLL_CLK_STATUS 0x53208460 0x00000004 0x00000001
    MSS_RCM_CPTS_CLK_DIV_VAL 0x53208258 0x00000111 0x00000000
    MSS_RCM_CPTS_CLK_SRC_SEL 0x53208158 0x00000333 0x00000000
    MSS_RCM_CPTS_CLK_STATUS 0x53208458 0x00000108 0x00000001
    MSS_RCM_HSM_WDT_CLK_SRC_SEL 0x53208804 0x00000555 0x00000000
    MSS_RCM_HSM_WDT_CLK_STATUS 0x53208840 0x00000020 0x00000001
    MSS_RCM_I2C_CLK_DIV_VAL 0x53208264 0x00000333 0x00000000
    MSS_RCM_I2C_CLK_SRC_SEL 0x53208164 0x00000333 0x00000000
    MSS_RCM_I2C_CLK_STATUS 0x53208464 0x00000308 0x00000001
    MSS_RCM_LIN1_UART1_CLK_SRC_SEL 0x53208178 0x00000777 0x00000000
    MSS_RCM_LIN1_UART1_CLK_STATUS 0x53208478 0x00000080 0x00000001
    MSS_RCM_LIN2_UART2_CLK_SRC_SEL 0x5320817C 0x00000777 0x00000000
    MSS_RCM_LIN2_UART2_CLK_STATUS 0x5320847C 0x00000080 0x00000001
    MSS_RCM_LIN3_UART3_CLK_SRC_SEL 0x53208180 0x00000777 0x00000000
    MSS_RCM_LIN3_UART3_CLK_STATUS 0x53208480 0x00000080 0x00000001
    MSS_RCM_LIN4_UART4_CLK_SRC_SEL 0x53208184 0x00000777 0x00000000
    MSS_RCM_LIN4_UART4_CLK_STATUS 0x53208484 0x00000080 0x00000001
    MSS_RCM_LIN5_UART5_CLK_SRC_SEL 0x53208188 0x00000777 0x00000000
    MSS_RCM_LIN5_UART5_CLK_STATUS 0x53208488 0x00000080 0x00000001
    MSS_RCM_MCAN0_CLK_DIV_VAL 0x53208200 0x00000444 0x00000000
    MSS_RCM_MCAN0_CLK_SRC_SEL 0x53208100 0x00000444 0x00000000
    MSS_RCM_MCAN0_CLK_STATUS 0x53208400 0x00000410 0x00000001
    MSS_RCM_MCAN1_CLK_DIV_VAL 0x53208204 0x00000444 0x00000000
    MSS_RCM_MCAN1_CLK_SRC_SEL 0x53208104 0x00000444 0x00000000
    MSS_RCM_MCAN1_CLK_STATUS 0x53208404 0x00000410 0x00000001
    MSS_RCM_MCAN2_CLK_DIV_VAL 0x53208208 0x00000444 0x00000000
    MSS_RCM_MCAN2_CLK_SRC_SEL 0x53208108 0x00000444 0x00000000
    MSS_RCM_MCAN2_CLK_STATUS 0x53208408 0x00000410 0x00000001
    MSS_RCM_MCAN3_CLK_DIV_VAL 0x5320820C 0x00000444 0x00000000
    MSS_RCM_MCAN3_CLK_SRC_SEL 0x5320810C 0x00000444 0x00000000
    MSS_RCM_MCAN3_CLK_STATUS 0x5320840C 0x00000410 0x00000001
    MSS_RCM_MCSPI0_CLK_DIV_VAL 0x5320823C 0x00000333 0x00000000
    MSS_RCM_MCSPI0_CLK_SRC_SEL 0x5320813C 0x00000333 0x00000000
    MSS_RCM_MCSPI0_CLK_STATUS 0x5320843C 0x00000308 0x00000001
    MSS_RCM_MCSPI1_CLK_DIV_VAL 0x53208240 0x00000333 0x00000000
    MSS_RCM_MCSPI1_CLK_SRC_SEL 0x53208140 0x00000333 0x00000000
    MSS_RCM_MCSPI1_CLK_STATUS 0x53208440 0x00000308 0x00000001
    MSS_RCM_MCSPI2_CLK_DIV_VAL 0x53208244 0x00000333 0x00000000
    MSS_RCM_MCSPI2_CLK_SRC_SEL 0x53208144 0x00000333 0x00000000
    MSS_RCM_MCSPI2_CLK_STATUS 0x53208444 0x00000308 0x00000001
    MSS_RCM_MCSPI3_CLK_DIV_VAL 0x53208248 0x00000333 0x00000000
    MSS_RCM_MCSPI3_CLK_SRC_SEL 0x53208148 0x00000333 0x00000000
    MSS_RCM_MCSPI3_CLK_STATUS 0x53208448 0x00000308 0x00000001
    MSS_RCM_MCSPI4_CLK_DIV_VAL 0x5320824C 0x00000333 0x00000000
    MSS_RCM_MCSPI4_CLK_SRC_SEL 0x5320814C 0x00000333 0x00000000
    MSS_RCM_MCSPI4_CLK_STATUS 0x5320844C 0x00000308 0x00000001
    MSS_RCM_MMC0_CLK_DIV_VAL 0x53208250 0x00000333 0x00000000
    MSS_RCM_MMC0_CLK_SRC_SEL 0x53208150 0x00000333 0x00000000
    MSS_RCM_MMC0_CLK_STATUS 0x53208450 0x00000308 0x00000001
    MSS_RCM_OSPI0_CLK_DIV_VAL 0x53208210 0x00000222 0x00000000
    MSS_RCM_OSPI0_CLK_SRC_SEL 0x53208110 0x00000444 0x00000222
    MSS_RCM_OSPI0_CLK_STATUS 0x53208410 0x00000210 0x00000004
    MSS_RCM_R5SS0_RST_STATUS 0x53208010 0x00000683 0x00000603
    MSS_RCM_R5SS0_RST_WFICHECK 0x53208024 0x00000707 0x07070707
    MSS_RCM_R5SS1_RST_WFICHECK 0x53208044 0x00000707 0x07070707
    MSS_RCM_RTI1_CLK_SRC_SEL 0x53208118 0x00000222 0x00000000
    MSS_RCM_RTI1_CLK_STATUS 0x53208418 0x00000004 0x00000001
    MSS_RCM_RTI2_CLK_SRC_SEL 0x5320811C 0x00000222 0x00000000
    MSS_RCM_RTI2_CLK_STATUS 0x5320841C 0x00000004 0x00000001
    MSS_RCM_RTI3_CLK_SRC_SEL 0x53208120 0x00000222 0x00000000
    MSS_RCM_RTI3_CLK_STATUS 0x53208420 0x00000004 0x00000001
    MSS_RCM_WDT0_CLK_SRC_SEL 0x53208128 0x00000222 0x00000000
    MSS_RCM_WDT0_CLK_STATUS 0x53208428 0x00000004 0x00000001
    MSS_RCM_WDT1_CLK_SRC_SEL 0x5320812C 0x00000222 0x00000000
    MSS_RCM_WDT1_CLK_STATUS 0x5320842C 0x00000004 0x00000001
    MSS_RCM_WDT2_CLK_SRC_SEL 0x53208130 0x00000222 0x00000000
    MSS_RCM_WDT2_CLK_STATUS 0x53208430 0x00000004 0x00000001
    MSS_RCM_WDT3_CLK_SRC_SEL 0x53208134 0x00000222 0x00000000
    MSS_RCM_WDT3_CLK_STATUS 0x53208434 0x00000004 0x00000001
    TOP_RCM_SOP_MODE_VALUE 0x53200024 0x0000000B 0x0000000C
    TOP_RCM_PLL_CORE_CLKCTRL 0x53200404 0x00095001 0x200B5001
    TOP_RCM_PLL_CORE_STATUS 0x53200424 0xC0001618 0xC0001E10
    TOP_RCM_PLL_CORE_HSDIVIDER_CLKOUT0 0x5320042C 0x00000304 0x00000324
    TOP_RCM_PLL_CORE_HSDIVIDER_CLKOUT1 0x53200430 0x00000303 0x00000323
    TOP_RCM_PLL_CORE_HSDIVIDER_CLKOUT2 0x53200434 0x00000304 0x00000324
    TOP_RCM_PLL_CORE_HSDIVIDER_CLKOUT3 0x53200438 0x00000009 0x00000029
    TOP_RCM_PLL_PER_CLKCTRL 0x53200804 0x00095001 0x200B5001
    TOP_RCM_PLL_PER_STATUS 0x53200824 0xC0001618 0xC0001E18
    TOP_RCM_TRCCLKOUT_CLK_SRC_SEL 0x53200C20 0x00000222 0x00000000
    TOP_RCM_TRCCLKOUT_DIV_VAL 0x53200C24 0x00000111 0x00000000
    TOP_RCM_TRCCLKOUT_CLK_STATUS 0x53200C2C 0x00000104 0x00000001
    TOP_RCM_LOCK0_KICK0 0x53201008 0x01234567 0x00000000
    TOP_RCM_LOCK0_KICK1 0x5320100C 0x0FEDCBA8 0x00000000
  • Hi Frank,

    Looking at the dumps, the clocks related to ethernet seems to be same since it is not involved in the differences.

    The difference in TOP RCM also seems to be harmless. Let me check if the other clocks could influence ethernet functioning in any manner.

    I am thinking of making the registers identical by modifying them in the application and then running the ethernet related routines. Let me get back to you on this.

    Thanks & Regards,

    Aswin

  • Hi Frank,

    We got a similar issue from a different customer. For them also, the eth communication was working in dev boot but not in OSPI boot mode. The customer was using the SBL from SDKv26.00.00.06 SDK.

    But one point which was confirmed was that on SBL from SDKV26.00.00.01 SDK, this issue was not there. The Eth communication was working in OSPI boot mode.

    So this prompted me to check the diff between these two versions of the SDK and this was the only difference in sbl_ospi_multicoreelf example.

    Would it be possible for you to incorporate this change, rebuild the SBL and use the same?

    I am also attaching the main.c file of SDKV26.00.00.01.

    /*
     *  Copyright (C) 2018-2025 Texas Instruments Incorporated
     *
     *  Redistribution and use in source and binary forms, with or without
     *  modification, are permitted provided that the following conditions
     *  are met:
     *
     *    Redistributions of source code must retain the above copyright
     *    notice, this list of conditions and the following disclaimer.
     *
     *    Redistributions in binary form must reproduce the above copyright
     *    notice, this list of conditions and the following disclaimer in the
     *    documentation and/or other materials provided with the
     *    distribution.
     *
     *    Neither the name of Texas Instruments Incorporated nor the names of
     *    its contributors may be used to endorse or promote products derived
     *    from this software without specific prior written permission.
     *
     *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
     *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
     *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
     *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
     *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     */
    
    #include <stdlib.h>
    #include "ti_drivers_config.h"
    #include "ti_drivers_open_close.h"
    #include "ti_board_open_close.h"
    #include "ti_clocktree_pll_config.h"
    #include <drivers/bootloader.h>
    #include <security/security_common/drivers/hsmclient/hsmclient.h>
    #include <security/security_common/drivers/hsmclient/soc/am263px/hsmRtImg.h> /* hsmRt bin   header file */
    #include <drivers/ospi.h>
    #include <drivers/fss.h>
    #include <drivers/bootloader/bootloader_elf.h>
    
    
    
    const uint8_t gHsmRtFw[HSMRT_IMG_SIZE_IN_BYTES] __attribute__((section(".rodata.hsmrt"))) = HSMRT_IMG;
    
    extern CSL_top_ctrlRegs * ptrTopCtrlRegs;
    
    extern HsmClient_t gHSMClient;
    
    /**
     * @brief Reset that flash to start from known default state.
     * 
     * @param oHandle OSPI handle
     */
    void flashFixUpOspiBoot(OSPI_Handle oHandle);
    
    /**
     * @brief Does the actual reset of the flash on board
     *
     */
    void board_flash_reset(OSPI_Handle oHandle);
    
    /**
     * @brief Get the boot media frequency
     *
     * @return int Boot media frequency in Hz
     */
    int get_boot_media_freq(void);
    
    /* call this API to stop the booting process and spin, do that you can connect
     * debugger, load symbols and then make the 'loop' variable as 0 to continue execution
     * with debugger connected.
     */
    void loop_forever(void)
    {
        volatile uint32_t loop = 1;
        while (loop)
            ;
    }
    
    /*  this API is a weak function definition for keyring_init function
        which is defined in generated files if keyring module is enabled
        in syscfg
    */
    __attribute__((weak)) int32_t Keyring_init(HsmClient_t *gHSMClient)
    {
        return SystemP_SUCCESS;
    }
    
    int main(void)
    {
        int32_t status;
        Bootloader_profileReset();
        Bootloader_socConfigurePll();
        Bootloader_socSetAutoClock();
    
        System_init();
        Bootloader_profileAddProfilePoint("System_init");
        Drivers_open();
        Bootloader_profileAddProfilePoint("Drivers_open");
        
        Bootloader_socLoadHsmRtFw(&gHSMClient, gHsmRtFw, HSMRT_IMG_SIZE_IN_BYTES);
        Bootloader_socInitL2MailBoxMemory();
        Bootloader_profileAddProfilePoint("LoadHsmRtFw");
    
        status = Keyring_init(&gHSMClient);
        DebugP_assert(status == SystemP_SUCCESS);
    
        /* ROM doesn't reset the OSPI flash. This can make the flash initialization
        troublesome because sequences are very different in Octal DDR mode. So for a
        moment switch OSPI controller to 8D mode and do a flash reset. */
        flashFixUpOspiBoot(gOspiHandle[CONFIG_OSPI0]);
        status = Board_driversOpen();
        DebugP_assert(status == SystemP_SUCCESS); 
        Bootloader_profileAddProfilePoint("Board_driversOpen");
    
        DebugP_log("\r\nStarting OSPI Bootloader ... \r\n");
    
        if (SystemP_SUCCESS == status)
        {
            Bootloader_BootImageInfo bootImageInfo;
            Bootloader_Params bootParams;
            Bootloader_Handle bootHandle;
    
            Bootloader_Params_init(&bootParams);
            Bootloader_BootImageInfo_init(&bootImageInfo);
    
            bootHandle = Bootloader_open(CONFIG_BOOTLOADER0, &bootParams);
    
            if (bootHandle != NULL)
            {
        
                OSPI_Handle ospiHandle = OSPI_getHandle(CONFIG_OSPI0);
                status = Bootloader_parseAndLoadMultiCoreELF(bootHandle, &bootImageInfo);
                OSPI_enableDacMode(ospiHandle);
                if(SystemP_SUCCESS == status)
                {
                    Bootloader_OtfaConfig otfaConfig;
                    int32_t noteSectionExists = Bootloader_getOTFAConfigFromNoteSegment(bootHandle, ELF_NOTE_SEGMENT_MAX_SIZE, &otfaConfig);
    
                    if(SystemP_SUCCESS == noteSectionExists)
                    {
                        /* OTFA configuration is in NOTE section. */
                        if(TRUE == otfaConfig.isOTFAECCMEnabled)
                        {
                            int32_t otfaConfigStatus;
                            OTFA_Config_t otfaConfigInfo;
                            uint8_t doEnableECC = FALSE;
                            uint32_t dataBaseAddress = OSPI_getFlashDataBaseAddr(ospiHandle);
    
                            otfaConfigInfo.masterEnable = otfaConfig.isOTFAECCMEnabled;
                            otfaConfigInfo.macSize = otfaConfig.macSize;
                            otfaConfigInfo.keySize = otfaConfig.aesKeySize;
                            otfaConfigInfo.numRegions = otfaConfig.regionLen;
    
                            FSS_disableECC();
    
                            for(uint8_t i = 0; i < otfaConfig.regionLen; i++)
                            {
                                /* security */
                                otfaConfigInfo.OTFA_Reg[i].regionSize = otfaConfig.region[i].size;
                                otfaConfigInfo.OTFA_Reg[i].regionStAddr = otfaConfig.region[i].startAddress;
                                otfaConfigInfo.OTFA_Reg[i].reservedArea = 0x0;
                                switch(otfaConfig.region[i].cryptoMode)
                                {
                                    case CRYPTO_MODE_CCM:
                                        otfaConfigInfo.OTFA_Reg[i].authMode = MAC_MODE_CBC_MAC;
                                        otfaConfigInfo.OTFA_Reg[i].encMode  = ENC_MODE_AES_CTR;
                                        break;
    
                                    case CRYPTO_MODE_GCM:
                                        otfaConfigInfo.OTFA_Reg[i].authMode = MAC_MODE_GMAC;
                                        otfaConfigInfo.OTFA_Reg[i].encMode  = ENC_MODE_AES_CTR;
                                        break;
    
                                    case CRYPTO_MODE_DIS:
                                    default:
                                        otfaConfigInfo.OTFA_Reg[i].authMode = MAC_MODE_DIS;
                                        otfaConfigInfo.OTFA_Reg[i].encMode  = ENC_MODE_DIS;
                                        break;
                                }
                                otfaConfigInfo.OTFA_Reg[i].encrKeyFetchMode = otfaConfig.region[i].keyFetchMode;
                                otfaConfigInfo.OTFA_Reg[i].authKeyID = otfaConfig.region[i].authKeyID;
                                otfaConfigInfo.OTFA_Reg[i].encrKeyID = otfaConfig.region[i].encKeyID;
                                memset(otfaConfigInfo.OTFA_Reg[i].authAesKey,0x0,otfaConfig.aesKeySize);
                                memset(otfaConfigInfo.OTFA_Reg[i].encrAesKey,0x0,otfaConfig.aesKeySize);
                                memcpy(otfaConfigInfo.OTFA_Reg[i].regionIV,otfaConfig.region[i].iv,16U);
    
                                /* safety */
                                if(otfaConfig.region[i].eccEnable == TRUE)
                                {
                                    FSS_ECCRegionConfig regionConfig;
                                    doEnableECC = TRUE;
                                    regionConfig.size = otfaConfig.region[i].size;
                                    regionConfig.startAddress = otfaConfig.region[i].startAddress - dataBaseAddress;
                                    regionConfig.regionIndex = i;
                                    FSS_configECCMRegion(&regionConfig);
                                }
                            }
                            if(BOOTLOADER_DEVTYPE_HSSE == ptrTopCtrlRegs->EFUSE_DEVICE_TYPE)
                            {
                                otfaConfigStatus = HsmClient_configOTFARegions(&gHSMClient, &otfaConfigInfo, SystemP_WAIT_FOREVER);
                                if(otfaConfigStatus == SystemP_SUCCESS)
                                {
                                    DebugP_log("\r\n configuration of OTFA successfully done.\n");
                                }
                            }
                            if(doEnableECC == TRUE)
                            {
                                FSS_enableECC();
                            }
                        }
                    }
                }
    
                Bootloader_profileAddProfilePoint("CPU load");
                if (status == SystemP_SUCCESS)
                {
                    /* enable Phy and Phy pipeline for XIP execution */
                    if (OSPI_isPhyEnable(gOspiHandle[CONFIG_OSPI0]))
                    {
                        status = OSPI_enablePhy(gOspiHandle[CONFIG_OSPI0]);
                        DebugP_assert(status == SystemP_SUCCESS);
    
                        status = OSPI_enablePhyPipeline(gOspiHandle[CONFIG_OSPI0]);
                        DebugP_assert(status == SystemP_SUCCESS);
    
                        status = OSPI_enableDacMode(gOspiHandle[CONFIG_OSPI0]);
                        DebugP_assert(status == SystemP_SUCCESS);
                    }
                }
    
                /* Run CPUs */
                if (status == SystemP_SUCCESS && (TRUE == Bootloader_isCorePresent(bootHandle, CSL_CORE_ID_R5FSS1_1)))
                {
                    status = Bootloader_runCpu(bootHandle, &bootImageInfo.cpuInfo[CSL_CORE_ID_R5FSS1_1]);
                }
                if (status == SystemP_SUCCESS && (TRUE == Bootloader_isCorePresent(bootHandle, CSL_CORE_ID_R5FSS1_0)))
                {
                    status = Bootloader_runCpu(bootHandle, &bootImageInfo.cpuInfo[CSL_CORE_ID_R5FSS1_0]);
                }
                if (status == SystemP_SUCCESS && (TRUE == Bootloader_isCorePresent(bootHandle, CSL_CORE_ID_R5FSS0_1)))
                {
                    status = Bootloader_runCpu(bootHandle, &bootImageInfo.cpuInfo[CSL_CORE_ID_R5FSS0_1]);
                }
                if (status == SystemP_SUCCESS)
                {
                    if(status == SystemP_SUCCESS)
                    {
                        Bootloader_profileUpdateAppimageSize(Bootloader_getMulticoreImageSize(bootHandle));
                        Bootloader_profileUpdateMediaAndClk(BOOTLOADER_MEDIA_FLASH, get_boot_media_freq());
                        Bootloader_profileAddProfilePoint("SBL End");
                        Bootloader_profilePrintProfileLog();
    
                        DebugP_log("Image loading done, switching to application ...\r\n");
                        UART_flushTxFifo(gUartHandle[CONFIG_UART0]);
                    }
                    status = Bootloader_runSelfCpu(bootHandle, &bootImageInfo);
                }
    
                /* it should not return here, if it does, then there was some error */
                Bootloader_close(bootHandle);
            }
        }
        if (status != SystemP_SUCCESS)
        {
            DebugP_log("SBL failed!!\r\n");
        }
        Drivers_close();
        System_deinit();
    
        return 0;
    }
    
    void flashFixUpOspiBoot(OSPI_Handle oHandle)
    {
        board_flash_reset(oHandle);
        OSPI_enableSDR(oHandle);
        OSPI_clearDualOpCodeMode(oHandle);
        OSPI_setProtocol(oHandle, OSPI_NOR_PROTOCOL(1,1,1,0));
    }
    
    int get_boot_media_freq()
    {
        OSPI_Handle ospiHandle = OSPI_getHandle(CONFIG_OSPI0);
        int bootMediaFreq = OSPI_getInputClk(ospiHandle);
        uint32_t baudDiv = 0;
        OSPI_getBaudRateDivFromObj(ospiHandle, &baudDiv);
    
        if(!OSPI_getPhyEnableSuccess(ospiHandle))
        {
            bootMediaFreq = bootMediaFreq / baudDiv;
        }
    
        return bootMediaFreq;
    }
    

    Thanks & Regards,

    Aswin

  • the recent changes in the main.c of the SBL code examples (i.e. the added  if(gMcuLbistTestStatus ...)  do not matter, I had already added them to my code.

    But your info prompted me to try building my SBL with 26.0.0.01 and 11.1.0.19, and they both work. So, something in the SDK code changed with 26.0.0.06.

    I'll build the SBL with 26.0.0.1 for now. Thank you for your help!

  • Hi  ,

    Does your previous MCAN issue also get resolved when using the SBL from 26.00.00.01 and 11.01.00.19?

    Regards,
    Shaunak

  • I cannot easily test it anymore, it was an older board with SDK 10.2

    I did not have any problems with my current PCB using 2 MCANs with SDK 11 or 26.

  • Thanks for confirming Frank, We will close this ticket and have the out of box SBLs fixed as well.

    Regards,
    Shaunak