Good morning,
I am testing a simple asm program. There are no errors nor warnings, but during debug, i can not see the position line on my source file, while in disassembly, i have. It seem that source file it is not linked with the project, or that the debugger could not load the symbols.
Any idea?
Thank you,
Alessandro Fulignani
Did you build the source files with debugging symbols?
this is my simple prova.s
PRESERVE8
THUMB
AREA RESET,DATA,READONLY
EXPORT __Vectors
__Vectors DCD 0x20002000 DCD Reset_Handler
ALIGN
AREA MYCODE,CODE,READONLY
ENTRY
EXPORT Reset_Handler
Reset_Handler
MOV32 R1,#0x001
NOP
ADD R1,R2
B Reset_Handler
END
But what I talked about wasn't what your source code looked like. I wondered if you did build your project with debug information enabled?
Look for example in the project options dialog - a page "Output" has a flag "Debug Information".
Yes, It has.
Create Executable, Debug Information and Browse information are "ON"
"Run to main()" unchecked?
Does the .MAP show your object? If not what does it show? What other files are in your project? Which version of uV?
Found the solution, with keil help!
In the new keil version V5.10.0.2 there must be a PROC with ENDP before the assembly function. I don't know why, but now it is ok