<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>uVision crashes when using ULINK</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/23202/uvision-crashes-when-using-ulink</link><description> 
Hello. 

 
I am using uVision and the codesourcery compiler for ARM
cortex-3m. Target is STM32F103ZE on the ST eval board. 

 
Project sompiles and links but when I attempt to download to flash
or debug the code uVision crashes. 

 
Any ideas? 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: uVision crashes when using ULINK</title><link>https://community.arm.com/thread/114447?ContentTypeID=1</link><pubDate>Thu, 20 Nov 2008 02:06:29 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:07b6aa8d-c2d0-434d-8165-b5de0d08ce5a</guid><dc:creator>moja nona</dc:creator><description>&lt;p&gt;&lt;p&gt;
Well. It was trully a heroic effort - thank you, but unfortunately
it did not help. uVision still crashes to -&amp;gt; &amp;quot;Send Error
Report?&amp;quot;&lt;/p&gt;

&lt;p&gt;
You said you trust me I am handling all this in codesourcery.
Hmmm, do I?&lt;/p&gt;

&lt;p&gt;
Seems I will have to read the extensive set of manuals that come
with codesourcery.&lt;/p&gt;

&lt;p&gt;
Thanks again for your help, guys.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uVision crashes when using ULINK</title><link>https://community.arm.com/thread/101340?ContentTypeID=1</link><pubDate>Wed, 19 Nov 2008 11:12:18 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:21c99b80-b017-4905-9b45-174c654b1944</guid><dc:creator>Cpt. Vince</dc:creator><description>&lt;p&gt;&lt;p&gt;
Uh, thanks!&lt;/p&gt;

&lt;p&gt;
Hopefully that &lt;i&gt;&amp;#39;heroic&amp;#39;&lt;/i&gt; &amp;amp; &lt;i&gt;&amp;#39;main man&amp;#39;&lt;/i&gt; stuff
worked for him.&lt;/p&gt;

&lt;p&gt;
I remember trying to get such boards up-n-running, and it can be a
bit frustrating when there isn&amp;#39;t enough information. Especially when
something crashes.&lt;/p&gt;

&lt;p&gt;
--Cpt. Vince Foster&lt;br /&gt;
2nd Cannon Place&lt;br /&gt;
Fort Marcy Park, VA&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uVision crashes when using ULINK</title><link>https://community.arm.com/thread/89382?ContentTypeID=1</link><pubDate>Wed, 19 Nov 2008 08:55:48 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f58600f6-e917-4f4d-8e96-c5143cebfbea</guid><dc:creator>Catcus Blip</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;Heroic work there, with that description.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Indeed. You are the main man, captain.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uVision crashes when using ULINK</title><link>https://community.arm.com/thread/89386?ContentTypeID=1</link><pubDate>Wed, 19 Nov 2008 08:51:26 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6904cbc2-7e8e-4cb8-be19-0ad3761cc8c0</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Heroic work there, with that description.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uVision crashes when using ULINK</title><link>https://community.arm.com/thread/52886?ContentTypeID=1</link><pubDate>Wed, 19 Nov 2008 08:00:36 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7d58b998-c24d-4126-8c82-e2e87fb776d8</guid><dc:creator>Cpt. Vince</dc:creator><description>&lt;p&gt;&lt;p&gt;
I&amp;#39;ve used one of those ST boards:&lt;/p&gt;

&lt;p&gt;
The ST-EVAL board doesn&amp;#39;t need much to get it going. You just need
to set up the &amp;quot;options&amp;quot; and check on the board settings... that&amp;#39;s
what I remember ... I think.&lt;/p&gt;

&lt;p&gt;
(That is if you are using the ULINK JTAG emulator)&lt;/p&gt;

&lt;p&gt;
I&amp;#39;m sure you&amp;#39;ve got this Project/Target section covered with
&amp;#39;codesourcery&amp;#39; but just in case you need to validate the setup, you
might want to load up some example project....&lt;/p&gt;

&lt;pre&gt;
Projects --&amp;gt;  Options for Target &amp;#39;Target&amp;#39;
&lt;b&gt;
(or whatever your project name is... e.g.)
Projects --&amp;gt;  Options for Target &amp;#39;Murmur-Maker 2000&amp;#39;
Projects --&amp;gt;  Options for Target &amp;#39;Systole Snubber v7.39e&amp;#39;
Projects --&amp;gt;  Options for Target &amp;#39;Known Functional Example&amp;#39;
&lt;/b&gt;
&lt;/pre&gt;

