Yagarto/Eclipse (problem while installing Zylin plugin)

I am very new to ARM technologies and trying to follow the tutorial on http://www.yagarto.de/howto/yagarto2/in … l#download

I am using AT91SAM9260-EK and trying to install the Zylin plugin to Eclipse, however I am stucked here…

I said Help > Software Updates and AddSite and I added http://opensource.zylin.com/zylincdt in Eclipse.

It says “Calculating requirements and dependencies” however it is not progressing…For once, (after half an hour) it achieved to finish progressing, however, this time I could’t see Embedded Debug extension in debug tool…

I went through forum and I couldn’t see any title about this problem… I’ll be happy to hear if you have any solution for this. I am a real beginner…

Thanks.

I don’t know how but now it’s fine. I think it was about the directory of eclipse. I was working in other directory than C:\eclipse.

It is the only thing I have changed and now I have the Zylin plugin.

Now another problem is with the JTagkey.

When I try the following code in command prompt:

C:\TEMP\at91sam9260_getting_started_1.0>openocd-ftd2xx -f .\interface\jtagkey.cfg

I got the followin error:

Open On-Chip Debugger 0.2.0-in-development (2009-05-09-21:00) svn:1606M
BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS

Warn : Unable to open FTDI Device tried: 'Amontec JTAGkey' and 'Amontec JTAGkey A'

Error: unable to open ftdi device: 2
Runtime error, file "command.c", line 456:

Does anyone knows what I should do at this point ?

Note: I am sorry for my basic questions. As I’ve told, I’m a new beginner in ARM technologies.

Thanks.

Hello,abra

I’m as new as you in this kind of technology… :smiley:

But, maybe I can help you a little.

What is your JTAG type? It’s Amontec, oocdlink, turtelizer, etc.?

Because, from what I know, every type of JTAG has it’s own configuration.

It’s about the interface, device name, speed, vidpid, etc. in the configuration file. You should checked it before you ‘call’ the jtagkey.cfg in your command prompt.

And from the error have shown, it cann’t open a right device. So maybe the deice name in the configuration file is not correct. You can also see the OpenOCD doc. to know the config. phew… :smiley:

Cheers,

:wink:

Hello red_devils09,

Well, as far as I understood, I shouldn’t use Openocd…cuz my JTAG is JLink…

Let me tell you what I understood. I am using SEGGER JLink GDB Server to check my JLink is connected or not. Then, I am starting Eclipse and I am making the configurations as shown in James Lynch’s tutorials (I am using Yagarto compiler and I installed Zylin CDT plugin)

However when it comes to config part…I don’t know what to do…cuz I don’t know what to write to commands window…It is AT91SAM9260-EK and the configuration should be different…I think…

Am I on the right way ? I don’t have neither solution for this problem nor any feedback…I am so lost…I am doing my internship in a company…and they want me to be able to program that evaluation kit…I programmed microcontrollers before and used eclipse…However this is something different for me…

I need help !?! Any of you have any suggestions ???

It is working !! :smiley: I found some useful stuff on forums and now I can debug my AT91SAM9260-EK board bu using Eclipse + SEGGER JLink GDB Server + YAGARTO Compiler

Since we don’t use OpenOCD in this project, I made the configurations of Eclipse as written in James Lynch’s tutorial: http://www.yagarto.de/howto/yagarto2/in … l#download

but upto Open OCD part…

After building project and installing Zylin CDT plugin, in the debug configuration window of Eclipse, I’ve used the following codes which I found in forums:

In Commands tab, for the ‘Initialize’ commands part:

target remote localhost:2331

and in ‘Run’ commands part:

# Change to default reset behavior
monitor long 0xFFFFFD08 0x401
# Reset peripherals
monitor long 0xFFFFFd00 0x4
# Unremap
monitor long 0xFFFFEF00 0x0
# Zero out registers
monitor reset 6
# Disable and clear AIC interrupt sources (important!)
monitor long 0xFFFFF124 0xFFFFFFFF
monitor long 0xFFFFF128 0xFFFFFFFF

monitor reset
monitor speed 30
monitor speed adaptive
# Disable watchdog
monitor long 0xfffffd44 0x30008000

echo Configuring the SDRAM controller...\n

# Enable EBI chip select for the SDRAM
set *0xFFFFEF1C = 0x2

# SDRAM configuration
set *0xFFFFEA08 = 0x852272D9

set *0xFFFFEA00 = 0x1
set *0x20000000 = 0

set *0xFFFFEA00 = 0x2
set *0x20000000 = 0

set *0xFFFFEA00 = 0x4
set *0x20000000 = 0
set *0xFFFFEA00 = 0x4
set *0x20000000 = 0
set *0xFFFFEA00 = 0x4
set *0x20000000 = 0
set *0xFFFFEA00 = 0x4
set *0x20000000 = 0
set *0xFFFFEA00 = 0x4
set *0x20000000 = 0
set *0xFFFFEA00 = 0x4
set *0x20000000 = 0
set *0xFFFFEA00 = 0x4
set *0x20000000 = 0
set *0xFFFFEA00 = 0x4
set *0x20000000 = 0

set *0xFFFFEA00 = 0x3
set *0x20000000 = 0

set *0xFFFFEA00 = 0x0
set *0x20000000 = 0

set *0xFFFFEA04 = 0x2B7

echo SDRAM configuration ok.\n

# Write an assembly instruction to SRAM0 (which will
# be put at 0x0, the reset vector) to do a load
# address jump
set *(unsigned int)0x200000 = 0xe59ff018
# The address to jump to - the beginning of SDRAM
set *(unsigned int)0x200020 = 0x20000000
# Now remap SRAM0 to 0.
set *(unsigned int)0xFFFFEF00 = 0x3
set remote memory-write-packet-size 1025
set remote memory-write-packet-size fixed
set remote memory-read-packet-size 1025
set remote memory-read-packet-size fixed
load at91sam9260_getting_started_sdram.elf
thbreak main
echo \nThe following value should be 0x30008000\n
p/x *0xFFFFFD44
continue

so apparently, I have used the .gdb part (which was existing in my project file that I’ve downloaded) in the ‘Run’ commands part.However, there is a little problem that I can’t configure the master clock, so I just didn’t inlude the following part in ‘Run’ commands part:

# Configure master clock
echo Configuring the master clock...\n
# Enable main oscillator
set *0xFFFFFC20 = 0x00004001
while ((*0xFFFFFC68 & 0x1) == 0)
end

# Set PLLA to 200MHz
set *0xFFFFFC28 = 0x2060BF09
while ((*0xFFFFFC68 & 0x2) == 0)
end

# Select prescaler
set *0xFFFFFC30 = 0x00000100
while ((*0xFFFFFC68 & 0x8) == 0)
end

# Select master clock
set *0xFFFFFC30 = 0x00000102
while ((*0xFFFFFC68 & 0x8) == 0)
end

echo Master clock ok.\n

I don’t know why…