<?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>Simulator for XC2364B failed</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/28025/simulator-for-xc2364b-failed</link><description> 
Hello, 

 
I downlaoded an evaluation version of PK166 v7.4, and write a very
very simple main function for XC2364B, when I try to debug in the
simulation mode, it reports the error &amp;quot;error 65: access violation:
addr=0x0000A000&amp;quot;. Does PK166 v7.4 support</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Simulator for XC2364B failed</title><link>https://community.arm.com/thread/126996?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2011 12:54:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:fa600987-43df-4e37-83f6-8d5bdf0ca644</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
So look at that map again. Does that look like there is
&lt;b&gt;code&lt;/b&gt; at address 0xa000? So, should your program be trying to
&lt;b&gt;execute&lt;/b&gt; code at that address?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulator for XC2364B failed</title><link>https://community.arm.com/thread/126995?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2011 23:41:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3926e3f4-030d-4d54-a21a-e812caec0cd3</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Have you noticed that there is a &amp;#39;&lt;b&gt;Search&lt;/b&gt;&amp;#39; box at the
top-right of the page...?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulator for XC2364B failed</title><link>https://community.arm.com/thread/116438?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2011 19:35:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d51fc15b-afe9-45ab-9c64-8c4c28f3d2be</guid><dc:creator>Simon H</dc:creator><description>&lt;p&gt;&lt;p&gt;
I checked the memory map, it is as below:&lt;/p&gt;

&lt;p&gt;
001: 0x00000000 - 0x00009FFF exec read write&lt;br /&gt;
002: 0x0000A000 - 0x0000A23F read write&lt;br /&gt;
003: 0x0000A240 - 0x0000F5FF exec read write&lt;/p&gt;

&lt;p&gt;
According to the map file (.m66), my code is allocated as
below:&lt;/p&gt;

&lt;p&gt;
START STOP LENGTH TYPE RTYP ALIGN TGR GRP COMB CLASS SECTION
NAME&lt;br /&gt;
=====================================================================================&lt;br /&gt;

00A000H 00A1FFH 000200H DATA REL WORD --- 2 PUBL NDATA
?C_USERSTACK&lt;br /&gt;
00A200H 00A21FH 000020H DATA REL WORD --- 2 PUBL NDATA
?C_USERSTACK1&lt;br /&gt;
00A220H 00A23FH 000020H DATA REL WORD --- 2 PUBL NDATA
?C_USERSTACK2&lt;br /&gt;
00F600H 00F7FFH 000200H DATA REL WORD --- 3 PUBL IDATA
?C_SYSSTACK&lt;br /&gt;
00FC00H 00FC1FH 000020H DATA --- BYTE --- --- --- *REG*
?C_MAINREGISTERS&lt;br /&gt;
C00000H C00003H 000004H --- --- --- --- --- --- * INTVECTOR TABLE
*&lt;br /&gt;
C00004H C00295H 000292H CODE REL WORD --- --- PRIV ICODE
?C_STARTUP_CODE&lt;br /&gt;
C10000H C10001H 000002H XDATA REL WORD --- --- GLOB ---
?C_INITSEC&lt;br /&gt;
C10002H C10017H 000016H CODE REL WORD --- 1 PUBL NCODE ?PR?MAIN&lt;/p&gt;

&lt;p&gt;
The MCU XC2364B that I am using, the memory from the address
0x00A000 to 0xDFFF is Data SRAM. Everything looks OK, but the
deggguer report the error &amp;quot;*** error 65: access violation:
addr=0x0000A000&amp;quot;, and in the Disassembly window, it stop at the
address 0x00A000 and it looks like:&lt;/p&gt;

&lt;p&gt;
0000A000 0000 ADD R0,R0&lt;br /&gt;
....&lt;br /&gt;
....&lt;/p&gt;

&lt;p&gt;
Now I have no idea why this happen because the memory map
configuration looks correct.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulator for XC2364B failed</title><link>https://community.arm.com/thread/105102?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2011 01:15:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e4fcc39a-cbb1-4b47-8cfb-255351717690</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yes, as the name suggests, that is what the MAP command does!&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/support/man/docs/uv4/uv4_cm_map.htm"&gt;http://www.keil.com/support/man/docs/uv4/uv4_cm_map.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Are your memory setings correct in the project options?&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;each time I re-enter the debug mode, the modified memory map
configuration is lost&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/support/man/docs/uv4/uv4_db_cmd_input_file.htm"&gt;http://www.keil.com/support/man/docs/uv4/uv4_db_cmd_input_file.htm&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulator for XC2364B failed</title><link>https://community.arm.com/thread/84755?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2011 00:00:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a3eadab2-571d-4bb8-b8b5-c4b6d9a26d4a</guid><dc:creator>harish shafaar</dc:creator><description>&lt;p&gt;&lt;p&gt;
i have the same probelm,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, give me
answer&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulator for XC2364B failed</title><link>https://community.arm.com/thread/79443?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2011 23:55:21 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:43117ba9-c061-4206-9079-ba1b6ec1c64c</guid><dc:creator>Simon H</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hello Andrew,&lt;/p&gt;

&lt;p&gt;
Is it possible to use Debug-&amp;gt;Memory Map to change the memory
maping of target system? I try to change it via the menu command
Debug-&amp;gt;Memory Map, but each time I re-enter the debug mode, the
modified memory map configuration is lost.&lt;/p&gt;

&lt;p&gt;
Thanks.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simulator for XC2364B failed</title><link>https://community.arm.com/thread/66755?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2011 01:10:58 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:514a6509-9611-4628-98ac-4532628b1748</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
You haven&amp;#39;t (correctly) configured your memory map.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>