Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Problems with Jtag

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Problems with Jtag
Moderator:
RSKV

Post Reply
Follow this topic



Problems with Jtag

muffel posted on 20 Jan 2012 4:20 AM PST
Member
3 Forum Posts

 

Hi,

 

I have the FX3 DVK Device Board and I has install the FX3Sdkv1. So long everything is fine, I be able to compile the example projects and download it to the board with the "Control Center". But now I want to use Breakpoints and so on and thats why I bought a yellow j-link Adatpter and follow the instructions under " 11.FX3 Development Tools". But when I want to debug, the debugger never reach a Brekpoint. The ProgrammCounter will always hang at memory 0xf0000048. Has anybody a idea? Maybe i only have wrong configuration? 

 

Regards,

Muffel




Re: Problems with Jtag

rdaley posted on 20 Jan 2012 03:03 PM PST
Top Contributor
39 Forum Posts

Yellow? Is that a Segger JTAG debugger?  Mine is black.



Re: Problems with Jtag

Chris R. posted on 21 Jan 2012 03:37 AM PST
Top Contributor
135 Forum Posts

The yellow J-Link works very well. Did you set up the GDB commands correctly in eclipse? Or did you try to attach to a running FX3? There are deifferent setups. Did you allow the J-Link software to act as server and not blocked by the firewall?



Re: Problems with Jtag

muffel posted on 23 Jan 2012 12:40 AM PST
Member
3 Forum Posts

Hi and thanks for your answers.

I set the GDB up how it is described in the FX3 Programmers Manual. Set the GDB debugger to arm-none-eabi-gdb.exe and add the following to the command section:

set prompt (arm-gdb)

# This connects to a target via netsiliconLibRemote

# listening for commands on this PC's tcp port 2331

target remote localhost:2331

monitor speed 1000

monitor endian little

set endian little

monitor reset

# Set the processor to SVC mode

monitor reg cpsr =0xd3

# Disable all interrupts

monitor memU32 0xFFFFF014 =0xFFFFFFFF

# Enable the TCMs

monitor memU32 0x40000000 =0xE3A00015

monitor memU32 0x40000004 =0xEE090F31

monitor memU32 0x40000008 =0xE240024F

monitor memU32 0x4000000C =0xEE090F11

# Change the FX3 SYSCLK setting based on

# input clock frequency. Update with

 

# correct value from list below.

# Clock input is 19.2 MHz: Value = 0x00080015

# Clock input is 26.0 MHz: Value = 0x00080010

# Clock input is 38.4 MHz: Value = 0x00080115

# Clock input is 52.0 MHz: Value = 0x00080110

monitor memU32 0xE0052000 = 0x00080015

# Add a delay to let the clock stabilize.

monitor sleep 1000

set $pc =0x40000000

si

si

si

In the debug-console is a warning, maybe this is the problem:

Regards Muffel

&"info threads\n"
&"warning: RMT ERROR : failed to get remote thread list.\n"
~"* 1 Thread <main> 0xf0000048 in ?? ()\n"

si



Re: Problems with Jtag

muffel posted on 23 Jan 2012 04:11 AM PST
Member
3 Forum Posts

Hi,

I have the problem solved. Simply deinstalled the SEGGER J-Link Arm V4.41d and install the SEGGER J-Link Arm V4.36K and everything works fine.



Re: Problems with Jtag

AnnaH posted on 26 Jun 2012 07:36 AM PST
Member
3 Forum Posts

Hi muffel,

do you have several threads and can you debug them on task level? I have two threds but in the debug window it only shows me one thread.

Thanks

Anna






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.