<?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>I can&amp;#39;t write to 0x4004xxxx</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/30530/i-can-t-write-to-0x4004xxxx</link><description> 
Hi! I&amp;#39;m new on ARM. 
I&amp;#39;m using uVision 4.71 with j-link + LPC1343 cortex-m3 running
following code: 

 
movw r0,#0x0001 ;working 

 
ldr r1,=0x4004400c ;working 

 
str r0, [r1, #0] ;not working 

 
movw r0,#0x00ff ;working 

 
ldr r1,=0x50008000 ;working</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: I can't write to 0x4004xxxx</title><link>https://community.arm.com/thread/131268?ContentTypeID=1</link><pubDate>Sat, 01 Jun 2013 16:48:13 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:598214d0-4b92-4d33-b1d9-a231c0e24c32</guid><dc:creator>temistocles chala&amp;#231;a</dc:creator><description>&lt;p&gt;&lt;p&gt;
It&amp;#39;s done! By default, the bit 16 in SYSAHBCLKCTRL(0x40048080) in
reset is zero, disabling clocks to IOCON block. So, i put the
following code at start of program to solve my problem:&lt;/p&gt;

&lt;p&gt;
movw r1,#0x8080&lt;/p&gt;

&lt;p&gt;
movt r1,#0x4004&lt;/p&gt;

&lt;p&gt;
ldr r0,[r1]&lt;/p&gt;

&lt;p&gt;
orr r0,#0x10000&lt;/p&gt;

&lt;p&gt;
str r0,[r1]&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I can't write to 0x4004xxxx</title><link>https://community.arm.com/thread/128206?ContentTypeID=1</link><pubDate>Fri, 31 May 2013 20:16:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0dfe2401-f7dc-41c1-8ed2-9ee447a0cfa1</guid><dc:creator>Chris Burrows</dc:creator><description>&lt;p&gt;&lt;p&gt;
Check the documentation of your microcontroller again.&lt;/p&gt;

&lt;p&gt;
According to user manual UM10375, Section 7.4.32, address 0x4004
4084 is IOCON_PIO3_0.&lt;/p&gt;

&lt;p&gt;
The only valid values you can store in Bits 2:0 are 0 or 1 (and 1
is not applicable to all parts). If you are using code written by
someone else, make sure that it is designed to run on an LPC1343.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I can't write to 0x4004xxxx</title><link>https://community.arm.com/thread/117315?ContentTypeID=1</link><pubDate>Fri, 31 May 2013 05:47:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f083ed54-3b6c-4145-bf68-6477bac4c6eb</guid><dc:creator>temistocles chala&amp;#231;a</dc:creator><description>&lt;p&gt;&lt;p&gt;
I&amp;#39;ve checked the documentation of my microcontroller! I thought
that might be my problem and I will test next sunday. Thanks everyone
and sorry for the inconvenience and my bad english!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I can't write to 0x4004xxxx</title><link>https://community.arm.com/thread/107135?ContentTypeID=1</link><pubDate>Fri, 31 May 2013 04:19:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:fa47aa75-b575-4084-a841-3608159b383d</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Have you checked the documentation for your processor?&lt;/p&gt;

&lt;p&gt;
It includes information about which peripherials that needs to
have the power enabled. And any clock requirements. It really is the
user manual - and not this forum - that is the reference to use for
this kind of information.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I can't write to 0x4004xxxx</title><link>https://community.arm.com/thread/81256?ContentTypeID=1</link><pubDate>Fri, 31 May 2013 02:45:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:37c87fd7-1dd8-4a08-bccc-e891c57d784b</guid><dc:creator>temistocles chala&amp;#231;a</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yes! I write, but registers do not get the values! I need activate
some clock to these registers? Thank you!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I can't write to 0x4004xxxx</title><link>https://community.arm.com/thread/61962?ContentTypeID=1</link><pubDate>Thu, 30 May 2013 18:44:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:350a59e6-ced1-430d-aebb-9df1307a63dd</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
Not working how?&lt;/p&gt;

&lt;p&gt;
Could it be you can write these registers but can&amp;#39;t inspect there
content? Could it be that you need to enable a peripheral clock?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>