<?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>S12 / MagniV MicrocontrollersのトピックRe: USB-BDM issue with Flash on 9S12</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/USB-BDM-issue-with-Flash-on-9S12/m-p/127703#M734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Mike,&lt;BR /&gt;&lt;BR /&gt;Your last post was kind of confusing to follow, but I'll take another stab at what might be occuring.&lt;BR /&gt;&lt;BR /&gt;Assuming that your programming routines work fine in normal user modes (without BDM pod connected following a device reset). The case may be that in special modes (BDM active, when you have CW debugger open and the device is waiting for a "go" command) that your programming routines choke when you hit F5 because you have a memory window open in the CW debugger. I have seen some cases where you get a memory violation because the user code is writing to flash memory in the same physical flash block that the debugger memory window is refreshing, therefore performing an illegal read-while-write in the same physical flash block. Try closing the memory windows and see if you can run your code within the debugger without it crashing.&lt;BR /&gt;&lt;BR /&gt;Ok, this might be a stab in the dark, but you never know...its happened before.&lt;P&gt;Message Edited by EMontanez on &lt;SPAN class="date_text"&gt;03-08-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;01:39 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Mar 2006 03:39:00 GMT</pubDate>
    <dc:creator>EMontanez</dc:creator>
    <dc:date>2006-03-09T03:39:00Z</dc:date>
    <item>
      <title>USB-BDM issue with Flash on 9S12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/USB-BDM-issue-with-Flash-on-9S12/m-p/127699#M730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I'm using the USB-BDM pod to develope on a 9S12 platform and have an interesting error.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Sometimes my program will 'hang' when I try to update the flash data from within my program.&amp;nbsp; (My program uses one of the flash pages as a data area).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Now, I'm not 100% sure, but I'm PRETTY sure this happens AFTER I program the flash with new code, and when I hit &amp;lt;F5&amp;gt; to execute, I get an illegal BP or some other kind of error.&amp;nbsp; I can usually just ICD-12 then reset and then Run restart and the code executes fine, inializing the board and running.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Until I get to where I try to write some&amp;nbsp;flash data&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Now, I didn't use my old LPT based BDM-MultiLink that much before I changed over to the USB-BDM pod, but it seems to me the USB-BDM pod has some 'issues'.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Anyone else seeing these kinds of things?&lt;BR /&gt;&lt;BR /&gt;Mike Yetsko&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2006 00:13:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/USB-BDM-issue-with-Flash-on-9S12/m-p/127699#M730</guid>
      <dc:creator>mke_et</dc:creator>
      <dc:date>2006-03-02T00:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: USB-BDM issue with Flash on 9S12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/USB-BDM-issue-with-Flash-on-9S12/m-p/127700#M731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Mike,&lt;BR /&gt;&lt;BR /&gt;Is the program that executes the data writes in flash executing out of flash memory as well?&lt;BR /&gt;&lt;BR /&gt;I can see you having issues reading out of flash (program executing) while writing to flash if you are using memory in the same flash block.&lt;BR /&gt;&lt;BR /&gt;Overall, from reading your post I cannot pin point why the USB BDM would be the culprit. I would suggest double checking that you are choosing flash memory to write your data in another flash block than the one executing the writes.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2006 00:58:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/USB-BDM-issue-with-Flash-on-9S12/m-p/127700#M731</guid>
      <dc:creator>EMontanez</dc:creator>
      <dc:date>2006-03-09T00:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: USB-BDM issue with Flash on 9S12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/USB-BDM-issue-with-Flash-on-9S12/m-p/127701#M732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Just read a few more threads and it looks like you had a similar thread already posted where you got some help and resolved this issue. :smileyhappy:&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2006 01:14:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/USB-BDM-issue-with-Flash-on-9S12/m-p/127701#M732</guid>
      <dc:creator>EMontanez</dc:creator>
      <dc:date>2006-03-09T01:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: USB-BDM issue with Flash on 9S12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/USB-BDM-issue-with-Flash-on-9S12/m-p/127702#M733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;99% of my flash issues are resolved.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;However, I STILL see the error with the USB-BDM, and if I get that then I'm 99% certain a failure trying to write to the flash will occur.&amp;nbsp; If I just exit the debugger, and power cycle the target platform, it will run just fine, updating the flash as it should.&amp;nbsp; That right there shows me the problem does not appear to be in my routines.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If I am programming the code space with the BDM by hitting F5 from CW, the error seems to be the USB-BDM chokes AFTER it thinks it programs the part and&amp;nbsp;I then&amp;nbsp;hit F5 from the debug screen to start execution.&amp;nbsp; It&amp;nbsp;will not 'start' the CPU correctly.&amp;nbsp; Once that happens, if I use the reset from the debug screen to&amp;nbsp;the BDM and restart, the code will start and run, UP TO the point where it tries to write to flash, and then it hangs.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If hitting F5 from the debug screen starts the CPU correctly, then the CPU will continue to run and the flash can be programmed correctly.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The 'break point' is what happens AFTER the CPU is programmed and BEFORE&lt;/DIV&gt;&lt;DIV&gt;the F5 key is hit to 'run'.&amp;nbsp; If it gets by that then it runs fine.&amp;nbsp; If I have to 'kludge' past that with manual intervention, then it will fail later.&amp;nbsp; If I have to kludge past that and I do it by a power-cycle of the target (and blow off the BDM and debug capability) then it will run fine.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Mike&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2006 02:20:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/USB-BDM-issue-with-Flash-on-9S12/m-p/127702#M733</guid>
      <dc:creator>mke_et</dc:creator>
      <dc:date>2006-03-09T02:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: USB-BDM issue with Flash on 9S12</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/USB-BDM-issue-with-Flash-on-9S12/m-p/127703#M734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Mike,&lt;BR /&gt;&lt;BR /&gt;Your last post was kind of confusing to follow, but I'll take another stab at what might be occuring.&lt;BR /&gt;&lt;BR /&gt;Assuming that your programming routines work fine in normal user modes (without BDM pod connected following a device reset). The case may be that in special modes (BDM active, when you have CW debugger open and the device is waiting for a "go" command) that your programming routines choke when you hit F5 because you have a memory window open in the CW debugger. I have seen some cases where you get a memory violation because the user code is writing to flash memory in the same physical flash block that the debugger memory window is refreshing, therefore performing an illegal read-while-write in the same physical flash block. Try closing the memory windows and see if you can run your code within the debugger without it crashing.&lt;BR /&gt;&lt;BR /&gt;Ok, this might be a stab in the dark, but you never know...its happened before.&lt;P&gt;Message Edited by EMontanez on &lt;SPAN class="date_text"&gt;03-08-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;01:39 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2006 03:39:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/USB-BDM-issue-with-Flash-on-9S12/m-p/127703#M734</guid>
      <dc:creator>EMontanez</dc:creator>
      <dc:date>2006-03-09T03:39:00Z</dc:date>
    </item>
  </channel>
</rss>

