<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Kozmotronik Q&amp;A - Recent questions in Computer science</title>
<link>https://ask.kozmotronik.net.tr/index.php?qa=questions&amp;qa_1=computer-science</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to enable GCOV coverage in ESP-IDF</title>
<link>https://ask.kozmotronik.net.tr/index.php?qa=4&amp;qa_1=how-to-enable-gcov-coverage-in-esp-idf</link>
<description>&lt;p&gt;I want to enable the GCOV code coverage for my unit tests. I work in VSCode IDE and I am following &lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.espressif.com/projects/vscode-esp-idf-extension/en/latest/additionalfeatures/coverage.html#esp-idf-coverage&quot;&gt;their instructions&lt;/a&gt; to get the coverage working. But the ESP-IDF does not recognize the &lt;code&gt;app_trace&lt;/code&gt; configuration parameters somehow and if I build the test project, I get the following errors:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Loading defaults file /disk/Projeler/ESP-Components/relay_chn/test_apps/sdkconfig.defaults...
/disk/Projeler/ESP-Components/relay_chn/test_apps/sdkconfig.defaults:5 CONFIG_ESP_TASK_WDT was replaced with CONFIG_ESP_TASK_WDT_INIT
warning: unknown kconfig symbol 'APPTRACE_DEST_UART' assigned to 'y' in /disk/Projeler/ESP-Components/relay_chn/test_apps/sdkconfig.defaults
warning: unknown kconfig symbol 'APPTRACE_DEST_NONE' assigned to 'n' in /disk/Projeler/ESP-Components/relay_chn/test_apps/sdkconfig.defaults
warning: unknown kconfig symbol 'APPTRACE_ENABLE' assigned to 'y' in /disk/Projeler/ESP-Components/relay_chn/test_apps/sdkconfig.defaults
warning: unknown kconfig symbol 'APPTRACE_LOCK_ENABLE' assigned to 'y' in /disk/Projeler/ESP-Components/relay_chn/test_apps/sdkconfig.defaults
warning: unknown kconfig symbol 'APPTRACE_ONPANIC_HOST_FLUSH_TMO' assigned to '-1' in /disk/Projeler/ESP-Components/relay_chn/test_apps/sdkconfig.defaults
warning: unknown kconfig symbol 'APPTRACE_POSTMORTEM_FLUSH_THRESH' assigned to '0' in /disk/Projeler/ESP-Components/relay_chn/test_apps/sdkconfig.defaults
warning: unknown kconfig symbol 'APPTRACE_PENDING_DATA_SIZE_MAX' assigned to '0' in /disk/Projeler/ESP-Components/relay_chn/test_apps/sdkconfig.defaults
warning: unknown kconfig symbol 'APPTRACE_GCOV_ENABLE' assigned to 'y' in /disk/Projeler/ESP-Components/relay_chn/test_apps/sdkconfig.defaults
&lt;/code&gt;&lt;/pre&gt;
&lt;hr&gt;
&lt;p&gt;Here is my &lt;strong&gt;sdkconfig.defults&lt;/strong&gt; file&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# Disable task WDT for tests
CONFIG_ESP_TASK_WDT_INIT=n

# Relay Channel Driver Default Configuration for Testing
# Keep this as short as possible for tests
CONFIG_RELAY_CHN_OPPOSITE_INERTIA_MS=200
CONFIG_RELAY_CHN_COUNT=2
CONFIG_RELAY_CHN_ENABLE_TILTING=y

# App Trace config
CONFIG_APPTRACE_DEST_JTAG=y
CONFIG_APPTRACE_ENABLE=y
CONFIG_APPTRACE_LOCK_ENABLE=y
CONFIG_APPTRACE_ONPANIC_HOST_FLUSH_TMO=-1
CONFIG_APPTRACE_POSTMORTEM_FLUSH_THRESH=0
CONFIG_APPTRACE_PENDING_DATA_SIZE_MAX=0
CONFIG_APPTRACE_GCOV_ENABLE=y
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And here is my &lt;strong&gt;test_apps/main/CMakeLists.txt&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# === These files must be included in any case ===
set(srcs &quot;test_common.c&quot;
         &quot;test_app_main.c&quot;
         &quot;test_relay_chn_core.c&quot;
         &quot;test_relay_chn_listener.c&quot;)

if(CONFIG_RELAY_CHN_ENABLE_TILTING)
    list(APPEND srcs &quot;test_relay_chn_tilt.c&quot;)
endif()

message(STATUS &quot;srcs=${srcs}&quot;)

# In order for the cases defined by `TEST_CASE` to be linked into the final elf,
# the component can be registered as WHOLE_ARCHIVE
idf_component_register(
    SRCS ${srcs}
    INCLUDE_DIRS &quot;.&quot;
    REQUIRES unity relay_chn app_trace
    WHOLE_ARCHIVE
)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;What am I missing?&lt;/p&gt;
</description>
<category>ESP-IDF</category>
<guid isPermaLink="true">https://ask.kozmotronik.net.tr/index.php?qa=4&amp;qa_1=how-to-enable-gcov-coverage-in-esp-idf</guid>
<pubDate>Thu, 24 Jul 2025 09:35:45 +0000</pubDate>
</item>
<item>
<title>How to exit QEMU automatically when target restarts in ESP-IDF</title>
<link>https://ask.kozmotronik.net.tr/index.php?qa=3&amp;qa_1=how-to-exit-qemu-automatically-when-target-restarts-esp-idf</link>
<description>&lt;p&gt;How to exit QEMU programmatically in ESP-IDF when &lt;code&gt;esp_restart&lt;/code&gt; executed?&lt;/p&gt;
&lt;p&gt;I run local tests in qemu using &lt;code&gt;idf.py qemu&lt;/code&gt; command. When qemu finishes running tests, it keeps running. I want it to exit when it finishes the tests. How can I do that?&lt;/p&gt;
</description>
<category>ESP-IDF</category>
<guid isPermaLink="true">https://ask.kozmotronik.net.tr/index.php?qa=3&amp;qa_1=how-to-exit-qemu-automatically-when-target-restarts-esp-idf</guid>
<pubDate>Wed, 23 Jul 2025 20:38:04 +0000</pubDate>
</item>
<item>
<title>How to add relative file links in Github or Gitea editor</title>
<link>https://ask.kozmotronik.net.tr/index.php?qa=1&amp;qa_1=how-to-add-relative-file-links-in-github-or-gitea-editor</link>
<description>&lt;p&gt;I want to add internal file links, e.g. to a source code file that belongs to a specific commit or branch in the comment editor. How could I do that?&lt;/p&gt;
</description>
<category>SCM</category>
<guid isPermaLink="true">https://ask.kozmotronik.net.tr/index.php?qa=1&amp;qa_1=how-to-add-relative-file-links-in-github-or-gitea-editor</guid>
<pubDate>Tue, 22 Jul 2025 21:58:13 +0000</pubDate>
</item>
</channel>
</rss>