<?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>LPC MicrocontrollersのトピックUSB Library debug using Keil V4.60</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-Library-debug-using-Keil-V4-60/m-p/544361#M12876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kwinchell on Tue Mar 26 06:01:06 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the Keil uvision SDK 4.60.0.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to understand how the USB V0.98 is functioning.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I built the Library for the MCB11U10 board to run the Generic HID Example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to step through the process of CALLBACK_HID_Device_CreateHIDReport() getting called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the debugging session, I found it gets called by HID_Device_USBTask().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While examining the variables using the Keil debugger, the variables clearly had the wrong values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After closer examination, I noticed the debugger was using the wrong addresses for the variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This initial SP was 0x10000430, and 0x10000400 on entry to HID_Device_USBTask().&amp;nbsp; Here is what I found:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Variable&amp;nbsp; Debug Adr&amp;nbsp; SP Access&amp;nbsp; Act Adr&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;=======================================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ReportId&amp;nbsp; 100003FC&amp;nbsp;&amp;nbsp; SP + 18&amp;nbsp;&amp;nbsp; 10000418&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ReportINSize 003F8&amp;nbsp;&amp;nbsp; SP + 14&amp;nbsp;&amp;nbsp; 10000414&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ForceSend 100003F4&amp;nbsp;&amp;nbsp; SP + 10&amp;nbsp;&amp;nbsp; 10000410&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;StatesChanged&amp;nbsp; 3F0&amp;nbsp;&amp;nbsp; SP + 0C&amp;nbsp;&amp;nbsp; 1000040C&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is like the debugger is using the wrong value for its SP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any Ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:44:54 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:44:54Z</dc:date>
    <item>
      <title>USB Library debug using Keil V4.60</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-Library-debug-using-Keil-V4-60/m-p/544361#M12876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kwinchell on Tue Mar 26 06:01:06 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the Keil uvision SDK 4.60.0.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to understand how the USB V0.98 is functioning.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I built the Library for the MCB11U10 board to run the Generic HID Example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to step through the process of CALLBACK_HID_Device_CreateHIDReport() getting called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the debugging session, I found it gets called by HID_Device_USBTask().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While examining the variables using the Keil debugger, the variables clearly had the wrong values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After closer examination, I noticed the debugger was using the wrong addresses for the variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This initial SP was 0x10000430, and 0x10000400 on entry to HID_Device_USBTask().&amp;nbsp; Here is what I found:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Variable&amp;nbsp; Debug Adr&amp;nbsp; SP Access&amp;nbsp; Act Adr&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;=======================================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ReportId&amp;nbsp; 100003FC&amp;nbsp;&amp;nbsp; SP + 18&amp;nbsp;&amp;nbsp; 10000418&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ReportINSize 003F8&amp;nbsp;&amp;nbsp; SP + 14&amp;nbsp;&amp;nbsp; 10000414&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ForceSend 100003F4&amp;nbsp;&amp;nbsp; SP + 10&amp;nbsp;&amp;nbsp; 10000410&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;StatesChanged&amp;nbsp; 3F0&amp;nbsp;&amp;nbsp; SP + 0C&amp;nbsp;&amp;nbsp; 1000040C&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is like the debugger is using the wrong value for its SP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any Ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:44:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-Library-debug-using-Keil-V4-60/m-p/544361#M12876</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: USB Library debug using Keil V4.60</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-Library-debug-using-Keil-V4-60/m-p/544362#M12877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kwinchell on Wed Mar 27 05:54:32 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to fix the problem be changing the optimization from -O0 to -O1.&amp;nbsp; I just upgraded to Kiel uVision 4.70, but have not tried it yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It turns out this issue has nothing to do with the NXP library.&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:44:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-Library-debug-using-Keil-V4-60/m-p/544362#M12877</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:44:54Z</dc:date>
    </item>
  </channel>
</rss>

