Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- I applied the following command line, basically I've tried different loading address and entry point combinations. mkimage -A arm -O u-boot -T standalone -C none -a 0x00100000 -e 0x00100000 -n "u-boot" -d hps_fpga_test.bin blink.img --- Quote End --- Mine is: arm-altera-eabi-objcopy -O binary app.axf app_binary.bin mkimage -A arm -T standalone -C none -a 0x100000 -e 0 -n "baremetal image" -d app_binary.bin app.img But i'am using MPL preloader, worked fine with it. --- Quote Start --- Because in my case I have to use sd card instead debugger, with debugger it works just fine. --- Quote End --- You can use debugger with sd card or whatever else you have got there. Just use the script file like this, for example, debug-unhosted.ds
# Reset and stop the system.
reset system
stop
wait 30s
# Disable semihosting.
set semihosting enabled false
#
# Load the preloader into memory.
loadfile "$sdir/../Altera-SoCFPGA-HardwareLib-MPL_de10nano/mpl_C5_s.axf" 0x0
# Delete any existing breakpoints.
delete
# Set a breakpoint just before application code is called
tbreak mpl.c:419
# Set the PC to the entry point and go.
run
# Wait for the breakpoint.
wait
Then step into the code to see what is happening next.