<?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>MCU BootloaderのトピックUsing blfwkdll from C# application</title>
    <link>https://community.nxp.com/t5/MCU-Bootloader/Using-blfwkdll-from-C-application/m-p/652524#M302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I plan on using PInvoke in my C#.NET application to call methods in the blfwkdll.dll. &amp;nbsp;The end goal is&amp;nbsp;to integrate the most basically functionality of the KinetisFlashTool into the C# application.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've come here to ask if the PInvoke signatures are already known and can be provided, or/and if a C# app has been created that demonstrates using PInvoke to call blfwkdll.dll. &amp;nbsp;It would end up saving a lot of time if this information was easily available. &amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, since we'll be using the blfwkdll.dll in our C# project, can you tell me, in short, what I need to include with my application when it is deployed? &amp;nbsp;Do I just need to provide a license.txt, or are there other requirements that need to be met as well.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2016 15:51:33 GMT</pubDate>
    <dc:creator>kevinlfw</dc:creator>
    <dc:date>2016-10-19T15:51:33Z</dc:date>
    <item>
      <title>Using blfwkdll from C# application</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Using-blfwkdll-from-C-application/m-p/652524#M302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I plan on using PInvoke in my C#.NET application to call methods in the blfwkdll.dll. &amp;nbsp;The end goal is&amp;nbsp;to integrate the most basically functionality of the KinetisFlashTool into the C# application.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've come here to ask if the PInvoke signatures are already known and can be provided, or/and if a C# app has been created that demonstrates using PInvoke to call blfwkdll.dll. &amp;nbsp;It would end up saving a lot of time if this information was easily available. &amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, since we'll be using the blfwkdll.dll in our C# project, can you tell me, in short, what I need to include with my application when it is deployed? &amp;nbsp;Do I just need to provide a license.txt, or are there other requirements that need to be met as well.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 15:51:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Using-blfwkdll-from-C-application/m-p/652524#M302</guid>
      <dc:creator>kevinlfw</dc:creator>
      <dc:date>2016-10-19T15:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using blfwkdll from C# application</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Using-blfwkdll-from-C-application/m-p/652525#M303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;blfwkdll.dll has C++ interface. Usually P/Invoke requires C interface because C++ interface uses mangled names and class invocations. Basically, you are not going to get anywhere with this unless you write a pure C wrapper first or use managed C++ instead of C#.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 23:01:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Using-blfwkdll-from-C-application/m-p/652525#M303</guid>
      <dc:creator>alexfeinman</dc:creator>
      <dc:date>2016-11-10T23:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using blfwkdll from C# application</title>
      <link>https://community.nxp.com/t5/MCU-Bootloader/Using-blfwkdll-from-C-application/m-p/652526#M304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed the blfwkdll.dll source code to encapsulate all the state/object information into a single function which performs the tasks, like flashing firmware, with one call.&amp;nbsp; I used depends.exe to determine what the mangled names of the functions were and call the methods using P/Invoke.&amp;nbsp; Even the progress callback works well and have not run into any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If one doesn't want to edit blfwkdll source, then they&amp;nbsp;can write a C++/CLI library that will allow you do to things like create an instance of an object and call its functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2016 16:31:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCU-Bootloader/Using-blfwkdll-from-C-application/m-p/652526#M304</guid>
      <dc:creator>kevinlfw</dc:creator>
      <dc:date>2016-11-17T16:31:56Z</dc:date>
    </item>
  </channel>
</rss>

