Dear colleagues,
I am trying to debug U-Boot as bare Metal Core A5 and facing some issues.After connecting to target DS-5 loads the ELF image and debugger stops in start.S at _start: b reset.I can see all U-Boot functions in funtions tab, but in tab variables I can not expand the e.g. Globals or File Static Variables.I can set a breakpoint in crt0.S at b relocate_code, but after the code has been relocated I cannot set breakpoint after this 'function' e.g. at bl c_runtime_cpu_setup.
Selecting a U-boot function within the function tab loads the corresponding C file and I can set a breakpoint (at one of the command handler).Continuing and entering the command into the hush shell stops sometimes execution, but there is no stack trace or variables visible and the debugger stops every time I click 'continue' debugger stops every time at a 'pseudo' breakpoint (visible in the disassembly tab'
I build U-boot 2013.07 with CFLAGS -g -Og -fno-omit-frame-pointer (this is diabled by default).During build the linker complained with u-boot relocation R_ARM_MOVW_ABS_NC against `a local symbol' So I added the -fPICI checked for symbols with readelf.
- Debug from Entry PointNo OS awareness
My equipment:DS-5 5 .25.0/Eclipse Luna SR2(4.4.2) with ARM Keil uLlinkPro.Timesys factory gcc 4.9.3 (imported the project as makefile project)The board is Phytect PCM052
Upgrading the environment is not an option.BTW: With this equiment I am able to debug bare metal M4 NXP MQX.
What am I doing wrong ? Configuration U-Boot Compiler/ Linker options ? Configuration DS-5 ?
Thanks for your support.