<?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 Re: MQX bsp_init.c trouble in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-bsp-init-c-trouble/m-p/179912#M2612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the value in the register A7 (=SP) before you attempt to execute the "link" instruction ?&lt;BR /&gt;the link instruction attempts to write 4 bytes (32-bits) to the stack, so the stack pointer should have a valid address in the internal SRAM at this moment.&lt;/P&gt;&lt;P&gt;I think the register gets loaded with the value of linker generated symbol __BOOT_STACK_ADDRESS.&lt;BR /&gt;Does it point to the end of 16 KB SRAM for MCF52221. (0x20004000) ?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Nov 2012 13:38:49 GMT</pubDate>
    <dc:creator>Martin_</dc:creator>
    <dc:date>2012-11-19T13:38:49Z</dc:date>
    <item>
      <title>MQX bsp_init.c trouble</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-bsp-init-c-trouble/m-p/179911#M2611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ported the MQX from m52223evb to an MCF52221CAE66 custom board. I modify the .mem, the .lcf and the .cfg files. When I try to debbug it using the PE USB Multilink Universal, it starts fine. It executed the boot.c assembler instructions and it jumped to the bsp_init.c file using a JSR assembler instruction. Here is the problem, in the first assembler instruction of the bsp_init.c file it stop the excecution and it shows Exception 12 in the debug Window. At this point it tries to execute a LINK instruction but it can't. Only the VBR register reserved bits are changing when I try to exceute again the instruction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Exception.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/118980i47076243DD885CD4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Exception.JPG" alt="Exception.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why the debug is suspended automatically at this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sergio David Bacca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 04:27:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-bsp-init-c-trouble/m-p/179911#M2611</guid>
      <dc:creator>sbaccam</dc:creator>
      <dc:date>2012-11-19T04:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: MQX bsp_init.c trouble</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-bsp-init-c-trouble/m-p/179912#M2612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the value in the register A7 (=SP) before you attempt to execute the "link" instruction ?&lt;BR /&gt;the link instruction attempts to write 4 bytes (32-bits) to the stack, so the stack pointer should have a valid address in the internal SRAM at this moment.&lt;/P&gt;&lt;P&gt;I think the register gets loaded with the value of linker generated symbol __BOOT_STACK_ADDRESS.&lt;BR /&gt;Does it point to the end of 16 KB SRAM for MCF52221. (0x20004000) ?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 13:38:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-bsp-init-c-trouble/m-p/179912#M2612</guid>
      <dc:creator>Martin_</dc:creator>
      <dc:date>2012-11-19T13:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: MQX bsp_init.c trouble</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-bsp-init-c-trouble/m-p/179913#M2613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/sbaccam"&gt;sbaccam&lt;/A&gt;!&lt;/P&gt;&lt;P&gt;How's the project going? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are these answers helping you throughout it? We'd appreciate the feedback, too :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Dec 2012 00:24:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-bsp-init-c-trouble/m-p/179913#M2613</guid>
      <dc:creator>Monica</dc:creator>
      <dc:date>2012-12-08T00:24:24Z</dc:date>
    </item>
  </channel>
</rss>

