<?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 disassembly failure in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/disassembly-failure/m-p/153460#M3802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using CW10, I tried disassembling some legacy assembler code that requires the -Ci (Case insensitivity on label name) setting. &amp;nbsp;Once that is set, the code will assemble just fine; CTRL-B to build the project works. &amp;nbsp;However, selecting Disassemble by right-clicking on the file itself, when it's open in the editor, fails spectacularly, complaining "No Disassembly: Processor unknown. To disassemble, specify the processor with the -proc option."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone found a work-around for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Oct 2010 11:29:14 GMT</pubDate>
    <dc:creator>Richly</dc:creator>
    <dc:date>2010-10-07T11:29:14Z</dc:date>
    <item>
      <title>disassembly failure</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/disassembly-failure/m-p/153460#M3802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using CW10, I tried disassembling some legacy assembler code that requires the -Ci (Case insensitivity on label name) setting. &amp;nbsp;Once that is set, the code will assemble just fine; CTRL-B to build the project works. &amp;nbsp;However, selecting Disassemble by right-clicking on the file itself, when it's open in the editor, fails spectacularly, complaining "No Disassembly: Processor unknown. To disassemble, specify the processor with the -proc option."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone found a work-around for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 11:29:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/disassembly-failure/m-p/153460#M3802</guid>
      <dc:creator>Richly</dc:creator>
      <dc:date>2010-10-07T11:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: disassembly failure</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/disassembly-failure/m-p/153461#M3803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The decoder (used to disassemble) falls back to disassemble a file as binary blob when it does not recognize it, for example&lt;/P&gt;&lt;P&gt;when you are decoding garbage (or a source file, same thing for the decoder :smileyhappy: ).&lt;/P&gt;&lt;P&gt;So which file are you decoding? Is the extension known in eclipse?&lt;/P&gt;&lt;P&gt;As workaround you can also decode the object or application elf file instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked for me for *.s/*.asm files, it did not detect *.S as assembly files at all though. *.S files where not built and also the disassembly context menu was disabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 22:34:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/disassembly-failure/m-p/153461#M3803</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2010-10-07T22:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: disassembly failure</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/disassembly-failure/m-p/153462#M3804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The disassembler works fine on the source files I've tried unless the file requires the -Ci (ignore case of labels) flag.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The legacy code I'm working with (some of it decades old) is pretty cavalier about case, so a label like READKEY may be referred to as ReadKey in some places. &amp;nbsp;The code will assemble just fine when the -Ci flag is present, but it does not disassemble.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to see this for yourself, let CW10 create a new project for something like the MC9S08SH16, and select the relocatable assembly option. &amp;nbsp;Build&amp;nbsp;the project (CTRL-B); it works.&amp;nbsp;Look at the automatically generated assembly file (asm_main.asm)&amp;nbsp;in the editor and right click. Select disassemble. &amp;nbsp;It works. &amp;nbsp;Now set the assembler to ignore the case of labels (see below) and add the line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;BRA &amp;nbsp;ASM_MAIN&lt;/P&gt;&lt;P&gt;just before the RTS line in the file asm_main.asm. &amp;nbsp;The program will still assemble when you build the project (CTRL-B), but it won't disassemble. &amp;nbsp;In fact, the result is fairly ugly. &amp;nbsp;Scroll to the bottom and you'll see the somewhat bizarre&amp;nbsp;comment that it can't disassemble because it doesn't know what the processor is! &amp;nbsp;This is the issue I'm asking about.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Richly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To set the assembler to ignore case, right-click on any .asm file in the CodeWarrior Projects window and select Properties. &amp;nbsp;Expand the C/C++ Build branch of the tree and select Settings. &amp;nbsp;In the Tool Settings tab of the panel that appears, select the Language option of the HCS08 Assembler node. &amp;nbsp;Check the first option, Case insensitivity on label name (-Ci), and then click OK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Oct 2010 11:48:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/disassembly-failure/m-p/153462#M3804</guid>
      <dc:creator>Richly</dc:creator>
      <dc:date>2010-10-10T11:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: disassembly failure</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/disassembly-failure/m-p/153463#M3805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like you need to file a service request on this problem. Click &lt;A href="https://www.freescale.com/webapp/servicerequest.create_SR.framework" rel="nofollow" target="_self"&gt;here&lt;/A&gt; to do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 19:35:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/disassembly-failure/m-p/153463#M3805</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2010-10-11T19:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: disassembly failure</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/disassembly-failure/m-p/153464#M3806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. &amp;nbsp;I'd already filed a service request but was hoping that someone has a workaround that works. &amp;nbsp;The response so far from tech support has not been helpful. &amp;nbsp;They suggested making changes to the MCUinit.* files, which did nothing for the original problem disassembling asm_main.asm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 11:21:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/disassembly-failure/m-p/153464#M3806</guid>
      <dc:creator>Richly</dc:creator>
      <dc:date>2010-10-12T11:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: disassembly failure</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/disassembly-failure/m-p/153465#M3807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First: thanks for reporting that problem, and indeed I can confirm it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked into this issue, and the thing is: the option you have set 'per file' is not passed/handled by the disassembly menu command. What happens is that the first the file gets compiled/assembled, and then the resulting object file gets decoded to print the listing. The issue is that the -Ci option is not passed to the assembler: the assembler fails with an error. The other issue is that the decoder is not checking the error code from the assembler, and finally shows the assembler text output as hex listing (this is what you see).&lt;/P&gt;&lt;P&gt;You can see this behaviour in the Console View (you&amp;nbsp; might need to change the view showing the 'Disassembler' console).&lt;/P&gt;&lt;P&gt;I will log an issue about above so this could hopefully be fixed for a next release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I suggest you to use as workaround: Specify the -Ci option as 'global' option for the project (not per file) for now. This will assemble all files with the -Ci option, and hopefully this is not a problem for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 13:47:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/disassembly-failure/m-p/153465#M3807</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2010-10-12T13:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: disassembly failure</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/disassembly-failure/m-p/153466#M3808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, BK. &amp;nbsp;That's it! &amp;nbsp;You've solved my problem. &amp;nbsp;I'm perfectly happy to use the -Ci option for the project. I assume it doesn't apply to C programs, just the assembly language programs, but that's just exactly what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Richly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 14:18:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/disassembly-failure/m-p/153466#M3808</guid>
      <dc:creator>Richly</dc:creator>
      <dc:date>2010-10-12T14:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: disassembly failure</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/disassembly-failure/m-p/153467#M3809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;glad that this works for you.&lt;/P&gt;&lt;P&gt;And yes: as you specify the -Ci option only for the assembler, it only applies to assembly files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 14:23:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/disassembly-failure/m-p/153467#M3809</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2010-10-12T14:23:41Z</dc:date>
    </item>
  </channel>
</rss>

