<?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>uv4.21 - breakpoint problems</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/28000/uv4-21---breakpoint-problems</link><description> 
Hello, 

 
I just upgraded to uv 4.21 and after doing this I can&amp;#39;t seem to
use breakpoints on my project. 

 
(I&amp;#39;m using an LPC1788 development board - Cortex-M3) 
(I&amp;#39;m using ULINK Pro) 

 
with version 4.20 and the same code I had no problems with</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: uv4.21 - breakpoint problems</title><link>https://community.arm.com/thread/126961?ContentTypeID=1</link><pubDate>Fri, 08 Jul 2011 05:48:51 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f5b55d7d-a212-4fc9-8270-583891ab7555</guid><dc:creator>@Marc Crandall</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi Ron,&lt;/p&gt;

&lt;p&gt;
Thanks for your reply and suggestion.&lt;/p&gt;

&lt;p&gt;
I&amp;#39;m using an LPC1788 so yes it access the NOR via the EMC.&lt;/p&gt;

&lt;p&gt;
I initialize the EMC at startup before the call to main as
follows:&lt;/p&gt;

&lt;pre&gt;
Reset_Handler   PROC
                EXPORT  Reset_Handler             [WEAK]
                IMPORT  SystemInit
                IMPORT  emc_setup_asm
                IMPORT  __main
                LDR     R0, =SystemInit
                BLX     R0
                LDR     R0, =emc_setup_asm
                BLX     R0
                LDR     R0, =__main
                BX      R0
                ENDP
&lt;/pre&gt;

&lt;p&gt;
I also (redundantly) configure the EMC via a debug/flash program
INI file. In any case even if I wait until after the EMC is properly
configured I still can not add a breakpoint.&lt;br /&gt;
(Note I can see the disassembly of the NOR)&lt;/p&gt;

&lt;p&gt;
I tried the &amp;#39;BS 0x800000&amp;#39; command as you suggested but I get the
same error messages.&lt;/p&gt;

&lt;p&gt;
Have you ever encountered this? Am I correct in thinking that I
should be able to add breakpoints to the code in external NOR?&lt;/p&gt;

&lt;p&gt;
Thanks.&lt;/p&gt;

&lt;p&gt;
M&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uv4.21 - breakpoint problems</title><link>https://community.arm.com/thread/116426?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2011 19:24:26 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b7bf888a-a5d7-4516-ab6d-5ab42a114555</guid><dc:creator>Ron Wedge</dc:creator><description>&lt;p&gt;&lt;p&gt;
Which device are you using for your product?&lt;/p&gt;

&lt;p&gt;
Let&amp;#39;s assume it is something like this device:&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/dd/chip/5722.htm"&gt;http://www.keil.com/dd/chip/5722.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
The LPC1810 accesses external NOR flash via the External Memory
Controller (EMC). I assume upon reset your device&amp;#39;s EMC is at its
default values and not set to talk to NOR flash.&lt;/p&gt;

&lt;p&gt;
I assume that when the debugger tries to load the breakpoint
register with the NOR flash address, it cannot yet access NOR flash,
and yields an error.&lt;/p&gt;

&lt;p&gt;
you could write a debug command&lt;/p&gt;

&lt;p&gt;
BS 0xAAAA&lt;/p&gt;

&lt;p&gt;
, where 0xAAAA is the memory location where you NOR flash resides.
That way after your EMC is configured by your project, you could
quickly set a breakpoint.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uv4.21 - breakpoint problems</title><link>https://community.arm.com/thread/105061?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2011 13:56:58 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0044b6ce-fc30-401d-b364-c9f05e05235c</guid><dc:creator>@Marc Crandall</dc:creator><description>&lt;p&gt;&lt;p&gt;
Ok I guess.&lt;br /&gt;
Anyway, I&amp;#39;ll disregard your apparent tone and politely let you know
that the two changes did not occur at the same time.&lt;/p&gt;

&lt;p&gt;
Still under version 4.20 we moved to the NOR and we tested fairly
extensively all the functionality we have developed running from the
NOR but we never used any break points in this time.&lt;/p&gt;

&lt;p&gt;
I upgraded to 4.21 and again it ran fine. I began continuing
development and my breakpoints weren&amp;#39;t working.&lt;br /&gt;
(And I didn&amp;#39;t blame the tool I was just stating what I had done to
encounter my problem)&lt;/p&gt;

&lt;p&gt;
So back to the question. I disagree breakpoints shouldn&amp;#39;t really
be a very invasive addition, particularly with Cortex-M devices. Also
from what I thought of Cortex-M3 devices I can&amp;#39;t recall any reason
why a breakpoint couldn&amp;#39;t be at any location in the memory range
(after all it does execute from this range).&lt;/p&gt;

&lt;p&gt;
Do you know that this is the case? Do you know of any links that
might shed some light on this?&lt;/p&gt;

&lt;p&gt;
Thank you for your time.&lt;/p&gt;

&lt;p&gt;
Regards,&lt;/p&gt;

&lt;p&gt;
Marc&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uv4.21 - breakpoint problems</title><link>https://community.arm.com/thread/91091?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2011 13:41:11 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:033c5e48-6051-4878-b0ad-7a5ba1ae0a5e</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;Ok so I think I see what has changed. While the code has not
changed I did move part of the application to external NOR flash and
I am running from this flash directly.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
So, lesson learned: don&amp;#39;t make two unrelated changes as massive as
those (a toolset change, and a memory layout change) in a single fell
swoop. &lt;b&gt;Particularly&lt;/b&gt; not if you&amp;#39;re going to publicly blame the
tool maker for the problem ;-P&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;Why would you be able to add breakpoints to the external NOR
code?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Do you know what setting a breakpoint actually means, on your
target architecture? That&amp;#39;s a pretty invasive procedure usually. It&amp;#39;s
quite possible that the technique involved doesn&amp;#39;t extend to memory
outside the CPU, e.g. because of a limitation on the address range it
can cover, or because it&amp;#39;s built into the internal memory bus, and
has no access to external memory reads.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: uv4.21 - breakpoint problems</title><link>https://community.arm.com/thread/59631?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2011 09:55:18 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4f809d2b-0879-4204-b707-29761f4b7cbc</guid><dc:creator>@Marc Crandall</dc:creator><description>&lt;p&gt;&lt;p&gt;
Ok so I think I see what has changed. While the code has not
changed I did move part of the application to external NOR flash and
I am running from this flash directly.&lt;/p&gt;

&lt;p&gt;
I seem to be able to add breakpoints to the code that resides in
internal flash but not to the code that resides in the external
NOR.&lt;/p&gt;

&lt;p&gt;
Is this normal operation?&lt;/p&gt;

&lt;p&gt;
Why would you be able to add breakpoints to the external NOR
code?&lt;/p&gt;

&lt;p&gt;
Thanks&lt;/p&gt;

&lt;p&gt;
M&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>