<?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: Generating assembly list file in KDS in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Generating-assembly-list-file-in-KDS/m-p/915967#M53597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See &lt;A class="link-titled" href="https://mcuoneclipse.com/2018/07/08/creating-disassembly-listings-with-gnu-tools-and-eclipse/" title="https://mcuoneclipse.com/2018/07/08/creating-disassembly-listings-with-gnu-tools-and-eclipse/"&gt;Creating Disassembly Listings with GNU Tools and Eclipse | MCU on Eclipse&lt;/A&gt;&amp;nbsp; for an overview with different methods.&lt;/P&gt;&lt;P&gt;There is an option in the compiler settings:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/89974iEBC6BA473072FE45/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Instead of using the diassembly listing files, you can use the Disassembly view in the debugger while debugging.&lt;/P&gt;&lt;P&gt;For hard faults, I recommend to install a special hard fault handler. Articles on that subject:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/" title="https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/"&gt;Debugging Hard Faults on ARM Cortex-M | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2013/01/13/debugging-arm-cortex-m0-hard-fault-with-mtb-trace/" title="https://mcuoneclipse.com/2013/01/13/debugging-arm-cortex-m0-hard-fault-with-mtb-trace/"&gt;Debugging ARM Cortex-M0+ Hard Fault with MTB Trace | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2015/07/05/debugging-arm-cortex-m-hard-faults-with-gdb-custom-command/" title="https://mcuoneclipse.com/2015/07/05/debugging-arm-cortex-m-hard-faults-with-gdb-custom-command/"&gt;Debugging ARM Cortex-M Hard Faults with GDB Custom Command | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2012/12/28/a-processor-expert-component-to-help-with-hard-faults/" title="https://mcuoneclipse.com/2012/12/28/a-processor-expert-component-to-help-with-hard-faults/"&gt;A Processor Expert Component to Help with Hard Faults | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2017/01/13/debugging-arm-cortex-m0-hardfaults/" title="https://mcuoneclipse.com/2017/01/13/debugging-arm-cortex-m0-hardfaults/"&gt;Debugging ARM Cortex-M0+ HardFaults | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Jun 2019 06:38:26 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2019-06-29T06:38:26Z</dc:date>
    <item>
      <title>Generating assembly list file in KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Generating-assembly-list-file-in-KDS/m-p/915966#M53596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having a Hard Fault issue with MQX4.2 in the TCP/IP task. I am able to display the exception information (R0 - 3, R12, LR, PC, PSW), but don't know how to find the line that caused the exception since I don't have the assembly list for my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using KDS 3.2 and GNU tools for compiling. How can I generate an assembly list file for my code so I can find where the exception is happening?&lt;/P&gt;&lt;P&gt;Is there another way to find where it is happening in the code without an assembly list file?&lt;/P&gt;&lt;P&gt;I can't step through with the debugger since it happens at random, and not on my test board. It only happens when its in the field at a customer site.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2019 16:43:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Generating-assembly-list-file-in-KDS/m-p/915966#M53596</guid>
      <dc:creator>larrydemuth</dc:creator>
      <dc:date>2019-06-28T16:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Generating assembly list file in KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Generating-assembly-list-file-in-KDS/m-p/915967#M53597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See &lt;A class="link-titled" href="https://mcuoneclipse.com/2018/07/08/creating-disassembly-listings-with-gnu-tools-and-eclipse/" title="https://mcuoneclipse.com/2018/07/08/creating-disassembly-listings-with-gnu-tools-and-eclipse/"&gt;Creating Disassembly Listings with GNU Tools and Eclipse | MCU on Eclipse&lt;/A&gt;&amp;nbsp; for an overview with different methods.&lt;/P&gt;&lt;P&gt;There is an option in the compiler settings:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/89974iEBC6BA473072FE45/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Instead of using the diassembly listing files, you can use the Disassembly view in the debugger while debugging.&lt;/P&gt;&lt;P&gt;For hard faults, I recommend to install a special hard fault handler. Articles on that subject:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/" title="https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/"&gt;Debugging Hard Faults on ARM Cortex-M | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2013/01/13/debugging-arm-cortex-m0-hard-fault-with-mtb-trace/" title="https://mcuoneclipse.com/2013/01/13/debugging-arm-cortex-m0-hard-fault-with-mtb-trace/"&gt;Debugging ARM Cortex-M0+ Hard Fault with MTB Trace | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2015/07/05/debugging-arm-cortex-m-hard-faults-with-gdb-custom-command/" title="https://mcuoneclipse.com/2015/07/05/debugging-arm-cortex-m-hard-faults-with-gdb-custom-command/"&gt;Debugging ARM Cortex-M Hard Faults with GDB Custom Command | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2012/12/28/a-processor-expert-component-to-help-with-hard-faults/" title="https://mcuoneclipse.com/2012/12/28/a-processor-expert-component-to-help-with-hard-faults/"&gt;A Processor Expert Component to Help with Hard Faults | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2017/01/13/debugging-arm-cortex-m0-hardfaults/" title="https://mcuoneclipse.com/2017/01/13/debugging-arm-cortex-m0-hardfaults/"&gt;Debugging ARM Cortex-M0+ HardFaults | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jun 2019 06:38:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Generating-assembly-list-file-in-KDS/m-p/915967#M53597</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2019-06-29T06:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Generating assembly list file in KDS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Generating-assembly-list-file-in-KDS/m-p/915968#M53598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I tried checking the "Generate assembler listing" option&amp;nbsp;but it created a file called $@.lst and would overwrite it for each file. I had to go into each file individually and put this in for each one with the filename instead of $@. Not sure why it wouldn't replace the $@ with the filename automatically. Anyway, I got list files for hopefully the right file and will send the code to the customer and see what happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will update when I find the bug if its in MQX 4.2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jun 2019 12:44:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Generating-assembly-list-file-in-KDS/m-p/915968#M53598</guid>
      <dc:creator>larrydemuth</dc:creator>
      <dc:date>2019-06-29T12:44:34Z</dc:date>
    </item>
  </channel>
</rss>

