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.

AM2754-Q1: Need help with SD boot mode setup on AUDIO-AM275-EVM

Part Number: AM2754-Q1

Hello Team,

I tried to switch to SD boot mode by setting the SW1 and SW2 as shown in AM275-AWE-SDK_11.01.16.06/mcu_plus_sdk/am275x/docs/api_guide_am275x/EVM_SETUP_PAGE.html (also the attachment here)

EVM.jpg

and copying the files app_dsp0_0, app_r50_0 and tiboot3.bin to the SD card. However, I see the below error on JTAG UART console:

[BOOTLOADER_PROFILE] Boot Media       : SD Card
[BOOTLOADER_PROFILE] Boot Image Size  : 2429 KB
[BOOTLOADER_PROFILE] Cores present    :
[BOOTLOADER PROFILE] TIFS init                        :       1172us
[BOOTLOADER PROFILE] System_init                      :       1800us
[BOOTLOADER PROFILE] Board_init                       :          3us
[BOOTLOADER PROFILE] FreeRtosTask Create              :        256us
[BOOTLOADER PROFILE] Drivers_open                     :       5775us
[BOOTLOADER PROFILE] Board_driversOpen                :        158us
[BOOTLOADER PROFILE] sciServer_init                   :      15101us
[BOOTLOADER PROFILE] SBL Drivers_open                 :       5990us
[BOOTLOADER PROFILE] Sciclient Get Version            :      10036us
[BOOTLOADER PROFILE] File read from SD card           :     748651us
[BOOTLOADER PROFILE] SBL End                          :        276us
[BOOTLOADER_PROFILE] SBL Total Time Taken             :     789224us

Image loading done, switch[BOOTLOADER_PROFILE] Boot Media       : SD Card
[BOOTLOADER_PROFILE] Boot Image Size  : 2429 KB
[BOOTLOADER_PROFILE] Cores present    :
[BOOTLOADER PROFILE] TIFS init                        :       1371us
[BOOTLOADER PROFILE] System_init                      :       1799us
[BOOTLOADER PROFILE] Board_init                       :          3us
[BOOTLOADER PROFILE] FreeRtosTask Create              :        256us
[BOOTLOADER PROFILE] Drivers_open                     :       5775us
[BOOTLOADER PROFILE] Board_driversOpen                :        158us
[BOOTLOADER PROFILE] sciServer_init                   :      15099us
[BOOTLOADER PROFILE] SBL Drivers_open                 :       5991us
[BOOTLOADER PROFILE] Sciclient Get Version            :      10036us
[BOOTLOADER PROFILE] File read from SD card           :     748683us
[BOOTLOADER PROFILE] SBL End                          :        278us
[BOOTLOADER_PROFILE] SBL Total Time Taken             :     789455us

Image loading done, switching to application ...
mcu/r5f tuning server : Configuring Codec...
[c75ss0-0]     0.000750s : asdk_flash_init done
[c75ss0-0]     0.000071s : asdk_flash_write: , 0ffset = 0x1a00000, nDWordsToWrite = 5
[c75ss0-0]     0.000902s : asdk_flash_write: , 0ffset = 0x1a00040, nDWordsToWrite = 1
[c75ss0-0]     0.000731s : asdk_flash_write: , 0ffset = 0x1a00044, nDWordsToWrite = 1
[c75ss0-0]     0.000560s : asdk_flash_write: , 0ffset = 0x1a00048, nDWordsToWrite = 1
[c75ss0-0]     0.000389s : asdk_flash_write: , 0ffset = 0x1a0004c, nDWordsToWrite = 1
[c75ss0-0]     0.000218s : asdk_flash_write: , 0ffset = 0x1a00050, nDWordsToWrite = 1
[c75ss0-0]     0.000047s : asdk_flash_write: , 0ffset = 0x1a00054, nDWordsToWrite = 1
[c75ss0-0]     0.001931s : Registering for ipc_notify ..
[c75ss0-0]     0.002381s : Sending IpcNotify_sendMsg to core 1
[c75ss0-0]     0.002929s : Waiting for MCU/R5F...
mcu/r5f tuning server : Configuring Codec...Done
Enabling clocks!
start to open driver.
EEPROM 0 MAC addr: Unable to read from eeprom instance number 1
EEPROM 1 MAC addr: Unable to read from eeprom instance number 2
EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:1 From 4 To 1
Mdio_open:318
EnetUdma_openRxCh:2324
EnetHostPortDma_open:120
Cpsw_openInternal:940
Cpsw_closeInternal:1033
Assertion @ Line: 1033 in /nightlybuilds/mcupsdk_internal/jenkins/freertos_sdk_am275x_11_01_00_16/source/networking/enet/core/src/per/V1/cpsw.c: hCpsw->hRxRsvdFlow != NULL
 
