Hello,
I have a similar problem in debugging uboot in arria10 soc. When I connect my Uboot debug to the SoC Target, I got this:
Error(CMD16-TAD59-NAL18):
Error(CMD16-TAD59-NAL18):
! Failed to load "u-boot"
! Download of 149,528 bytes to address S:0xFFE00000 failed while writing block of 4,096 bytes to address S:0xFFE00000
!Bus error on memory operation.
The .ds file I use is generated automatically by BSP Editor:
############################################################
#
# Copyright Altera 2015
# All Rights Reserved
# File: uboot.ds
#
############################################################
#
# stop processor if running
# and then reset processor
#
stop
wait 5s
reset system
stop
wait 5s
set trust-ro-sections-for-opcodes off
# Load uboot elf
loadfile $sdir/uboot-socfpga/u-boot 0x0
start
wait
restore $sdir/devicetree.dtb binary &_end
#
# set a breakpoint on board_init function
#
tbreak board_init
# tell target to continue executing
continue
# wait for breakpoint
wait 60s
Best wishes.