<?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>Problem with HCR register in msc1211y5</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/18315/problem-with-hcr-register-in-msc1211y5</link><description> Dear all, 
 when i write 0xfe into HCR0 register using startup.a51 my program works fine.. 
whereas when i wanted to write into program memory i have to enable PML bit. ie i wrote 0xbe into HCR register.My program gets reset again and again .. 
 I thought</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Problem with HCR register in msc1211y5</title><link>https://community.arm.com/thread/111234?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2004 07:02:14 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1b82eb95-902f-4178-995a-1e02e83c1e12</guid><dc:creator>Karthik Raja</dc:creator><description>&lt;p&gt;Thanks to all,&lt;br /&gt;
&lt;br /&gt;
 Problem has been solved. (I was trying to update flash memory from my routine..!)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with HCR register in msc1211y5</title><link>https://community.arm.com/thread/96825?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2004 05:19:13 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6c6ea03a-f549-491c-ac20-f77c5c3fe067</guid><dc:creator>Viktor Bucher</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
Are you writing to flash memory using rom routines or your own routines located in XRAM (ram/code addressable) ? If this is the case you shouldn&amp;#39;t have that behavior.&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
&lt;br /&gt;
Viktor&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with HCR register in msc1211y5</title><link>https://community.arm.com/thread/111223?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2004 00:34:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d7b3d7a5-37ef-4fce-b10f-2c96d245f6af</guid><dc:creator>Keil Software Support Intl.</dc:creator><description>&lt;p&gt;&lt;b&gt;HCRx&lt;/b&gt; are hardware configuration registers that are mapped into the code space (configured by HWCfr.a51 which is part of the Keil examples).&lt;br /&gt;
&lt;br /&gt;
You may program them only during Flash initialization.  Take a look to one of the example applications that we provide. For example:&lt;br /&gt;
..\C51\EXAMPLES\TI MSC121x\AD4Input.&lt;br /&gt;
&lt;br /&gt;
The ISD51 (In-System Debugger) includes a CWRITE function that alters program memory. You may take out the required function from ISD51.A51.&lt;br /&gt;
&lt;br /&gt;
Reinhard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with HCR register in msc1211y5</title><link>https://community.arm.com/thread/96820?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2004 13:27:08 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8956aee8-b87c-48e3-91ae-912d8038ca65</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;I am really amazed with HCR register How it is mapped to 807EH address ??&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Presumably, that&amp;#39;s in XDATA - what does the &lt;b&gt;Datasheet&lt;/b&gt; say?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with HCR register in msc1211y5</title><link>https://community.arm.com/thread/72957?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2004 10:03:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ff6d51bd-ae43-4a7c-b401-ea6debf5ad46</guid><dc:creator>Karthik Raja</dc:creator><description>&lt;p&gt;NO ..It does not occur when i write into Flash..( I agree ...) but.I am really amazed with HCR register How it is mapped to 807EH address ??&lt;br /&gt;
&lt;br /&gt;
my startup it is like ....&lt;br /&gt;
&lt;br /&gt;
org 807EH&lt;br /&gt;
HCR1: db 0E3H ;&lt;br /&gt;
HCR0: db 0BEH ;&lt;br /&gt;
&lt;br /&gt;
My program gets reset again and again. Is there anything for this to do with Watchdog reset ?? or should i configure any other bits ?? ( my intention is to write into program memory by configuring these bits )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with HCR register in msc1211y5</title><link>https://community.arm.com/thread/43352?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2004 10:00:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:be1fea28-5aa1-45a8-b9d2-80587d5eb431</guid><dc:creator>Viktor Bucher</dc:creator><description>&lt;p&gt;In my opinion the problem is not in HCR register. Does the problem occur when you write to the flash ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>