Did I miss something or do something wrong here? Can you please help fix this?
  • Hi Sreekanth,

    Can you try to use the tiboot3.bin I have sent in this thread - 
    RE: AM275-AWE-SDK: Unable to boot the AUDIO-AM275-EVM board with AWE SDK v11.01.16.06

    I remember in the older SDK, there was some problem. Can you try once with the tiboot3.bin here - v11.01.16.6.zip

    Or maybe you can give a try with the new awe sdk v11.2

    Regards,
    Ritapravo

  • Hi Ritapravo,

    Thanks for the response and sharing the files. With both the versions you have shared above, I'm seeing a successful boot!

    1. With 0820.tiboot3.bin, I see:

    [BOOTLOADER_PROFILE] Boot Media : SD Card
    [BOOTLOADER_PROFILE] Boot Image Size : 2429 KB
    [BOOTLOADER_PROFILE] Cores present :
    [BOOTLOADER PROFILE] TIFS init : 1135us
    [BOOTLOADER PROFILE] System_init : 1798us
    [BOOTLOADER PROFILE] Board_init : 3us
    [BOOTLOADER PROFILE] FreeRtosTask Create : 255us
    [BOOTLOADER PROFILE] Drivers_open : 5771us
    [BOOTLOADER PROFILE] Board_driversOpen : 158us
    [BOOTLOADER PROFILE] sciServer_init : 15099us
    [BOOTLOADER PROFILE] SBL Drivers_open : 5987us
    [BOOTLOADER PROFILE] Sciclient Get Version : 10041us
    [BOOTLOADER PROFILE] File read from SD card : 748626us
    [BOOTLOADER PROFILE] SBL End : 276us
    [BOOTLOADER_PROFILE] SBL Total Time Taken : 789154us

    Image loading done, switching to application ...
    mcu/r5f tuning server : Configuring Codec...
    [c75ss0-0] 0.000946s : asdk_flash_init done
    [c75ss0-0] 0.000264s : asdk_flash_write: , 0ffset = 0x1a00000, nDWordsToWrite = 5
    [c75ss0-0] 0.000089s : asdk_flash_write: , 0ffset = 0x1a00040, nDWordsToWrite = 1
    [c75ss0-0] 0.000912s : asdk_flash_write: , 0ffset = 0x1a00044, nDWordsToWrite = 1
    [c75ss0-0] 0.000735s : asdk_flash_write: , 0ffset = 0x1a00048, nDWordsToWrite = 1
    [c75ss0-0] 0.000557s : asdk_flash_write: , 0ffset = 0x1a0004c, nDWordsToWrite = 1
    [c75ss0-0] 0.000379s : asdk_flash_write: , 0ffset = 0x1a00050, nDWordsToWrite = 1
    [c75ss0-0] 0.000201s : asdk_flash_write: , 0ffset = 0x1a00054, nDWordsToWrite = 1
    [c75ss0-0] 0.001078s : Registering for ipc_notify ..
    [c75ss0-0] 0.001523s : Sending IpcNotify_sendMsg to core 1
    [c75ss0-0] 0.002068s : Waiting for MCU/R5F...
    mcu/r5f tuning server : Configuring Codec...Done
    Enabling clocks!
    start to open driver.
    EEPROM 0 MAC addr: Unable to read from eeprom instance number 1
    EEPROM 1 MAC addr: Unable to read from eeprom instance number 2
    EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:1 From 4 To 1
    Mdio_open:318
    Open MAC port 1
    Mdio_manual_ioctl_handler_ENET_MDIO_IOCTL_C22_READ:495
    EnetMod_ioctl:1581
    EnetPhyMdioDflt_readC22:296
    EnetPhy_readReg:646
    Open MAC port 2
    Mdio_manual_ioctl_handler_ENET_MDIO_IOCTL_C22_READ:495
    EnetMod_ioctl:1581
    EnetPhyMdioDflt_readC22:296
    EnetPhy_readReg:646
    Starting lwIP, local interface IP is dhcp-enabled
    [LWIPIF_LWIP] NETIF INIT SUCCESS
    Host MAC address-0 : 64:70:60:7a:2a:6f
    [0]Enet IF UP Event. Local interface IP:0.0.0.0
    [LWIPIF_LWIP] Enet has been started successfully
    mcu/r5f tuning server : starting tcp server ...
    mcu/r5f tuning server : Configuring IPC...
    mcu/r5f tuning server : registering IPC notify clients...
    mcu/r5f tuning server : sending mcu/r5f ipc_notify to code 5
    mcu/r5f tuning server : sending mcu/r5f ipc_notify to code 6
    mcu/r5f tuning server : Configuring IPC...
    mcu/r5f tuning server : waiting for remote core
    Remote Core : 5 ready
    [c75ss0-0] 0.322455s : Primary core tuning server ready...
    [c75ss0-0] 0.322984s : Version: 11.01.16.06

    2. With the tiboot3.bin in v11.01.16.6.zip, I see:

    [BOOTLOADER_PROFILE] Boot Media : SD Card
    [BOOTLOADER_PROFILE] Boot Image Size : 2429 KB
    [BOOTLOADER_PROFILE] Cores present :
    [BOOTLOADER PROFILE] TIFS init : 1115us
    [BOOTLOADER PROFILE] System_init : 1802us
    [BOOTLOADER PROFILE] Board_init : 3us
    [BOOTLOADER PROFILE] FreeRtosTask Create : 255us
    [BOOTLOADER PROFILE] Drivers_open : 5771us
    [BOOTLOADER PROFILE] Board_driversOpen : 158us
    [BOOTLOADER PROFILE] sciServer_init : 15101us
    [BOOTLOADER PROFILE] SBL Drivers_open : 5987us
    [BOOTLOADER PROFILE] Sciclient Get Version : 10048us
    [BOOTLOADER PROFILE] File read from SD card : 748634us
    [BOOTLOADER PROFILE] SBL End : 278us
    [BOOTLOADER_PROFILE] SBL Total Time Taken : 789157us

    Image loading done, switching to application ...
    mcu/r5f tuning server : Configuring Codec...
    [c75ss0-0] 0.000966s : asdk_flash_init done
    [c75ss0-0] 0.000285s : asdk_flash_write: , 0ffset = 0x1a00000, nDWordsToWrite = 5
    [c75ss0-0] 0.000109s : asdk_flash_write: , 0ffset = 0x1a00040, nDWordsToWrite = 1
    [c75ss0-0] 0.000932s : asdk_flash_write: , 0ffset = 0x1a00044, nDWordsToWrite = 1
    [c75ss0-0] 0.000755s : asdk_flash_write: , 0ffset = 0x1a00048, nDWordsToWrite = 1
    [c75ss0-0] 0.000577s : asdk_flash_write: , 0ffset = 0x1a0004c, nDWordsToWrite = 1
    [c75ss0-0] 0.000399s : asdk_flash_write: , 0ffset = 0x1a00050, nDWordsToWrite = 1
    [c75ss0-0] 0.000222s : asdk_flash_write: , 0ffset = 0x1a00054, nDWordsToWrite = 1
    [c75ss0-0] 0.001099s : Registering for ipc_notify ..
    [c75ss0-0] 0.001543s : Sending IpcNotify_sendMsg to core 1
    [c75ss0-0] 0.002093s : Waiting for MCU/R5F...
    mcu/r5f tuning server : Configuring Codec...Done
    Enabling clocks!
    start to open driver.
    EEPROM 0 MAC addr: Unable to read from eeprom instance number 1
    EEPROM 1 MAC addr: Unable to read from eeprom instance number 2
    EnetAppUtils_reduceCoreMacAllocation: Reduced Mac Address Allocation for CoreId:1 From 4 To 1
    Mdio_open:318
    Open MAC port 1
    Mdio_manual_ioctl_handler_ENET_MDIO_IOCTL_C22_READ:495
    EnetMod_ioctl:1581
    EnetPhyMdioDflt_readC22:296
    EnetPhy_readReg:646
    Open MAC port 2
    Mdio_manual_ioctl_handler_ENET_MDIO_IOCTL_C22_READ:495
    EnetMod_ioctl:1581
    EnetPhyMdioDflt_readC22:296
    EnetPhy_readReg:646
    Starting lwIP, local interface IP is dhcp-enabled
    [LWIPIF_LWIP] NETIF INIT SUCCESS
    Host MAC address-0 : 64:70:60:7a:2a:6f
    [0]Enet IF UP Event. Local interface IP:0.0.0.0
    [LWIPIF_LWIP] Enet has been started successfully
    mcu/r5f tuning server : starting tcp server ...
    mcu/r5f tuning server : Configuring IPC...
    mcu/r5f tuning server : registering IPC notify clients...
    mcu/r5f tuning server : sending mcu/r5f ipc_notify to code 5
    mcu/r5f tuning server : sending mcu/r5f ipc_notify to code 6
    mcu/r5f tuning server : Configuring IPC...
    mcu/r5f tuning server : waiting for remote core
    Remote Core : 5 ready
    [c75ss0-0] 0.322460s : Primary core tuning server ready...
    [c75ss0-0] 0.322988s : Version: 11.01.16.06

    So, I can use either of these? Unfortunately, moving to the latest SDK is not an option for now (though we will do so in the near future). Since we are working with AM275-AWE-SDK_11.01.16.06, which of the tiboot3.bin versions you shared above do you recommend using (unless they are one and the same)?

    Regards,
    Sreekanth

  • Hi Sreekanth, 

    I don't think there is any difference between the tiboot3.bin files. Either one of these should work without any issues. 

    Regards,
    Ritapravo

  • Hi Ritapravo,

    Thanks for the confirmation and support. Will do.

    Regards,
    Sreekanth