Hello everyone,
I did a hello world program under DS-5 for Arm Compiler 5 Toolchain.
#include <stdio.h>
int main()
{
printf("Hello world");
}
Then I launched the program (debug as) and connect it to
VE_Cortex_A9x4->Bare Metal Debug and Trace ->Debug Cortex-A9x4 SMP
I can debug the program (means I can step through the C code) but when opening the disassembly view I see nothing sensible:
main
S:0x000080B8 : CDPLE p14,#0xa,c13,c13,c13,#5
S:0x000080BC : CDPLE p14,#0xa,c13,c13,c13,#5
S:0x000080C0 : CDPLE p14,#0xa,c13,c13,c13,#5
S:0x000080C4 : CDPLE p14,#0xa,c13,c13,c13,#5
S:0x000080C8 : CDPLE p14,#0xa,c13,c13,c13,#5
In the trace view I can see correct assembler code. Why is the disassembly view not working. I tried to change from arm to thumb instructions but with no success. I am using the
ARM DS-5 Ultimate Edition (Evaluation)
Version: 5.20.1
Any ideas?
best
Matthias
Sorry for the question - but did you check the "load symbols" box in your debug configuration?
Hi Matthias,
the binary code for "CDPLE p14,#0xa,c13,c13,c13,#5" is 0xdeaddead". I think this means the serial (or parallel?) communications trouble with the debugger. That is, instruction codes on the memory could not be fetched successfully. Please check your debugger connection.
Best regards,Yasuhiko Koumoto.
Hi Yasuhiko,
thanks for the hint but I am not using a target debugger I am working on an FVP.
Hello,
the problem is not solved but I made the observation that the topic is somehow related to a scatter file. When using a "right" scatter file for my FVP it is working.
(But I still don't understand why the problem is only concerns the disassembly view).