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.

PROCESSOR-SDK-AM335X: U-boot-spl crashes on custom board

Part Number: PROCESSOR-SDK-AM335X

We used BeagleBone black for development and were able to load SPL and uboot via UART. When I try to load that same SPL via UART to our new hardware. it freezes (ie crashes). I connected a Blackhawk JTAG to our board and used Code Composer Studio to step through the code. Seems to crash when setting up I2C clocks? I removed a lot of the init code under */board/ti/am335x/board.c including . It still crashes.

I build uboot using

make -j 2 -C $(UBOOT_SOURCE_DIR)  am335x_evm_config

make -j 2 -C $(UBOOT_SOURCE_DIR)  CROSS_COMPILE=$(CROSS_COMPILE) CONFIG_MKIMAGE_DTC_PATH=$(UBOOT_SOURCE_DIR)/scripts/dtc/dtc

I don't understand why the default SPL build for Beaglebone would crash. Even if the peripherals aren't connected it shouldn't crash.

When I just have it pinmux for UART0 and setup our DDR2 timing, it still crashes. 

Is there something i should be doing differently? Is there someway to debug the reason for crashing? Enabling debug printing from within SPL code?

Thanks for any help!

  • Hello,

    Please share which PSDK Linux you are using. Also, I am wondering if you are observing any crash messages on the terminal and if you could please share the messages.

    Regards,
    Krunal

  • Posting update to help those who encounter similar issue.

    The custom board we are using does not have an RTC and when the code tried to "unlock" the registers it would crash.

    I couldn't find any RTC config selection in am335x_evm_defconfig that would disable this functionality.

    I tried adding the line "# CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC is not set" to no avail.

    I searched through all the files to find where it could be defined and found these lines:

    in "./include/configs/ti_am335x_common.h" it had "#define CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC" on line 18

    in "./scripts/config_whitelist.txt"  it had "CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC" on line 2089

    Once i deleted those lines SPL built without RTC and it no longer crashed. I'm not sure if both need to be deleted