&lt;p&gt;
TARGET (tab)&lt;/p&gt;

&lt;pre&gt;
 Xtal (MHz): [ 8.0 ]
[ ] Use Cross-Module Optimization
[X] Use MicroLIB
Operating system: [ None ]
Read/Only Memory Areas
default off-chip  Start     Size        Startup
[ ]     ROM1   [           ][         ] [ ]
[ ]     ROM2   [           ][         ] [ ]
[ ]     ROM3   [           ][         ] [ ]

[X]     IROM1: [ 0x8000000 ][ 0x80000 ] [X]
[ ]     IROM2: [           ][         ] [ ]
Read/Write Memory Areas
default off-chip  Start     Size        NoInit &lt;b&gt;NoInit?! = &amp;quot;How strange.&lt;/b&gt;
[ ]     RAM1   [           ][         ] [ ] &lt;b&gt;Why would anyone impose such a rule?&amp;quot;&lt;/b&gt;
[ ]     RAM2   [           ][         ] [ ] &lt;b&gt;&lt;i&gt; (&amp;#39;humour&amp;#39;)&lt;/i&gt;&lt;/b&gt;
[ ]     RAM3   [           ][         ] [ ]

[X]     IROM1: [ 0x2000000 ][ 0x10000 ] [ ]
[ ]     IROM2: [           ][         ] [ ]

&lt;/pre&gt;

&lt;p&gt;
DEBUG (tab) Especially for the uVision ULINK thing...&lt;/p&gt;

&lt;pre&gt;
Debug Tab:

[*] Use: ULINK Cortex Debugger  [Settings]
[X] Load Application at Startup &lt;b&gt;(up to you)&lt;/b&gt;
[ ] Run to main( ) (up to you)
Driver DLL:
[ SARMCM3.DLL ]
Parameter:
[             ]
Dialog DLL:
[ TARMSTM.DLL ]
Parameter:
[ -pSTM32F103ZE ]
&lt;/pre&gt;

&lt;p&gt;
&lt;br /&gt;
DEBUG---&amp;gt;Settings&lt;br /&gt;
DEBUG---&amp;gt;Settings--&amp;gt;Debug Tab&lt;/p&gt;

&lt;pre&gt;

[X] SWJ   Port: [SW]
     Max Clock: [5MHz]
Connect: [Normal]         Reset [Autodetec]
[X] Reset after Connect
Cache Options
[X] Cache Code      [ ] Verify Code Download
[X] Cache Memory    [ ] Download to Flash
&lt;/pre&gt;

&lt;p&gt;
DEBUG---&amp;gt;Settings--&amp;gt;Trace tab&lt;/p&gt;

&lt;pre&gt;
Core Clock [  72.000000 ] MHz
[ ] Trace Enable  (up to you)
&lt;/pre&gt;

&lt;p&gt;
&lt;br /&gt;
DEBUG---&amp;gt;Settings--&amp;gt;Flash Download tab&lt;/p&gt;

&lt;pre&gt;
Download Function
[ ] Erase Full Chip     [X] Program
[X] Erase Sectors       [X] Verify
[ ] Do not Erase        [ ] Reset and Run
RAM for Algorithm
Start: [ 0x20000000 ]  Size: [ 0x0800 ]
Programming Algorithm
ST32F10x 512kB Flash   on-chip Flash    512k   08000000H - 0807FFFFH
Start: [ 0x08000000 ] Size [ 0x00080000 ]
Note: use the &amp;#39;Add&amp;#39; button to select it
&lt;/pre&gt;

&lt;p&gt;
This should allow you to run some basic code. You will have to
modify the settings to meet your specific needs, but this should
&amp;#39;work&amp;#39; enough for you to make sure it is possible to Flash and not
crash.&lt;/p&gt;

&lt;p&gt;
As far as board configuration settings... you&amp;#39;ll have to make sure
that your BOOT0 and BOOT1 switches are proper: both set to zero on
the lab unit.&lt;/p&gt;

&lt;p&gt;
Go through the &amp;quot;UM0488 User manual STM3210E-EVAL&amp;quot;&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.st.com/stonline/products/literature/um/14220.pdf"&gt;www.st.com/.../14220.pdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
and ensure that the jumpers are set for your needs.&lt;/p&gt;

&lt;p&gt;
--Cpt. Vince Foster&lt;br /&gt;
2nd Cannon Place&lt;br /&gt;
Fort Marcy Park, VA&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>