EmbDev.net

Forum: ARM programming with GCC/GNU tools programming the AT91SAM3U-EK using GDB


von Ryan L. (Company: GVSU) (lusher00)


Attached files:

Rate this post
useful
not useful
Hello,

I have an AT91SAM3U-EK and the SAM-ICE JTAG programmer. I am using 
YAGARTO along with the sample project I have attached. This is the 
tutorial I am following

http://yagarto.de/howto/jlink/index.html

I am slightly confused about the programming procedure and how it works.

This is the GDB script that is included with the example project
1
#
2
# This config file was tested with J-Link GDB Server v4.10i
3
#
4
5
# connect to the J-Link gdb server
6
target remote localhost:2331
7
8
# Set gdb server to little endian
9
monitor endian little
10
11
# Set JTAG speed to 5 kHz
12
monitor speed 5
13
14
# Reset the target
15
monitor reset
16
monitor sleep 100
17
18
# Set JTAG speed in khz
19
monitor speed auto
20
21
# Vector table placed in RAM
22
monitor writeu32 0xE000ED08 = 0x20000000
23
24
load
25
26
monitor reg r13 = (0x20000000)
27
monitor reg pc = (0x20000004)
28
29
break ResetException
30
break main
31
continue

Rather than asking "what does this do" I would like to know where I need 
to look to figure it out my self. I had to install the J-Link server 
software along with all of the YAGARTO tools so I am not sure what 
exactly is going on when I follow the directions, or what tools are 
being used to do the programming, so I am not sure what documentation I 
need to dig into. If anyone can tell me exactly what is going on here, 
or point me to some good resources I would really appreciate it. I want 
to be able to write my own GDB scripts and extend these techniques as 
much as possible.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.