<?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>Visual Code issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110588/visual-code-issues</link><description>While using Visual Code I have noticed that: 
 
 First compile always generates errors, which is fine. The error notifications are persistent even after they have been fixed. The only thing that clears these errors is exiting Visual Code and restarting</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Apr 2024 13:44:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110588/visual-code-issues" /><item><title>RE: Visual Code issues</title><link>https://devzone.nordicsemi.com/thread/481309?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 13:44:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02723e05-55f5-4e2d-852d-14411a2c25e9</guid><dc:creator>Evluma</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What you say about using the Zephyr drivers is true, but there are cases where we will want to have finer control over timing and utilize hardware specific to the nRF chips which is not a part of Zephyr. For my development this is not the case but I am sure others will require low level access to nrfx for such things as tight timing and utilization of DPPI/PPI. The DevAcademy courses also reference this particular requirement.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In this thread I am just pointing out places where the supplied examples cause issues and hang up. I can work around these issues. As I come across new &amp;quot;hick-ups&amp;quot; I will post them.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Code issues</title><link>https://devzone.nordicsemi.com/thread/481306?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 13:37:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9a04b4d-a4de-470f-b382-2b763d55182a</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi sorry for the delay.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the clarification. There is some background talk going around at our end regarding the samples.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The response I have gotten on my end is that they should be viewed&amp;nbsp;the following way:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;These samples are available to show how nrfx can be used instead of Zephyr drivers (or shims). They are designed to build using different frameworks including Zephyr and bare metal, which is why this build configuration in Zephyr has its flaws.&lt;/p&gt;
