Good afternoon,
I'm trying to debug the SPL and u-boot files on my custom AM3351 board using an XDS200 debugger and CCSv6 (SDK v3.00.00.04). I've followed the tutorial located below, and I've been able to load the SPL code and symbols and step through the code:
http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_uboot_linux_debug_with_ccsv5_sdk7
However, on a first attempt the program hangs on line 408 in the s_init() function in board.c, while trying to initialize the RTC32K. I'm not using the RTC input and have RTC_XTALIN connected to ground. Is this why my program hangs on this line?
#if defined(CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC)
/* Enable RTC32K clock */
rtc32k_enable();
#endif
What is the best practice to change settings for my board configuration? Are there specific headers or config files which I should modify in order to port the SPL and u-boot code to my custom AM3351 board? Is there another option while building u-boot to specify an AM3351 processor? It seems that the am335x_evm_config is only designed for the EVM, EVM-SK, and BeagleBone.
http://processors.wiki.ti.com/index.php/Linux_Core_U-Boot_User%27s_Guide#General_Information
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x_evm_config
| Board | Config target | config file (under include/configs/) |
|---|---|---|
| AM335x EVM, AM335x EVM-SK, Beaglebone White/Black | am335x_evm_config | am335x_evm.h |
| AM43xx ePOS EVM / GP EVM / EVM-SK | am43xx_evm_config | am43xx_evm.h |
| am57xx GP EVM | am57xx_evm_config | am57x_evm.h |
| DRA7xx EVM (J6, J6Eco) | dra7xx_evm_config | dra7xx_evm.h |
Second, I'm able to advance the SPL program by commenting line 408 in board.c (and therefore not enabling the RTC32K), but next the program hangs on line 116 in the function setup_dplls() in the file clock.c
do_setup_dpll(&dpll_ddr_regs, params);
I haven't done anything yet to configure my DDR memory, as I didn't believe this was necessary to complete the SPL code. Please let me know if this could be related to my board configuration or DDR memory settings.
I'm new to the Sitara processor family and your help is very much appreciated!
Best regards,
Chris