<?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: How to add drivers and some code at MCUXpresso for VSC v.26.2 in MCUXpresso for VSCode</title>
    <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/How-to-add-drivers-and-some-code-at-MCUXpresso-for-VSC-v-26-2/m-p/2341860#M523</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/17173"&gt;@ErichStyger&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229957"&gt;@Harry_Zhang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you very much for your advice!&lt;/P&gt;&lt;P&gt;It helps me so much.&lt;/P&gt;&lt;P&gt;I hope it would be good if the documentation on the web will be updated to reflect the most useful content.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Toshi&lt;/P&gt;</description>
    <pubDate>Mon, 30 Mar 2026 00:00:48 GMT</pubDate>
    <dc:creator>KNagai-Private</dc:creator>
    <dc:date>2026-03-30T00:00:48Z</dc:date>
    <item>
      <title>How to add drivers and some code at MCUXpresso for VSC v.26.2</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/How-to-add-drivers-and-some-code-at-MCUXpresso-for-VSC-v-26-2/m-p/2340723#M520</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using MCUXpresso for VSC v.26.2.&lt;/P&gt;&lt;P&gt;I want to add drivers and some application code but I could not find any useful document at NXP's web site.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you tell me any documents and/or tutorial, please?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Toshi&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 04:02:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/How-to-add-drivers-and-some-code-at-MCUXpresso-for-VSC-v-26-2/m-p/2340723#M520</guid>
      <dc:creator>KNagai-Private</dc:creator>
      <dc:date>2026-03-27T04:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to add drivers and some code at MCUXpresso for VSC v.26.2</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/How-to-add-drivers-and-some-code-at-MCUXpresso-for-VSC-v-26-2/m-p/2341057#M521</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/205034"&gt;@KNagai-Private&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can refer to this document.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuxpresso.nxp.com/mcuxsdk/latest/html/gsd/cmake_project_walkthrough.html" target="_blank"&gt;MCUXpresso SDK Projects with NXP CMake Format — MCUXpresso SDK Documentation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 10:05:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/How-to-add-drivers-and-some-code-at-MCUXpresso-for-VSC-v-26-2/m-p/2341057#M521</guid>
      <dc:creator>Harry_Zhang</dc:creator>
      <dc:date>2026-03-27T10:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to add drivers and some code at MCUXpresso for VSC v.26.2</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/How-to-add-drivers-and-some-code-at-MCUXpresso-for-VSC-v-26-2/m-p/2341284#M522</link>
      <description>&lt;P&gt;The way proposed in&amp;nbsp;&lt;A href="https://mcuxpresso.nxp.com/mcuxsdk/latest/html/gsd/cmake_project_walkthrough.html" target="_blank" rel="nofollow noopener noreferrer"&gt;MCUXpresso SDK Projects with NXP CMake Format — MCUXpresso SDK Documentation&lt;/A&gt;&amp;nbsp;has several disadvantages: it depends on custom/proprietary NXP CMake extension, and you only can add files one by one, plus it it ignores the standard CMake way of doing things, e.g. global options are not honored.&lt;/P&gt;&lt;P&gt;A much easier way and what is using standard CMake files and rules is what I prefer, and what I'm using.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;- create in the project root directory a folder for your sources, e.g. name it 'src'&lt;/P&gt;&lt;P&gt;- place all your .c and .h files into that src folder.&lt;/P&gt;&lt;P&gt;- Add the attached CMakeLists.txt into that src folder. It will build a library with all the sources name 'srcLib'&lt;/P&gt;&lt;P&gt;- in your SDK root CMakeLists.txt, you have to add the following line to reference the CMakeLists.txt:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;add_subdirectory&lt;/SPAN&gt;&lt;SPAN&gt;(./src &amp;nbsp;src)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- add the following lines to the root CMakeLists.txt to link with your library:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;target_link_libraries&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;${MCUX_SDK_PROJECT_NAME}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; PUBLIC &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; srcLib &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;# library of src folder&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's it: that way you add your own source files to the SDK, and have full control over it with standard CMake features, and do not depend on any CMake extensions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 14:15:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/How-to-add-drivers-and-some-code-at-MCUXpresso-for-VSC-v-26-2/m-p/2341284#M522</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2026-03-27T14:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to add drivers and some code at MCUXpresso for VSC v.26.2</title>
      <link>https://community.nxp.com/t5/MCUXpresso-for-VSCode/How-to-add-drivers-and-some-code-at-MCUXpresso-for-VSC-v-26-2/m-p/2341860#M523</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/17173"&gt;@ErichStyger&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229957"&gt;@Harry_Zhang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you very much for your advice!&lt;/P&gt;&lt;P&gt;It helps me so much.&lt;/P&gt;&lt;P&gt;I hope it would be good if the documentation on the web will be updated to reflect the most useful content.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Toshi&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 00:00:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-for-VSCode/How-to-add-drivers-and-some-code-at-MCUXpresso-for-VSC-v-26-2/m-p/2341860#M523</guid>
      <dc:creator>KNagai-Private</dc:creator>
      <dc:date>2026-03-30T00:00:48Z</dc:date>
    </item>
  </channel>
</rss>

