<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Creating new C file in a Exemple project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119944/creating-new-c-file-in-a-exemple-project</link><description>I&amp;#39;m currently developing a project using the Audio NRF5340 to communicate over BLE. All the modifications I made to the Audio DK app work in VScode with SDK 2.9.0, but recently I wanted to implement GTBS services. So I added a C file and its header. Since</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Apr 2025 10:46:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119944/creating-new-c-file-in-a-exemple-project" /><item><title>RE: Creating new C file in a Exemple project</title><link>https://devzone.nordicsemi.com/thread/530205?ContentTypeID=1</link><pubDate>Wed, 02 Apr 2025 10:46:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a767276f-fa43-4f5a-8cc5-05cba73accc0</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Sorry to hear that this did not work. I reached out to our BLE Audio experts and they inform me that there currently is no support for this. It is work in progress. I would suggest reaching out to your local sales representative to get more information on a timeline.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating new C file in a Exemple project</title><link>https://devzone.nordicsemi.com/thread/529916?ContentTypeID=1</link><pubDate>Tue, 01 Apr 2025 08:13:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:047053bf-2361-4725-be5e-904cdd75100b</guid><dc:creator>Josue Bresson</dc:creator><description>&lt;p&gt;thanks, i did&amp;#39;nt see that but its still does not activate i got this in log :&lt;pre class="ui-code" data-mode="text"&gt;error: BT_HCI_HOST (defined at C:/ncs/v2.9.0/zephyr/subsys/bluetooth/host/Kconfig:35,
subsys/bluetooth\host/Kconfig:35) is assigned in a configuration file, but is not directly user-
configurable (has no prompt). It gets its value indirectly from other symbols. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_BT_HCI_HOST and/or look up BT_HCI_HOST in
the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating new C file in a Exemple project</title><link>https://devzone.nordicsemi.com/thread/529911?ContentTypeID=1</link><pubDate>Tue, 01 Apr 2025 08:04:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e74fb46-154e-4633-9704-50b16ddbf6b9</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;&lt;code&gt;BT_TBS_BEARER_COUNT=1&lt;/code&gt; will not work in the prj.conf, it needs to be &lt;code&gt;CONFIG_&lt;span&gt;BT_TBS_BEARER_COUNT=1&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating new C file in a Exemple project</title><link>https://devzone.nordicsemi.com/thread/529719?ContentTypeID=1</link><pubDate>Mon, 31 Mar 2025 09:30:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:048116fa-8695-4e60-be83-4ada9f124f28</guid><dc:creator>Josue Bresson</dc:creator><description>&lt;p&gt;now i did configure CMake correctly and done the &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/"&gt;nRF Connect SDK fundamentals course&lt;/a&gt; but none of this solve my probleme. &lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;i want to enable &lt;span style="white-space:pre;"&gt;BT_TBS but it won&amp;#39;t work. &lt;br /&gt;&lt;br /&gt;first the option is Greyed out in Kconfig : &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;span style="white-space:pre;"&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1743413412065v3.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;then even if i want to write it by hand it won&amp;#39;t want to activate : &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;span style="white-space:pre;"&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1743413372051v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;any explaintion ?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating new C file in a Exemple project</title><link>https://devzone.nordicsemi.com/thread/528142?ContentTypeID=1</link><pubDate>Thu, 20 Mar 2025 08:00:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d839fe4-0e19-4572-9eb1-10e163eebb29</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Did you try what&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/james168"&gt;James168&lt;/a&gt;&amp;nbsp;suggested? You can find more information in our documentation on&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.1/page/nrf/app_dev/config_and_build/cmake/index.html"&gt;Adding files and configuring CMake&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating new C file in a Exemple project</title><link>https://devzone.nordicsemi.com/thread/528021?ContentTypeID=1</link><pubDate>Wed, 19 Mar 2025 13:38:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1c7e3b1-7085-4478-8847-dd75168b409a</guid><dc:creator>Josue Bresson</dc:creator><description>&lt;p&gt;herre is the terminal : &lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- libmetal version: 1.6.0 (C:/Users/p129807/Main_Project_BLE/nrf5340_audio)
-- Build type:  MinSizeRel
-- Host:    Windows/AMD64
-- Target:  Generic/arm
-- Machine: arm
-- open-amp version: 1.6.1 (C:/ncs/v2.9.0/modules/lib/open-amp/open-amp)
-- Host:    Windows/AMD64
-- Target:  Generic/arm
-- Machine: arm
-- C_FLAGS :  -Wall -Wextra
CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:2133 (message):
  __ASSERT() statements are globally ENABLED


CMake Warning at C:/ncs/v2.9.0/zephyr/CMakeLists.txt:2164 (message):
  

        The CMake build type was set to &amp;#39;MinSizeRel&amp;#39;, but the optimization flag was set to &amp;#39;-Og&amp;#39;.
        This may be intentional and the warning can be turned off by setting the CMake variable &amp;#39;NO_BUILD_TYPE_WARNING&amp;#39;


-- Configuring done
CMake Error at C:/ncs/v2.9.0/zephyr/cmake/modules/extensions.cmake:457 (add_library):
  Cannot find source file:

    //bt_tbs.c
Call Stack (most recent call first):
  C:/ncs/v2.9.0/zephyr/cmake/modules/kernel.cmake:218 (zephyr_library_named)
  C:/ncs/v2.9.0/zephyr/cmake/modules/zephyr_default.cmake:142 (include)
  C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  C:/ncs/v2.9.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
  CMakeLists.txt:13 (find_package)


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
FAILED: build.ninja 
C:\ncs\toolchains\b620d30767\opt\bin\cmake.exe --regenerate-during-build -SC:\Users\p129807\Main_Project_BLE\nrf5340_audio -BC:\Users\p129807\Main_Project_BLE\nrf5340_audio\build_2\nrf5340_audio
ninja: error: rebuilding &amp;#39;build.ninja&amp;#39;: subcommand failed
FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\b620d30767\opt\bin\cmake.EXE&amp;#39; --build C:/Users/p129807/Main_Project_BLE/nrf5340_audio/build_2/nrf5340_audio&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating new C file in a Exemple project</title><link>https://devzone.nordicsemi.com/thread/527988?ContentTypeID=1</link><pubDate>Wed, 19 Mar 2025 10:28:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0af11ee-c803-42f1-aaa7-eca9b33184ad</guid><dc:creator>James168</dc:creator><description>&lt;p&gt;Do you modify CMakeLists.txt?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# NORDIC SDK APP START
target_sources(app PRIVATE
  src/main.c
)
# NORDIC SDK APP END&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating new C file in a Exemple project</title><link>https://devzone.nordicsemi.com/thread/527970?ContentTypeID=1</link><pubDate>Wed, 19 Mar 2025 09:01:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84b50c35-6b0e-4980-8024-1a0b953740b0</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you seen our &lt;a href="https://academy.nordicsemi.com/"&gt;Developer Academy&lt;/a&gt; and the &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/"&gt;nRF Connect SDK fundamentals course&lt;/a&gt;? This is a good course to start with and learn the basics of our NCS.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We recommend looking at build log in the terminal as pointed out by &lt;a href="https://devzone.nordicsemi.com/members/martin-evans"&gt;Martin Evans&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Creating new C file in a Exemple project</title><link>https://devzone.nordicsemi.com/thread/527961?ContentTypeID=1</link><pubDate>Wed, 19 Mar 2025 08:46:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f967f5c1-35a2-4787-9631-1ff1cfb4ef70</guid><dc:creator>Martin Evans</dc:creator><description>&lt;p&gt;Try Click build and see report in TERMINAL instead of wating PROBLEMS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>