<?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>Ulink2 download problem on Smartfusion2</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/32251/ulink2-download-problem-on-smartfusion2</link><description> 
My project uses Microsemi&amp;#39;s Smartfusion2 SoC FPGA. After I got the
hardware, I tested that using Microsemi&amp;#39;s FlashPro, I am able to
download hardware configurations using Flashpro11.3 and debug
firmware using MicroSemi&amp;#39;s Softconsole IDE. 

 
When I</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Ulink2 download problem on Smartfusion2</title><link>https://community.arm.com/thread/150888?ContentTypeID=1</link><pubDate>Tue, 09 Sep 2014 07:34:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4c79fe20-607f-4cac-8bf2-b70f4f7c39d4</guid><dc:creator>Zhenhai Wang</dc:creator><description>&lt;p&gt;&lt;p&gt;
It is the latest version of uVision, V5.11.1.0.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ulink2 download problem on Smartfusion2</title><link>https://community.arm.com/thread/150415?ContentTypeID=1</link><pubDate>Tue, 09 Sep 2014 05:44:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:110c260a-d920-419e-b618-ddb73b3f25d0</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
Ok, beyond the JTAG/SWD interface pins, you should perhaps look at
the power (supply/ground) and reset pins. Compare those to the
working reference design. If that doesn&amp;#39;t locate and issue start
looking at other pins.&lt;/p&gt;

&lt;p&gt;
Looking at the signals on the JTAG/SWD is like searching for a
needle in a haystack, I&amp;#39;d try to look for more obvious issues
first.&lt;/p&gt;

&lt;p&gt;
What&amp;#39;s the version number of the uVision being used here?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ulink2 download problem on Smartfusion2</title><link>https://community.arm.com/thread/150003?ContentTypeID=1</link><pubDate>Mon, 08 Sep 2014 14:39:52 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e66ff31e-b987-45e3-85ba-e18a480ac23e</guid><dc:creator>Zhenhai Wang</dc:creator><description>&lt;p&gt;&lt;p&gt;
I have contacted both Microsemi and Keil. Microsemi says that they
are not familiar with uVision. Keil goes through the uVision
configuration with me, but they think they are all set up correctly.
So bad that I don&amp;#39;t know anyone that have direct usage experience at
work.&lt;/p&gt;

&lt;p&gt;
I have uVision license, so there should be any issue with code
size. Flash-&amp;gt;Erase says it erased OK. Flash-&amp;gt;Download gives the
error that I have described before.&lt;/p&gt;

&lt;p&gt;
One thing I noticed is that after a full Chip Erase, I can still
do the debugging process as you have suggested. Does that mean I
actually have not erased anything in the flash?&lt;/p&gt;

&lt;p&gt;
I have a Dev Kit, and works fine with uVision after getting rid of
pull down resistor. I basically copied the design for the JTAG part.
Maybe I should compare the signal waveform on the scope to see the
difference.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ulink2 download problem on Smartfusion2</title><link>https://community.arm.com/thread/149521?ContentTypeID=1</link><pubDate>Mon, 08 Sep 2014 13:18:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:447138a8-da27-4315-ba19-04291e913af1</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
Well your responses suggest that the ULINK connectivity is there,
so you&amp;#39;re back to the flashing algorithm and what&amp;#39;s going on with
that.&lt;/p&gt;

&lt;p&gt;
Have you pursued your support options through Keil and
Actel/MicroSemi? How about any colleagues or college staff setting
the project requirements, or having direct usage experience?&lt;/p&gt;

&lt;p&gt;
Does the version of Keil have some code size limitation related to
it&amp;#39;s license or evaluation? What specific version of uVision are you
using?&lt;/p&gt;

&lt;p&gt;
Do the direct Flash-&amp;gt;Erase or Flash-&amp;gt;Download menu commands
function?&lt;/p&gt;

&lt;p&gt;
Is this a standard development board others might have, or some
custom board?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ulink2 download problem on Smartfusion2</title><link>https://community.arm.com/thread/131437?ContentTypeID=1</link><pubDate>Mon, 08 Sep 2014 12:49:30 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:26ec2627-576c-4c4e-b81f-959d1c8fb308</guid><dc:creator>Zhenhai Wang</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Westonsupermare, Can you advice where should I start to get the
problem solved? Thanks.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ulink2 download problem on Smartfusion2</title><link>https://community.arm.com/thread/131436?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2014 13:58:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:37a91514-e044-4546-822d-0e8f0aeb6c2c</guid><dc:creator>Zhenhai Wang</dc:creator><description>&lt;p&gt;&lt;p&gt;
Got it. It runs to startup_m2sxxx.s. Then I Step Over many times,
it runs to main().&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ulink2 download problem on Smartfusion2</title><link>https://community.arm.com/thread/128698?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2014 13:18:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ada88f68-1a41-435a-9cbe-45a65bca5643</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
I&amp;#39;m not really interested in what SoftConsole does, you&amp;#39;re
describing a problem with uVision and ULINK connectivity, and I&amp;#39;m
trying to determine if you have any credible debug connectivity via
the ULINK.&lt;/p&gt;