&lt;p&gt;As nrfx is a set of drivers which are os-agnostic and focusing on individual peripherals. Therefor any Zephyr-specific frameworks such as pin control, power management, cache, will never be a part of nrfx. Given this, nrfx is not (and not ment) to be a direct replacement for Zephyr drivers.&lt;/p&gt;
&lt;p&gt;Low Level is on the course of delivering features and functions within Zephyr APIs so hopefully nrfx will once become a hacker’s tool and internal low-level drivers in Low Level.&lt;/p&gt;
&lt;p&gt;Please try use Zephyr drivers first, then nrfx, and unfortunately you will need to manually trigger all Zephyr frameworks such as pin control, power management, cache and any other framework that may be needed.&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Code issues</title><link>https://devzone.nordicsemi.com/thread/480937?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2024 17:42:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1cf4345-9906-42d1-b1c4-7838bdad4911</guid><dc:creator>Evluma</dc:creator><description>&lt;p&gt;Hey thanks for the responses.&amp;nbsp; I am working in 2.6.0 currently but the issues I have seen are in several of the older versions as well. The removal of the error messages seems to be better in 2.6.0 its just delayed, but in 2.6.0 delayed less than the older SDK versions. Perhaps this is a change in VC not the SDK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As to the adding a second build to an existing build,&amp;nbsp;to recreate:&lt;/p&gt;
&lt;p&gt;- use (as an example) tx_rx_non_blocking (TWI sample)&lt;/p&gt;
&lt;p&gt;- create a build for the nrf52dk_nrf52832&lt;/p&gt;
&lt;p&gt;- fix path error, get clean build.&lt;/p&gt;
&lt;p&gt;- add a second build, same as previous, note that there is no need to fix any files as all files will be common&lt;/p&gt;
&lt;p&gt;- hit the build EDIT, and you get the following&amp;nbsp;&lt;/p&gt;
&lt;p&gt;NOTE: I am using build and build_1&lt;/p&gt;
&lt;p&gt;-------------------------------------------------------------------------- &amp;lt;begin&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; * Executing task: nRF Connect: Generate config nrf52840dk_nrf52840 for c:\mySamples\tx_rx_non_blocking_3&lt;/p&gt;
&lt;p&gt;Building tx_rx_non_blocking_3...&lt;br /&gt;&lt;br /&gt;[2/142] Generating include/generated/version.h&lt;br /&gt;-- Zephyr version: 3.5.99 (C:/ncs/v2.6.0/zephyr), build: v3.5.99-ncs1&lt;br /&gt;[41/142] Building C object CMakeFiles/app.dir/main.c.obj&lt;br /&gt;FAILED: CMakeFiles/app.dir/main.c.obj &lt;br /&gt;C:\ncs\toolchains\cf2149caf2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF52840_XXAA -DPICOLIBC_LONG_LONG_PRINTF_SCANF -D_FORTIFY_SOURCE=1 -D_POSIX_C_SOURCE=200809 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/mySamples/tx_rx_non_blocking_3/common -IC:/ncs/v2.6.0/zephyr/include -IC:/mySamples/tx_rx_non_blocking_3/build_1/zephyr/include/generated -IC:/ncs/v2.6.0/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/ncs/v2.6.0/zephyr/soc/common/nordic_nrf/. -IC:/ncs/v2.6.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.6.0/nrf/include -IC:/ncs/v2.6.0/nrf/tests/include -IC:/ncs/v2.6.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.6.0/zephyr/modules/cmsis/. -IC:/ncs/v2.6.0/modules/hal/nordic/nrfx -IC:/ncs/v2.6.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.6.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.6.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.6.0/modules/debug/segger/SEGGER -IC:/ncs/v2.6.0/modules/debug/segger/Config -IC:/ncs/v2.6.0/modules/debug/segger/SEGGER/DebugMon/include -isystem C:/ncs/v2.6.0/zephyr/lib/libc/common/include -isystem C:/ncs/v2.6.0/nrfxlib/crypto/nrf_cc310_platform/include -fno-strict-aliasing -Og -imacros C:/mySamples/tx_rx_non_blocking_3/build_1/zephyr/include/generated/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.6.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/mySamples/tx_rx_non_blocking_3=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.6.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.6.0=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -std=c99 -MD -MT CMakeFiles/app.dir/main.c.obj -MF CMakeFiles\app.dir\main.c.obj.d -o CMakeFiles/app.dir/main.c.obj -c C:/mySamples/tx_rx_non_blocking_3/main.c&lt;br /&gt;In file included from C:/ncs/v2.6.0/modules/hal/nordic/nrfx/nrfx.h:38,&lt;br /&gt; from c:\ncs\v2.6.0\zephyr\soc\arm\nordic_nrf\common\soc_nrf_common.h:14,&lt;br /&gt; from C:/ncs/v2.6.0/zephyr/soc/arm/nordic_nrf/nrf52/soc.h:14,&lt;br /&gt; from c:\ncs\v2.6.0\zephyr\modules\cmsis\cmsis_core_m.h:24,&lt;br /&gt; from c:\ncs\v2.6.0\zephyr\modules\cmsis\cmsis_core.h:10,&lt;br /&gt; from C:/ncs/v2.6.0/zephyr/include/zephyr/arch/arm/mpu/arm_mpu_v7m.h:10,&lt;br /&gt; from C:/ncs/v2.6.0/zephyr/include/zephyr/arch/arm/mpu/arm_mpu.h:14,&lt;br /&gt; from C:/ncs/v2.6.0/zephyr/include/zephyr/arch/arm/arch.h:268,&lt;br /&gt; from C:/ncs/v2.6.0/zephyr/include/zephyr/arch/cpu.h:19,&lt;br /&gt; from C:/ncs/v2.6.0/zephyr/include/zephyr/kernel_includes.h:37,&lt;br /&gt; from C:/ncs/v2.6.0/zephyr/include/zephyr/kernel.h:17,&lt;br /&gt; from C:/ncs/v2.6.0/zephyr/include/zephyr/logging/log_ctrl.h:9,&lt;br /&gt; from C:/mySamples/tx_rx_non_blocking_3/common/nrfx_example.h:38,&lt;br /&gt; from C:/mySamples/tx_rx_non_blocking_3/main.c:34:&lt;br /&gt;C:/ncs/v2.6.0/modules/hal/nordic/nrfx/drivers/include/nrfx_twis.h:71:35: error: &amp;#39;NRFX_TWIS1_INST_IDX&amp;#39; undeclared here (not in a function); did you mean &amp;#39;NRFX_TWIS_INSTANCE&amp;#39;?&lt;br /&gt; 71 | .drv_inst_idx = NRFX_CONCAT_3(NRFX_TWIS, id, _INST_IDX), \&lt;br /&gt; | ^~~~~~~~~&lt;br /&gt;C:/ncs/v2.6.0/modules/hal/nordic/nrfx/drivers/nrfx_common.h:189:36: note: in definition of macro &amp;#39;NRFX_CONCAT_3_&amp;#39;&lt;br /&gt; 189 | #define NRFX_CONCAT_3_(p1, p2, p3) p1 ## p2 ## p3&lt;br /&gt; | ^~&lt;br /&gt;C:/ncs/v2.6.0/modules/hal/nordic/nrfx/drivers/include/nrfx_twis.h:71:21: note: in expansion of macro &amp;#39;NRFX_CONCAT_3&amp;#39;&lt;br /&gt; 71 | .drv_inst_idx = NRFX_CONCAT_3(NRFX_TWIS, id, _INST_IDX), \&lt;br /&gt; | ^~~~~~~~~~~~~&lt;br /&gt;C:/mySamples/tx_rx_non_blocking_3/main.c:88:32: note: in expansion of macro &amp;#39;NRFX_TWIS_INSTANCE&amp;#39;&lt;br /&gt; 88 | static nrfx_twis_t twis_inst = NRFX_TWIS_INSTANCE(TWIS_INST_IDX);&lt;br /&gt; | ^~~~~~~~~~~~~~~~~~&lt;br /&gt;C:/ncs/v2.6.0/modules/hal/nordic/nrfx/drivers/include/nrfx_twim.h:63:35: error: &amp;#39;NRFX_TWIM0_INST_IDX&amp;#39; undeclared here (not in a function); did you mean &amp;#39;NRF_TWIM_INST_GET&amp;#39;?&lt;br /&gt; 63 | .drv_inst_idx = NRFX_CONCAT_3(NRFX_TWIM, id, _INST_IDX), \&lt;br /&gt; | ^~~~~~~~~&lt;br /&gt;C:/ncs/v2.6.0/modules/hal/nordic/nrfx/drivers/nrfx_common.h:189:36: note: in definition of macro &amp;#39;NRFX_CONCAT_3_&amp;#39;&lt;br /&gt; 189 | #define NRFX_CONCAT_3_(p1, p2, p3) p1 ## p2 ## p3&lt;br /&gt; | ^~&lt;br /&gt;C:/ncs/v2.6.0/modules/hal/nordic/nrfx/drivers/include/nrfx_twim.h:63:21: note: in expansion of macro &amp;#39;NRFX_CONCAT_3&amp;#39;&lt;br /&gt; 63 | .drv_inst_idx = NRFX_CONCAT_3(NRFX_TWIM, id, _INST_IDX), \&lt;br /&gt; | ^~~~~~~~~~~~~&lt;br /&gt;C:/mySamples/tx_rx_non_blocking_3/main.c:91:32: note: in expansion of macro &amp;#39;NRFX_TWIM_INSTANCE&amp;#39;&lt;br /&gt; 91 | static nrfx_twim_t twim_inst = NRFX_TWIM_INSTANCE(TWIM_INST_IDX);&lt;br /&gt; | ^~~~~~~~~~~~~~~~~~&lt;br /&gt;In file included from C:/ncs/v2.6.0/zephyr/include/zephyr/arch/arm/irq.h:19,&lt;br /&gt; from C:/ncs/v2.6.0/zephyr/include/zephyr/arch/arm/arch.h:27:&lt;br /&gt;C:/mySamples/tx_rx_non_blocking_3/main.c: In function &amp;#39;main&amp;#39;:&lt;br /&gt;C:/ncs/v2.6.0/modules/hal/nordic/nrfx/drivers/include/nrfx_twim.h:397:55: error: &amp;#39;nrfx_twim_0_irq_handler&amp;#39; undeclared (first use in this function); did you mean &amp;#39;nrfx_twim_evt_handler_t&amp;#39;?&lt;br /&gt; 397 | #define NRFX_TWIM_INST_HANDLER_GET(idx) NRFX_CONCAT_3(nrfx_twim_, idx, _irq_handler)&lt;br /&gt; | ^~~~~~~~~~&lt;br /&gt;C:/ncs/v2.6.0/zephyr/include/zephyr/sw_isr_table.h:201:47: note: in definition of macro &amp;#39;Z_ISR_DECLARE&amp;#39;&lt;br /&gt; 201 | {irq, flags, (void *)&amp;amp;func, (const void *)param}&lt;br /&gt; | ^~~~&lt;/p&gt;
&lt;p&gt;....&lt;/p&gt;
&lt;p&gt;there was more but I could not past it all for some reason&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-------------------------------------------------------------------------- &amp;lt;end&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This has been pretty consistent with the samples&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Code issues</title><link>https://devzone.nordicsemi.com/thread/480832?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2024 08:36:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c28a4753-22da-43de-99b9-25118d213321</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I had a little chat with Johnny and he mentioned a couple of samples. I tested the samples myself and they did not build out of the box outside the folder which they are located in due a relative file path in the overlay. I have reported the issue internally as this is not how it should be.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Code issues</title><link>https://devzone.nordicsemi.com/thread/480573?ContentTypeID=1</link><pubDate>Thu, 25 Apr 2024 06:42:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:867adb7f-931d-449e-b411-1567f6395125</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi Warren&lt;/p&gt;
&lt;p&gt;Which version of NCS and the toolchain are you using? This does not sound like the normal behavior so I hope you can give me a bit more information regarding the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you also show the errors you get and name some of the samples you have seen issues with so I can see if I can reproduce them on my end?&lt;/p&gt;
&lt;p&gt;I would also suggest that you open the nRF Connect terminal in VScode and run &amp;quot;west update&amp;quot;&lt;/p&gt;
&lt;p&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/pastedimage1714027284469v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regarding the errors, is it a error that stops the compiling of the application or is it found in the &amp;quot;Problems&amp;quot; tab in the terminal view in VScode?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Visual Code issues</title><link>https://devzone.nordicsemi.com/thread/480527?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 18:04:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33bf51a3-cc51-490e-8e33-2bd009c7c52f</guid><dc:creator>Evluma</dc:creator><description>&lt;p&gt;Ignore printk issue, this was solved with an overlay change&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>