Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Debugging assembly program on NEON: Page 1 of 2 (19 Items)
   
Debugging assembly program on NEON  
I have downloaded the BSP for ARM cortex A8, built it and flashed on the Mistral EVM board.

I have written a program using NEON intrinsic and assembly in C, now I want to debug this program on the target board 
using momentics installed on the windows machine or some other method, please let me know what i procedure for the same.
Associations:
post63528:
              Re: RE: Debugging assembly program on NEON - However the same program runs successfully with out any issue(Though the fianl result is not matching with reference code) - Girisha SG
            
RE: Debugging assembly program on NEON  
There is no difference to debug a program written in C or assembly. You compile it with debug option turned on and debug
 it using QConn (IP) launch configuration, or Serial launch if you don't have QConn running over TCP/IP.

If you want to debug IPL or Startup, you can use a JTag device and the "GDB hardware debug" option in IDE.

All can be found in this document http://www.qnx.com/developers/docs/6.4.1/ide_en/user_guide/debug.html

-----Original Message-----
From: Girisha SG [mailto:community-noreply@qnx.com]
Sent: Thu 19/08/2010 7:42 AM
To: general-ide
Subject: Debugging assembly program on NEON
 
I have downloaded the BSP for ARM cortex A8, built it and flashed on the Mistral EVM board.

I have written a program using NEON intrinsic and assembly in C, now I want to debug this program on the target board 
using momentics installed on the windows machine or some other method, please let me know what i procedure for the same.




Attachment: Text winmail.dat 2.87 KB
Re: RE: Debugging assembly program on NEON  
I had tried this using momentics 6.5.0 IDE, it was not of much help as it use to crash abruptly/give error sayin illigal
 instruction etc :( after pressing F5 couple of times. 

Also it is not shawing d/s register contents properly
Associations:
post63506:
              Debugging assembly program on NEON - However the same program runs successfully with out any issue(Though the fianl result is not matching with reference code) - Girisha SG
            
RE: RE: Debugging assembly program on NEON  
You must be careful about pressing F5 to step into the code. You don't
want to step into any system binaries (e.g. libc) otherwise you will get
error from gdb that it can't intercept the memory not owned by your
program.

What do you mean not showing register contents properly? Wrong
registers? Program error?

-----Original Message-----
From: Girisha SG [mailto:community-noreply@qnx.com] 
Sent: Thursday, August 19, 2010 9:17 AM
To: general-ide
Subject: Re: RE: Debugging assembly program on NEON

I had tried this using momentics 6.5.0 IDE, it was not of much help as
it use to crash abruptly/give error sayin illigal instruction etc :(
after pressing F5 couple of times. 

Also it is not shawing d/s register contents properly



_______________________________________________

General
http://community.qnx.com/sf/go/post63528
Re: RE: RE: Debugging assembly program on NEON  
Register contents are wrong and also it is not showing different lanes present in each register(i.e. Each NEON register 
is 64 bit and it can be logically devided into multiple lanes)
Re: Debugging assembly program on NEON  
If it says illegal instruction - it is illegal instruction. Which can be even true if you use assembly.
You cannot really blame IDE for that. Make sure you have same binary on host and target when debugging, and same shared 
libraries (libc versions specifically).

On 19/08/10 09:17 AM, Girisha SG wrote:
> I had tried this using momentics 6.5.0 IDE, it was not of much help as it use to crash abruptly/give error sayin 
illigal instruction etc :( after pressing F5 couple of times. 
> 
> Also it is not shawing d/s register contents properly
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post63528
> 
Re: Debugging assembly program on NEON  
However the same program runs successfully with out any issue(Though the fianl result is not matching with reference 
code)
 
 

Re: Debugging assembly program on NEON  
Than check that binary and libraries are matching, I bet they don't. Do you see any warning about it in debugger console
 in IDE?

On 19/08/10 09:47 AM, Girisha SG wrote:
> However the same program runs successfully with out any issue(Though the fianl result is not matching with reference 
code)
>  
>  
> 
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post63539
> 
Re: Debugging assembly program on NEON  
I am using BSP supplied by QNX and that is version 6.4.1 and host machine is installed with momentics 6.5.0
Re: Debugging assembly program on NEON  
I require 6.5.0 for my development as a must requirement.