<?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 Migrating from KL03Z to KL03Z32VFG4 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Migrating-from-KL03Z-to-KL03Z32VFG4/m-p/577939#M34285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&amp;nbsp; I am new to working with the KL03Z and could use some tips.&amp;nbsp; Anything will help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a program working on the KL03Z reference board and am trying to migrate to a custom board with the 16 pin KL03Z32VFG4.&amp;nbsp;&amp;nbsp; I used the debugging trick mentioned in the ref board users guide (cut trace at J6 and hook to J7).&amp;nbsp; This has allowed offboard OpenSDA debugging.&amp;nbsp;&amp;nbsp; I still get "Warning 17927. Target MCU mismatch.", even though I have changed the chip type in properties from KL03Z32VFK4 to VFG4.&amp;nbsp;&amp;nbsp;&amp;nbsp; However, the program seems to be debugging just fine (although a bit slower than the ref board).&amp;nbsp;&amp;nbsp; The problem I have now is that when I call EnableIRQ() my program just hangs.&amp;nbsp; Forcing a break shows signal handler called at 0xfffffff9.&amp;nbsp;&amp;nbsp; If I go back to the ref board, my code runs just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found other similar posts in here where people have changed the processor.S file FOPT register to disable non maskable interrupts.&amp;nbsp;&amp;nbsp; I did this (changed from default of 0x3F to 0x39, but this didn't change anything.&amp;nbsp;&amp;nbsp; I'm not sure what might be happening here.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I found it strange that with the offboard chip, that it does not seem to be running my program when I apply power.&lt;/P&gt;&lt;P&gt;With the reference board, it always runs whatever program I debugged last on power up (even without KDS loaded)&lt;/P&gt;&lt;P&gt;This makes me wonder if the chip is even being flashed correctly?&amp;nbsp; It says "Programmed. Checksum Verification Successful."&amp;nbsp; I must be missing something here.&amp;nbsp; If I could at least program the device and run it without the debugger, I could determine whether my problem is in the code, or a side effect of trying to use the OpenSDA debugger built in to the ref board.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Jul 2016 06:22:04 GMT</pubDate>
    <dc:creator>dan2</dc:creator>
    <dc:date>2016-07-17T06:22:04Z</dc:date>
    <item>
      <title>Migrating from KL03Z to KL03Z32VFG4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Migrating-from-KL03Z-to-KL03Z32VFG4/m-p/577939#M34285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&amp;nbsp; I am new to working with the KL03Z and could use some tips.&amp;nbsp; Anything will help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a program working on the KL03Z reference board and am trying to migrate to a custom board with the 16 pin KL03Z32VFG4.&amp;nbsp;&amp;nbsp; I used the debugging trick mentioned in the ref board users guide (cut trace at J6 and hook to J7).&amp;nbsp; This has allowed offboard OpenSDA debugging.&amp;nbsp;&amp;nbsp; I still get "Warning 17927. Target MCU mismatch.", even though I have changed the chip type in properties from KL03Z32VFK4 to VFG4.&amp;nbsp;&amp;nbsp;&amp;nbsp; However, the program seems to be debugging just fine (although a bit slower than the ref board).&amp;nbsp;&amp;nbsp; The problem I have now is that when I call EnableIRQ() my program just hangs.&amp;nbsp; Forcing a break shows signal handler called at 0xfffffff9.&amp;nbsp;&amp;nbsp; If I go back to the ref board, my code runs just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found other similar posts in here where people have changed the processor.S file FOPT register to disable non maskable interrupts.&amp;nbsp;&amp;nbsp; I did this (changed from default of 0x3F to 0x39, but this didn't change anything.&amp;nbsp;&amp;nbsp; I'm not sure what might be happening here.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I found it strange that with the offboard chip, that it does not seem to be running my program when I apply power.&lt;/P&gt;&lt;P&gt;With the reference board, it always runs whatever program I debugged last on power up (even without KDS loaded)&lt;/P&gt;&lt;P&gt;This makes me wonder if the chip is even being flashed correctly?&amp;nbsp; It says "Programmed. Checksum Verification Successful."&amp;nbsp; I must be missing something here.&amp;nbsp; If I could at least program the device and run it without the debugger, I could determine whether my problem is in the code, or a side effect of trying to use the OpenSDA debugger built in to the ref board.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jul 2016 06:22:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Migrating-from-KL03Z-to-KL03Z32VFG4/m-p/577939#M34285</guid>
      <dc:creator>dan2</dc:creator>
      <dc:date>2016-07-17T06:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating from KL03Z to KL03Z32VFG4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Migrating-from-KL03Z-to-KL03Z32VFG4/m-p/577940#M34286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;First of all, I'd highly recommend you to try again by following the procedure which is from the thread illustrates.&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2015/08/19/using-the-freescale-freedom-frdm-kl43z-to-debug-other-boards/" title="https://mcuoneclipse.com/2015/08/19/using-the-freescale-freedom-frdm-kl43z-to-debug-other-boards/"&gt;https://mcuoneclipse.com/2015/08/19/using-the-freescale-freedom-frdm-kl43z-to-debug-other-boards/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And you just feel free to contact with me if you have any further question about it.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 23:47:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Migrating-from-KL03Z-to-KL03Z32VFG4/m-p/577940#M34286</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-07-18T23:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating from KL03Z to KL03Z32VFG4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Migrating-from-KL03Z-to-KL03Z32VFG4/m-p/577941#M34287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ping, thanks for the response.&amp;nbsp; I double checked the procedure and it looks like I have done it right.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I upgraded to Segger 2.1 OpenSDA to see if it would make a difference.&amp;nbsp;&amp;nbsp; With the Segger OpenSDA, Its able to program and debug the KL03Z-FRDM just fine, but when I go to debug my external board I see the following:&amp;nbsp; 1) chip gets loaded with new code and verification passes&amp;nbsp; 2) halting of the chip works..&amp;nbsp; but 3)It won't stop on line 1 of main()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I force a break, but it goes into assembler. &lt;/P&gt;&lt;P&gt; This is different than what happened with the PE OpenSDA.&amp;nbsp;&amp;nbsp; The PE OpenSDA ran slower, but it would at least get through a large portion of my code up until the point where I enabled the TMR0 IRQ.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a utility I can use to just force the HEX file down into my flash on the external board?&amp;nbsp;&amp;nbsp; At this point, I'm more interested with whether it works or not than debugging.&amp;nbsp;&amp;nbsp; I would assume the same object code should run in a KL03 whether I am using the 24 pin or the 16 provided that I have not used pins that don't exist for the 16 pin package and I have not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 16:44:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Migrating-from-KL03Z-to-KL03Z32VFG4/m-p/577941#M34287</guid>
      <dc:creator>dan2</dc:creator>
      <dc:date>2016-07-20T16:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating from KL03Z to KL03Z32VFG4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Migrating-from-KL03Z-to-KL03Z32VFG4/m-p/577942#M34288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;I'd like to suggest that you can program the KL03 by using the ROM bootloader, and you can learn the more information about it through the link as below.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-104512"&gt;KBOOT learning diary&lt;/A&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 03:28:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Migrating-from-KL03Z-to-KL03Z32VFG4/m-p/577942#M34288</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-07-21T03:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating from KL03Z to KL03Z32VFG4</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Migrating-from-KL03Z-to-KL03Z32VFG4/m-p/577943#M34289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ping,&amp;nbsp;&amp;nbsp; Thank you very much for the KBOOT link.&amp;nbsp; I did not have this info and it looks very useful.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update for everyone on the original issue.&amp;nbsp; We bought a multilink programmer thinking the FRDM debugging unit was the problem.&amp;nbsp; &lt;/P&gt;&lt;P&gt;But, as it turns out, it was not.&amp;nbsp; Our code compiles, downloads, verifies with both programmers through KDS, but it suffers from all kinds of strange issues while debugging. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We then built up a second circuit board with a new chip, and it works with BOTH the FRDM debugger and the multilink. &lt;/P&gt;&lt;P&gt;I suspect the microcontroller on the first board could be damaged somehow.&amp;nbsp; I wish the IDE could have detected that there was a problem somehow and saved us a lot of time, but you live and you learn I guess...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 18:51:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Migrating-from-KL03Z-to-KL03Z32VFG4/m-p/577943#M34289</guid>
      <dc:creator>dan2</dc:creator>
      <dc:date>2016-07-27T18:51:28Z</dc:date>
    </item>
  </channel>
</rss>

