programming the AT91SAM3U-EK using GDB

OP (Company: GVSU) #1807994
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.
Attached files:

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.