[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openocd-development
Subject:    [OpenOCD-devel] Samsung S3C2412 - trouble halting/resetting
From:       David Cleckley <dcleckley () cigital ! com>
Date:       2013-11-22 20:36:07
Message-ID: FCD0F167817DB34C92CE44CD366DBE0B0545A03FB0 () dcmbx07 ! cigital ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello All,

 

I am attempting to connect to a Samsung S3C2412. I have created my own
configuration file, which I have copied below. Currently, when I start
openOCD, the device is found with the correct ID (0x0792609d). However, I am
having difficulty halting or resetting the processor. 

 

When I issue the reset command, JTAG scan interrogation fails (all ones),
and I receive an "IR capture error; saw 0x0f not 0x01." Also, issuing the
'reg' command shows all registers as being 0xFFFFFFFF, which is concerning.
After I get the processor to halt, register values and memory locations all
appear to be 0xfffffff, which should be an error.

 

I think the problem may be related to the clock speed setting, which I have
attempted to change. With the setting very low (<30kHz), the embeddedICE
version is displayed incorrectly.  Furthermore, the 'halt' command will
always time out with a low clock speed setting.

 

Does anyone have any experience with this type of problem or suggest any
sort of troubleshooting steps? Perhaps my configuration file is in error?
Any suggestions appreciated. 

 

David Cleckley

 

####Configuration file follows

#samsung s3c2412

 

if { [info exists CHIPNAME] } {

   set _CHIPNAME $CHIPNAME

} else {

   set _CHIPNAME s3c2412

}

 

if { [info exists ENDIAN] } {

   set _ENDIAN $ENDIAN

} else {

  # This config file was defaulting to big endian..

   set _ENDIAN little

}

 

if { [info exists CPUTAPID] } {

   set _CPUTAPID $CPUTAPID

} else {

   # Force an error until we get a good number.

   set _CPUTAPID 0x0792609d

}

adapter_khz 3000

adapter_nsrst_delay 200

jtag_ntrst_delay 200

 

#use combined on interfaces or targets that cannot set TRST/SRST separately

reset_config srst_only 

#reset_config trst_and_srst 

#reset_config srst_pulls_trst

 

#jtag scan chain

jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id
$_CPUTAPID

 

#from http://pastebin.com/txgUmZs1

set _TARGETNAME $_CHIPNAME.cpu

target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position
$_TARGETNAME -variant arm926ejs

 

$_TARGETNAME configure -work-area-phys 0x30400000 -work-area-size 0x20000
-work-area-backup 0

 

# speed up memory downloads

arm7_9 fast_memory_access enable

arm7_9 dcc_downloads enable

 


[Attachment #5 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" \
CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 \
(filtered medium)"><style><!-- /* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div \
class=WordSection1><p class=MsoNormal>Hello All,<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I am attempting to connect to \
a Samsung S3C2412. I have created my own configuration file, which I have copied \
below. Currently, when I start openOCD, the device is found with the correct ID \
(0x0792609d). However, I am having difficulty halting or resetting the processor. \
<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>When I \
issue the reset command, JTAG scan interrogation fails (all ones), and I receive an \
&#8220;IR capture error; saw 0x0f not 0x01.&#8221; Also, issuing the \
&#8216;reg&#8217; command shows all registers as being 0xFFFFFFFF, which is \
concerning. After I get the processor to halt, register values and memory locations \
all appear to be 0xfffffff, which should be an error.<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I think the problem may be \
related to the clock speed setting, which I have attempted to change. With the \
setting very low (&lt;30kHz), the embeddedICE version is displayed incorrectly. \
&nbsp;Furthermore, the &#8216;halt&#8217; command will always time out with a low \
clock speed setting.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=MsoNormal>Does anyone have any experience with this type of problem or suggest \
any sort of troubleshooting steps? Perhaps my configuration file is in error? Any \
suggestions appreciated. <o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=MsoNormal>David Cleckley<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>####Configuration file \
follows<o:p></o:p></p><p class=MsoNormal>#samsung s3c2412<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>if { [info exists CHIPNAME] } \
{<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp; set _CHIPNAME \
$CHIPNAME<o:p></o:p></p><p class=MsoNormal>} else {<o:p></o:p></p><p \
class=MsoNormal>&nbsp;&nbsp; set _CHIPNAME s3c2412<o:p></o:p></p><p \
class=MsoNormal>}<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=MsoNormal>if { [info exists ENDIAN] } {<o:p></o:p></p><p \
class=MsoNormal>&nbsp;&nbsp; set _ENDIAN $ENDIAN<o:p></o:p></p><p class=MsoNormal>} \
else {<o:p></o:p></p><p class=MsoNormal>&nbsp; # This config file was defaulting to \
big endian..<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp; set _ENDIAN \
little<o:p></o:p></p><p class=MsoNormal>}<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>if { [info exists CPUTAPID] } \
{<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp; set _CPUTAPID \
$CPUTAPID<o:p></o:p></p><p class=MsoNormal>} else {<o:p></o:p></p><p \
class=MsoNormal>&nbsp;&nbsp; # Force an error until we get a good \
number.<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp; set _CPUTAPID \
0x0792609d<o:p></o:p></p><p class=MsoNormal>}<o:p></o:p></p><p \
class=MsoNormal>adapter_khz 3000<o:p></o:p></p><p class=MsoNormal>adapter_nsrst_delay \
200<o:p></o:p></p><p class=MsoNormal>jtag_ntrst_delay 200<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>#use combined on interfaces \
or targets that cannot set TRST/SRST separately<o:p></o:p></p><p \
class=MsoNormal>reset_config srst_only <o:p></o:p></p><p \
class=MsoNormal>#reset_config trst_and_srst <o:p></o:p></p><p \
class=MsoNormal>#reset_config srst_pulls_trst<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>#jtag scan \
chain<o:p></o:p></p><p class=MsoNormal>jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture \
0x1 -irmask 0xf -expected-id $_CPUTAPID<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>#from \
http://pastebin.com/txgUmZs1<o:p></o:p></p><p class=MsoNormal>set _TARGETNAME \
$_CHIPNAME.cpu<o:p></o:p></p><p class=MsoNormal>target create $_TARGETNAME arm926ejs \
-endian $_ENDIAN -chain-position $_TARGETNAME -variant arm926ejs<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>$_TARGETNAME configure \
-work-area-phys 0x30400000 -work-area-size 0x20000 -work-area-backup \
0<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal># speed up \
memory downloads<o:p></o:p></p><p class=MsoNormal>arm7_9 fast_memory_access \
enable<o:p></o:p></p><p class=MsoNormal>arm7_9 dcc_downloads enable<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>


["smime.p7s" (application/pkcs7-signature)]
[Attachment #7 (--===============4476089047389073162==)]
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk

_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic