<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Debugging with IAR EWARM in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Debugging-with-IAR-EWARM/m-p/239414#M19559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;The IAR EWARM debugger hangs in __rom_data_init.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I am trying to learn Zigbee by studying the example MyStarNetwork Demo (Coordinator) that came with my Freescale 1322NSK Network Starter Kit. The solution is created with ARM7 MAC Codebase 1.1.4. The solution is imported into IAR Embedded Workbench IDE 5.20. The solution is compiled and linked without warnings or errors.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to step through the code starting in Init-IAR.S, the debugger is with Simulator driver. In line 151 BL __rom_data_init the program hangs. The Break button is lighting up and in the Windows Task Manager I can see that IarIdePM.exe is using around 40% of the processor, almost all of one kernel. When I click the Break and Go buttons, the PC stops at different addresses, but never returns from the __rom_data_init routine.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the comments above the call to __rom_data_init it seems that ROM variables should not be initialized when using simulation debugging. However I don't find a way to set the variables Region_ROM_Table_ROM_Base and Region_ROM_Table_ROM_Limit that are used. They seem to be declared in the library LLC_MC13224.a&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Ole&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 May 2013 11:56:42 GMT</pubDate>
    <dc:creator>olehattebol</dc:creator>
    <dc:date>2013-05-15T11:56:42Z</dc:date>
    <item>
      <title>Debugging with IAR EWARM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Debugging-with-IAR-EWARM/m-p/239414#M19559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;The IAR EWARM debugger hangs in __rom_data_init.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;I am trying to learn Zigbee by studying the example MyStarNetwork Demo (Coordinator) that came with my Freescale 1322NSK Network Starter Kit. The solution is created with ARM7 MAC Codebase 1.1.4. The solution is imported into IAR Embedded Workbench IDE 5.20. The solution is compiled and linked without warnings or errors.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to step through the code starting in Init-IAR.S, the debugger is with Simulator driver. In line 151 BL __rom_data_init the program hangs. The Break button is lighting up and in the Windows Task Manager I can see that IarIdePM.exe is using around 40% of the processor, almost all of one kernel. When I click the Break and Go buttons, the PC stops at different addresses, but never returns from the __rom_data_init routine.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the comments above the call to __rom_data_init it seems that ROM variables should not be initialized when using simulation debugging. However I don't find a way to set the variables Region_ROM_Table_ROM_Base and Region_ROM_Table_ROM_Limit that are used. They seem to be declared in the library LLC_MC13224.a&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Ole&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2013 11:56:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Debugging-with-IAR-EWARM/m-p/239414#M19559</guid>
      <dc:creator>olehattebol</dc:creator>
      <dc:date>2013-05-15T11:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging with IAR EWARM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Debugging-with-IAR-EWARM/m-p/239415#M19560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Later I got the following answer from IAR Systems AB:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The start-up sequence for the Freescale ZigBee devices is implemented to run in the device itself. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;This Freescale kit was created years ago, but if I remember right,&amp;nbsp; I think that the start-up-process (i.e. in hardware) is that the application is downloaded to the target, and then during start-up, the target perform a reset to an alternative memory map/range, where the application then runs. To simulate this using our instruction simulator is almost impossible as it is so closely related to the device itself.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;BR /&gt;Using the JTAG the debugger now works perfect.&lt;/P&gt;&lt;P&gt;Ole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 15:13:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Debugging-with-IAR-EWARM/m-p/239415#M19560</guid>
      <dc:creator>olehattebol</dc:creator>
      <dc:date>2013-06-12T15:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging with IAR EWARM</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Debugging-with-IAR-EWARM/m-p/239416#M19561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ole,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's great, thanks for sharing and keep up the good job!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Monica.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 00:00:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Debugging-with-IAR-EWARM/m-p/239416#M19561</guid>
      <dc:creator>Monica</dc:creator>
      <dc:date>2013-06-13T00:00:37Z</dc:date>
    </item>
  </channel>
</rss>

