<?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: CMSIS-DAP board for planned small form-factor KV3X projects in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CMSIS-DAP-board-for-planned-small-form-factor-KV3X-projects/m-p/644004#M39035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not particularly familiar with Kinetis parts (I'm more of an LPC guy), but I do know a bit about DAPLink from playing around with it, so I'll try to answer some of your questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;1. From what I gather, I should simply be able to isolate the debug circuit from the FRDM-KV31F board, plop it onto its own board, and load firmware from &lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fproducts%2Fsoftware-and-tools%2Frun-time-software%2Fkinetis-software-and-tools%2Fides-for-kinetis-mcus%2Fopensda-serial-and-debug-adapter%3AOPENSDA%23FRDM-KV31F" rel="nofollow" style="color: #5e89c1; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;this&lt;/A&gt; page, using a separate dedicated debugger. Is this correct? Would this work?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you can find an appropriate bootloader firmware, then you should be able to load the normal firmware onto a board that's a copy of the debug circuit, sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;2. The link to the source code points to &lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FARMmbed%2FCMSIS-DAP" rel="nofollow" style="color: #5e89c1; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;this&lt;/A&gt; page, but the CMSIS-DAP project has now been moved and renamed to &lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2Fmbedmicro%2FDAPLink" rel="nofollow" style="color: #5e89c1; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;DAPLink&lt;/A&gt;. If I wanted to modify the source, would I use this project instead, targeting the K20DX?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You probably would want to work with the DAPLink project. In terms of features, it's a struct superset of the old CMSIS-DAP project. I think there may be some CMSIS-DAP targets that never got updated to work with the DAPLink firmware, but I haven't really looked into that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;3. The appendices in &lt;A _jive_internal="true" data-containerid="2019" data-containertype="14" data-content-finding="Community" data-objectid="100720" data-objecttype="102" href="https://community.nxp.com/docs/DOC-100720" style="color: #5e89c1; background-color: transparent; border: 0px; font-weight: inherit; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;this&lt;/A&gt; page demonstrate how to build the CMSIS-DAP application. This suggests that I need to build a specific version of CMSIS-DAP and load it to the interface chip (aka K20DX) for each target I may want to use. Is this correct? Or am I able to flash/debug any Kinetis MCU with this generic interface?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;For the drag'n'drop interface over mass storage, the flash algorithm is baked into each version of CMSIS-DAP/DAPLink firmware, so it will only be able to flash target MCUs that are compatible with the included flash algorithm. If you use the low level DAP interface through your IDE or openocd, you can flash any target that your software supports, regardless of what the drag'n'drop interface targets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't see any existing support for KVxx target chips, but there's documentation on how to add support for new targets:&lt;BR /&gt;&lt;A class="link-titled" href="https://github.com/mbedmicro/DAPLink/blob/master/docs/PORT_TARGET.md" title="https://github.com/mbedmicro/DAPLink/blob/master/docs/PORT_TARGET.md"&gt;DAPLink/PORT_TARGET.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that they also have tools to extract flash algorithms from CMSIS-PACKs for use with DAPLink.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;4. If I wanted to use a different interface chip (in leiu of the K20DX), am I correct in that I should be good to use any of &lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2Fmbedmicro%2FDAPLink%2Ftree%2Fmaster%2Fsource%2Ftarget%2Ffreescale" rel="nofollow" style="color: #5e89c1; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;these&lt;/A&gt; chips? Are there any file size restrictions that I should be aware of when choosing a chip?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, the list you're looking at is a list of targets that DAPLink supports when flashing targets for drag'n'drop. This is the list you would want to look at - it's pretty short, though STM32F103 support is supposed to be landing soon.&lt;BR /&gt;&lt;A class="link-titled" href="https://github.com/mbedmicro/DAPLink/tree/master/records/hic_hal" title="https://github.com/mbedmicro/DAPLink/tree/master/records/hic_hal"&gt;DAPLink/records/hic_hal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to port DAPLink to a new interface chip, it may or may not be too bad depending on how similar it is to one of the existing interface chips. I'm not a DAPLink developer, but off the top of my head, you probably want a chip that has at least 64K flash (preferably 128K - mass storage bootloaders are kind of big), 16K RAM, and support for a lot of USB endpoints (at least 7).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Finally, does there already exist a suggested pinout if I want a single connector to connect an Interface Board (the K20DX) to a target, and have simultaneous UART comms, Debugging capability, and power show up at the Interface?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you find one, let me know :smileysilly:. If you're not using SWO, one common trick is to repurpose the SWO line in a regular 10-pin SWD cable for one UART line back to the debugger.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Apr 2017 06:29:17 GMT</pubDate>
    <dc:creator>devanlai</dc:creator>
    <dc:date>2017-04-27T06:29:17Z</dc:date>
    <item>
      <title>CMSIS-DAP board for planned small form-factor KV3X projects</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CMSIS-DAP-board-for-planned-small-form-factor-KV3X-projects/m-p/644003#M39034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cmsis-dap‌&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently planning on making several projects based around the KV1/3/5 family parts, and was considering making smaller dev boards (similar to Teensy boards) such that I could embed the boards in the projects themselves while iterating through the prototyping process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because of this, I'm wondering how difficult it would be to isolate and create a small CMSIS-DAP board specific to my needs, but there seems to be a whole bunch of information with special conditions sprinkled about, so I figured I'd ask here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My questions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;From what I gather, I should simply be able to isolate the debug circuit from the FRDM-KV31F board, plop it onto its own board, and load firmware from &lt;A href="http://www.nxp.com/products/software-and-tools/run-time-software/kinetis-software-and-tools/ides-for-kinetis-mcus/opensda-serial-and-debug-adapter:OPENSDA#FRDM-KV31F"&gt;this&lt;/A&gt; page, using a separate dedicated debugger. Is this correct? Would this work?&lt;/LI&gt;&lt;LI&gt;The link to the source code points to &lt;A href="https://github.com/ARMmbed/CMSIS-DAP"&gt;this&lt;/A&gt; page, but the CMSIS-DAP project has now been moved and renamed to &lt;A href="https://github.com/mbedmicro/DAPLink"&gt;DAPLink&lt;/A&gt;. If I wanted to modify the source, would I use this project instead, targeting the K20DX?&lt;/LI&gt;&lt;LI&gt;The appendices in &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-100720"&gt;this&lt;/A&gt; page demonstrate how to build the CMSIS-DAP application. This suggests that I need to build a specific version of CMSIS-DAP and load it to the interface chip (aka K20DX) for each target I may want to use. Is this correct? Or am I able to flash/debug any Kinetis MCU with this generic interface?&lt;/LI&gt;&lt;LI&gt;If I wanted to use a different interface chip (in leiu of the K20DX), am I correct in that I should be good to use any of &lt;A href="https://github.com/mbedmicro/DAPLink/tree/master/source/target/freescale"&gt;these&lt;/A&gt; chips? Are there any file size restrictions that I should be aware of when choosing a chip?&lt;/LI&gt;&lt;LI&gt;Finally, does there already exist a suggested pinout if I want a single connector to connect an Interface Board (the K20DX) to a target, and have simultaneous UART comms, Debugging capability, and power show up at the Interface?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Cruz M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 21:59:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CMSIS-DAP-board-for-planned-small-form-factor-KV3X-projects/m-p/644003#M39034</guid>
      <dc:creator>mrcruz</dc:creator>
      <dc:date>2017-04-25T21:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: CMSIS-DAP board for planned small form-factor KV3X projects</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/CMSIS-DAP-board-for-planned-small-form-factor-KV3X-projects/m-p/644004#M39035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not particularly familiar with Kinetis parts (I'm more of an LPC guy), but I do know a bit about DAPLink from playing around with it, so I'll try to answer some of your questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;1. From what I gather, I should simply be able to isolate the debug circuit from the FRDM-KV31F board, plop it onto its own board, and load firmware from &lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fproducts%2Fsoftware-and-tools%2Frun-time-software%2Fkinetis-software-and-tools%2Fides-for-kinetis-mcus%2Fopensda-serial-and-debug-adapter%3AOPENSDA%23FRDM-KV31F" rel="nofollow" style="color: #5e89c1; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;this&lt;/A&gt; page, using a separate dedicated debugger. Is this correct? Would this work?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you can find an appropriate bootloader firmware, then you should be able to load the normal firmware onto a board that's a copy of the debug circuit, sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;2. The link to the source code points to &lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FARMmbed%2FCMSIS-DAP" rel="nofollow" style="color: #5e89c1; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;this&lt;/A&gt; page, but the CMSIS-DAP project has now been moved and renamed to &lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2Fmbedmicro%2FDAPLink" rel="nofollow" style="color: #5e89c1; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;DAPLink&lt;/A&gt;. If I wanted to modify the source, would I use this project instead, targeting the K20DX?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You probably would want to work with the DAPLink project. In terms of features, it's a struct superset of the old CMSIS-DAP project. I think there may be some CMSIS-DAP targets that never got updated to work with the DAPLink firmware, but I haven't really looked into that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;3. The appendices in &lt;A _jive_internal="true" data-containerid="2019" data-containertype="14" data-content-finding="Community" data-objectid="100720" data-objecttype="102" href="https://community.nxp.com/docs/DOC-100720" style="color: #5e89c1; background-color: transparent; border: 0px; font-weight: inherit; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;this&lt;/A&gt; page demonstrate how to build the CMSIS-DAP application. This suggests that I need to build a specific version of CMSIS-DAP and load it to the interface chip (aka K20DX) for each target I may want to use. Is this correct? Or am I able to flash/debug any Kinetis MCU with this generic interface?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;For the drag'n'drop interface over mass storage, the flash algorithm is baked into each version of CMSIS-DAP/DAPLink firmware, so it will only be able to flash target MCUs that are compatible with the included flash algorithm. If you use the low level DAP interface through your IDE or openocd, you can flash any target that your software supports, regardless of what the drag'n'drop interface targets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't see any existing support for KVxx target chips, but there's documentation on how to add support for new targets:&lt;BR /&gt;&lt;A class="link-titled" href="https://github.com/mbedmicro/DAPLink/blob/master/docs/PORT_TARGET.md" title="https://github.com/mbedmicro/DAPLink/blob/master/docs/PORT_TARGET.md"&gt;DAPLink/PORT_TARGET.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that they also have tools to extract flash algorithms from CMSIS-PACKs for use with DAPLink.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;4. If I wanted to use a different interface chip (in leiu of the K20DX), am I correct in that I should be good to use any of &lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2Fmbedmicro%2FDAPLink%2Ftree%2Fmaster%2Fsource%2Ftarget%2Ffreescale" rel="nofollow" style="color: #5e89c1; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;these&lt;/A&gt; chips? Are there any file size restrictions that I should be aware of when choosing a chip?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, the list you're looking at is a list of targets that DAPLink supports when flashing targets for drag'n'drop. This is the list you would want to look at - it's pretty short, though STM32F103 support is supposed to be landing soon.&lt;BR /&gt;&lt;A class="link-titled" href="https://github.com/mbedmicro/DAPLink/tree/master/records/hic_hal" title="https://github.com/mbedmicro/DAPLink/tree/master/records/hic_hal"&gt;DAPLink/records/hic_hal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to port DAPLink to a new interface chip, it may or may not be too bad depending on how similar it is to one of the existing interface chips. I'm not a DAPLink developer, but off the top of my head, you probably want a chip that has at least 64K flash (preferably 128K - mass storage bootloaders are kind of big), 16K RAM, and support for a lot of USB endpoints (at least 7).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Finally, does there already exist a suggested pinout if I want a single connector to connect an Interface Board (the K20DX) to a target, and have simultaneous UART comms, Debugging capability, and power show up at the Interface?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you find one, let me know :smileysilly:. If you're not using SWO, one common trick is to repurpose the SWO line in a regular 10-pin SWD cable for one UART line back to the debugger.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 06:29:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/CMSIS-DAP-board-for-planned-small-form-factor-KV3X-projects/m-p/644004#M39035</guid>
      <dc:creator>devanlai</dc:creator>
      <dc:date>2017-04-27T06:29:17Z</dc:date>
    </item>
  </channel>
</rss>