&lt;p&gt;
In uV4 you have the Project Options -&amp;gt; Debug pane, and the
Project Options -&amp;gt; Utilities pane. From those you have
configuration &amp;quot;options&amp;quot; including the ability to not run to main,
allowing you to see ROM or startup code executing from reset, and the
ability not to download code, so you can inject it via other means,
or use what&amp;#39;s already in the part, ie Flash or ROM, or whatever.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ulink2 download problem on Smartfusion2</title><link>https://community.arm.com/thread/120433?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2014 12:07:30 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3efea9f6-b123-4cdc-9c73-864c439d9ac4</guid><dc:creator>Zhenhai Wang</dc:creator><description>&lt;p&gt;&lt;p&gt;
I am using the Ulink2 JGAT/SW Adapter. The Port is chosen as
SW.&lt;/p&gt;

&lt;p&gt;
I have the Eval version on one computer but I tried on the full
version on the other computer, it is exactly the same.&lt;/p&gt;

&lt;p&gt;
The full message is as follows:&lt;/p&gt;

&lt;p&gt;
Load
&amp;quot;C:\\Microsemi\\AcquisitionNode\\Keil\\obj\\metisMSS_CM3_app.axf&amp;quot;&lt;br /&gt;
Erase Done.&lt;br /&gt;
Programming Failed!&lt;br /&gt;
Error: Flash Download failed - &amp;quot;Cortex-M3&amp;quot;&lt;/p&gt;

&lt;p&gt;
I am able to step through my code using Softconsole, and here is
the message it dispays:&lt;/p&gt;

&lt;p&gt;
source .gdbinit&lt;br /&gt;
source C:/Microsemi/SoftConsole
v3.4/Eclipse//../Sourcery-G++/share/gdbinit/microsemi-cortex-m3-target-gdbinit&lt;br /&gt;

target remote | &amp;quot;C:/Microsemi/SoftConsole
v3.4/Eclipse//../Sourcery-G++/bin/arm-none-eabi-sprite&amp;quot;
flashpro:?cpu=Cortex-M3
&amp;quot;S:/EE/MD7_3G/MD7_Node_SF2/AcquisitionNode/SoftConsole/metisMSS_CM3/metisMSS_CM3_app/Debug&amp;quot;&lt;br /&gt;

arm-none-eabi-sprite: Using memory map
S:/EE/MD7_3G/MD7_Node_SF2/AcquisitionNode/SoftConsole/metisMSS_CM3/metisMSS_CM3_app/Debug/memory-map.xml&lt;br /&gt;

arm-none-eabi-sprite: Target reset&lt;br /&gt;
0x00001a24 in ?? ()&lt;br /&gt;
load&lt;br /&gt;
Loading section .vector_table, size 0x190 lma 0x20000000&lt;br /&gt;
Loading section .init, size 0x620 lma 0x20000190&lt;br /&gt;
Loading section .text, size 0xc0 lma 0x200007b0&lt;br /&gt;
Loading section .data, size 0x10 lma 0x20000870&lt;br /&gt;
Start address 0x20000190, load size 2176&lt;br /&gt;
Transfer rate: 34 KB/sec, 544 bytes/write.&lt;br /&gt;
Temporary breakpoint 1 at 0x200007e6: file ..\main.c, line 7.&lt;br /&gt;
cont&lt;/p&gt;

&lt;p&gt;
Temporary breakpoint 1, main () at ..\main.c:7&lt;br /&gt;
7 a=0;&lt;/p&gt;

&lt;p&gt;
I could not find where to config is to NOT &amp;quot;Update Target Before
Debugging&amp;quot;. Does the message above saying it is updated before
debugging?&lt;/p&gt;

&lt;p&gt;
I could not find where to toggle &amp;quot;run to main&amp;quot; either.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ulink2 download problem on Smartfusion2</title><link>https://community.arm.com/thread/118540?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2014 09:16:26 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:251b49c6-d65c-41c6-a2be-d223eb57a246</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
JTAG vs SWD?&lt;/p&gt;

&lt;p&gt;
Is this an Eval version, how large is the code?&lt;br /&gt;
Any other messages prior to the failure?&lt;/p&gt;

&lt;p&gt;
The method of flashing is to download load code to SRAM, and
execute a small applet.&lt;/p&gt;

&lt;p&gt;
If you program via your other tools, and NOT &amp;quot;Update Target Before
Debugging&amp;quot;, can you step through your code then?&lt;/p&gt;

&lt;p&gt;
Turn off &amp;quot;run to main&amp;quot;, see what runs, if the cpu appears
functional.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ulink2 download problem on Smartfusion2</title><link>https://community.arm.com/thread/82116?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2014 05:42:21 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:dbd5ac25-777b-4f94-9515-051d0547249c</guid><dc:creator>Zhenhai Wang</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks for your reply. I have chosen the right part and doubled
checked on the flash algorithm and RAM address/size. Is there any
settings to prevent the flash to be writable?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ulink2 download problem on Smartfusion2</title><link>https://community.arm.com/thread/63106?ContentTypeID=1</link><pubDate>Thu, 04 Sep 2014 19:49:50 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8fccd575-48e9-4b0a-9aa1-929508fc0b98</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
Make sure you have the correct flash algorithm selected, and that
the RAM address/size is valid for your part.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>