UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Voyager
Voyager
4,188 Views
Registered: ‎05-09-2008

No source available for ...

Hi,

 

I have develop a simple program that use an assebler file ".s", but I can not debug, debugger replay with "No source available for add()".

 

I use EDK 13.2 on Spartan 3A 3400 DSP.

 

This is a example of "add" code written in assembler :

 

"main.c" :

 

#include "stdio.h"

#define	TRUE	        1
#define	FALSE 	0

extern unsigned int add(unsigned int x, unsigned int y);

int main(void)
{
	unsigned int a, b, result;

	a = 10;

	b = 20;

	while(TRUE)
	{
		result = add(a, b);

		xil_printf("a [%d] + b [%d] = result [%d]\r\n", a, b, result);

		a += result;

		b += result;
	}

	return 0;
}

 

"add.s" :

 

    .text
    .globl	add
    .ent	add
    .align  2

add:

    ADD 	r3, r5, r6

    NOP
    NOP
    NOP

    RTSD    r15, 8
    NOP

    .end	add

 

I add a breakpoit on "add" in C code (all are ok) :

 

main

 

I already place a breakpoint on assembler file "add.s" (the breakpoint seem valid) :

 

add

 

Now I start the debugger an go to "add.s" code, but previous breakpoint make a warning : "unresolved breakpoint"

 

add breakpoint

 

If I press "Resume F8", the program start but breakpoint on "add.s" never occour. I then placed the preakpoint with XMD using this command "bps 0x1b0 sw" (0x1b0, code is in BRAM). I press "Resume F8" and now breakpoint occour but no source code "add.s" is visible :

 

add no source

 

I press "View Disassembly" and this appear :

 

add debug F5

 

But if I use "Step into F5" the assembler code is not execute and I return to C code. The routine is execute completely without step on assembler code.

 

Does anyone have a solution ? In EDK 13.2 is not possible to program in assembler ? Why ?

 

Thanks.

 

secureasm

 

0 Kudos
2 Replies
Visitor zenghs
Visitor
3,165 Views
Registered: ‎09-01-2012

Re: No source available for ...

 I have the same question with you ,did you resolve it ?

0 Kudos
Adventurer
Adventurer
3,158 Views
Registered: ‎02-23-2013

Re: No source available for ...

Rename assembler code with "extension in upper case" :

 

add.s ===> becomes ===> add.S

 

debugasm

0 Kudos