You are here

Problems of debugging firmware | Cypress Semiconductor

Problems of debugging firmware

Summary: 10 Replies, Latest post by Gayathri on 21 Oct 2013 04:48 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
user_277974736's picture
User
6 posts

Dear, all
I make the firmware import the eclipes,when debug it .There is an error .

Error stopping at main.

Reason:Target request failed :No symbol table is loaded. Use the "file" command.

who can help me 

THANGKS!

NIKL's picture
Cypress Employee
283 posts

 Which JTAG adapter are you using?

user_277974736's picture
User
6 posts

The version of J-Link ARM V4.68 and the hardware is Jlink v8 emulators, jtag arm emulator

NIKL's picture
Cypress Employee
283 posts

 Are you following all the steps mentioned in 12.3 chapter of programmer's manual?

Thanks

Nikhil

user_277974736's picture
User
6 posts

yes,step by step,

but when I start the GDB server,J-Link V4.68 Warning:

SEGGER J-Link software may be used with original

SEGGER  products and authorized OEMproducts

The use of licensed software to operate SEGGER  product clones is prohibited and illegal

then a little later ,the GDB server automatically closed.

Is there problems with my GDB server .

thangks

 

NIKL's picture
Cypress Employee
283 posts

 Did you punch in the correct serial number (behind your JTAG adapter) while downloading the GDB server application from Segger website?

SKAN's picture
User
16 posts

I am having the same issue. Debbugging used to work ealier with J-Link cable. Recently I updated the development kit. Firmware stopped working. So I tried to debug through J-Link cable but getting the same error. Any clue?

Thanks,

Sandeep

Ken4242's picture
User
54 posts

 I am also having the same issue after upgrading to 1.3.  Everything was working before on 1.2 and now I am dead in the water on this and have been working on for two days.

 

Ken4242's picture
User
54 posts

 In looking at the error messages more, I am getting the following error messages in the console when I run the debugger.  For some reason the Debugger "load" command is not getting a path name 

 

 

*stopped,frame={addr="0x40000010",func="??",args=[]},thread-id="1",stopped-threads="all"
(gdb)
149-environment-directory "C:/Program Files (x86)/Cypress/EZ-USB FX3 SDK/1.3/firmware/dma_examples/AutoMaster" "C:/Program Files (x86)/Cypress/EZ-USB FX3 SDK/1.3/firmware/dma_examples/AutoMaster/Debug"
149^done,source-path="C:/Program Files (x86)/Cypress/EZ-USB FX3 SDK/1.3/firmware/dma_examples/AutoMaster;C:/Program Files (x86)/Cypress/EZ-USB FX3 SDK/1.3/firmware/dma_examples/AutoMaster/Debug;$cdir;$cwd"
(gdb)
150 info threads
&"info threads\n"
&"warning: RMT ERROR : failed to get remote thread list.\n"
~"* 1 Thread <main> 0x40000010 in ?? ()\n"
150^done
(gdb)
151-data-list-register-names
151^done,register-names=["r0","r1","r2","r3","r4","r5","r6","r7","r8","r9","r10","r11","r12","sp","lr","pc","f0","f1","f2","f3","f4","f5","f6","f7","fps","cpsr","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""]
(gdb)
152-break-insert -t main
152^error,msg="No symbol table is loaded. Use the \"file\" command."
(gdb)
153-stack-info-depth
153^done,depth="1"
(gdb)
154-stack-list-frames 0 1
154^done,stack=[frame={level="0",addr="0x40000010",func="??"}]
(gdb)
155-stack-list-arguments 0 0 0
155^done,stack-args=[frame={level="0",args=[]}]
(gdb)
156-stack-list-locals 0
156^done,locals=[]
(gdb)
157-stack-list-frames
157^done,stack=[frame={level="0",addr="0x40000010",func="??"}]
(gdb)
158 load
&"load\n"
&"No executable file specified.\n"
&"Use the \"file\" or \"exec-file\" command.\n"
load
No executable file specified.
Use the "file" or "exec-file" command.
158^error,msg="No executable file specified.\nUse the \"file\" or \"exec-file\" command."
(gdb)  

Ken4242's picture
User
54 posts

I believe I found the issue. 

 

Seems that Eclipse and the debugger tools assumes that the data/workspace files are stored at “C:\Users\username\AppData\Local\VirtualStore\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\firmware\dma_examples” 

 

For some reason on my machine, the workspace was placed at “C:\Users\username\Cypress\Workspace”. 

 

So I had to go into Run , Edit Configuration and point to the debug elf file in the “C/C++ Application” Box.  Once I did this, it worked.

 

gaya's picture
Cypress Employee
578 posts

 Great!!! 

 

Regards,

Gayathri

Log in to post new comments.