<?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>CONFIG_NRFX_SPIM1 was assigned the value y, but got the value n. Missing dependencies:n</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103537/config_nrfx_spim1-was-assigned-the-value-y-but-got-the-value-n-missing-dependencies-n</link><description>Hi, I created an nrfx spim instance referring to the nrfx_spim example on GitHub, but I&amp;#39;m having a problem. 
 
 I added it to the prj.conf file as follows. 
 
 Is there anything I didn&amp;#39;t know and left out?? 
 thank you</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Sep 2023 03:43:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103537/config_nrfx_spim1-was-assigned-the-value-y-but-got-the-value-n-missing-dependencies-n" /><item><title>RE: CONFIG_NRFX_SPIM1 was assigned the value y, but got the value n. Missing dependencies:n</title><link>https://devzone.nordicsemi.com/thread/447329?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 03:43:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb1cad7e-ea37-4252-8544-9e624bc471b0</guid><dc:creator>Kinbay</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can I know how to get the device note from devicetree&lt;/p&gt;
&lt;p&gt;I tried to get the device note below and the compile failed.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define SPI_NODE	DT_NODELABEL(spi1)
const struct device *const dev = DEVICE_DT_GET(SPI_NODE);
struct spi_cs_control cs_ctrl = (struct spi_cs_control){
    .gpio = GPIO_DT_SPEC_GET(SPI_NODE, cs_gpios),
    .delay = 0u,
};

struct spi_config config = {
    .operation = SPI_OP_MODE_MASTER 
                | SPI_WORD_SET(8) 
                ,
	.slave = 0,
	.cs = &amp;amp;cs_ctrl,
};

int32_t spi_write(void* tx_buff, size_t length)
{
	struct spi_buf tx_buf[1] = {
		{.buf = tx_buff, .len = length},
	};
	struct spi_buf_set tx_set = { .buffers = tx_buf, .count = 1 };
    spi_write(dev, &amp;amp;config, &amp;amp;tx_set);
}
&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_NRFX_SPIM1 was assigned the value y, but got the value n. Missing dependencies:n</title><link>https://devzone.nordicsemi.com/thread/445593?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 10:38:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28930da2-a7b7-4fd2-9232-1d26a654cb80</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is something strange with&amp;nbsp;your build/project that does not pick up the overlay properly. Try deleting all your build folders and regenerate the project.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a minimal sample that enables NRFX_SPIM1 on nrf52dk_nrf52832:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3731.hello_5F00_world_5F00_nrfx_5F00_spim1.zip"&gt;devzone.nordicsemi.com/.../3731.hello_5F00_world_5F00_nrfx_5F00_spim1.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_NRFX_SPIM1 was assigned the value y, but got the value n. Missing dependencies:n</title><link>https://devzone.nordicsemi.com/thread/445576?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 09:36:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:620a0dd4-5488-42c9-bcc8-de821f2a92a1</guid><dc:creator>JILUNGIE</dc:creator><description>&lt;p&gt;An error occurs when executing the build as shown below.&lt;/p&gt;
&lt;p&gt;FAILED: CMakeFiles/app.dir/src/main.c.obj &lt;br /&gt;C:\ncs\toolchains\31f4403e35\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF52832_XXAA -DUSE_PARTITION_MANAGER=0 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.4.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.4.0/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/ncs/v2.4.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.4.0/nrf/include -IC:/ncs/v2.4.0/nrf/tests/include -IC:/ncs/v2.4.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.4.0/modules/hal/nordic/nrfx -IC:/ncs/v2.4.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.4.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.4.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.4.0/modules/debug/segger/SEGGER -IC:/ncs/v2.4.0/modules/debug/segger/Config -IC:/ncs/v2.4.0/zephyr/modules/segger/. -isystem C:/ncs/v2.4.0/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include -isystem c:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include-fixed -fno-strict-aliasing -Og -imacros E:/testhere/spitest/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs --sysroot=C:/ncs/toolchains/31f4403e35/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.4.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 -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=E:/testhere/spitest=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.4.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.4.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c ../src/main.c&lt;br /&gt;In file included from C:\ncs\v2.4.0\modules\hal\nordic\nrfx\nrfx.h:38,&lt;br /&gt; from c:\ncs\v2.4.0\zephyr\soc\arm\nordic_nrf\common\soc_nrf_common.h:14,&lt;br /&gt; from C:\ncs\v2.4.0\zephyr\soc\arm\nordic_nrf\nrf52\soc.h:14,&lt;br /&gt; from C:\ncs\v2.4.0\zephyr\include\zephyr\arch\arm\aarch32\cortex_m\cmsis.h:19,&lt;br /&gt; from C:\ncs\v2.4.0\zephyr\include\zephyr\arch\arm\aarch32\mpu\arm_mpu_v7m.h:11,&lt;br /&gt; from C:\ncs\v2.4.0\zephyr\include\zephyr\arch\arm\aarch32\mpu\arm_mpu.h:14,&lt;br /&gt; from C:\ncs\v2.4.0\zephyr\include\zephyr\arch\arm\aarch32\arch.h:266,&lt;br /&gt; from C:\ncs\v2.4.0\zephyr\include\zephyr\arch\cpu.h:19,&lt;br /&gt; from C:\ncs\v2.4.0\zephyr\include\zephyr\kernel_includes.h:33,&lt;br /&gt; from C:\ncs\v2.4.0\zephyr\include\zephyr\kernel.h:17,&lt;br /&gt; from e:\testhere\spitest\src\main.c:7:&lt;br /&gt;C:\ncs\v2.4.0\modules\hal\nordic\nrfx\drivers\include\nrfx_spim.h:84:35: error: &amp;#39;NRFX_SPIM1_INST_IDX&amp;#39; undeclared here (not in a function); did you mean &amp;#39;NRF_SPIM_INST_GET&amp;#39;?&lt;br /&gt; 84 | .drv_inst_idx = NRFX_CONCAT_3(NRFX_SPIM, id, _INST_IDX), \&lt;br /&gt; | ^~~~~~~~~&lt;br /&gt;C:\ncs\v2.4.0\modules\hal\nordic\nrfx\drivers\nrfx_common.h:140:37: note: in definition of macro &amp;#39;NRFX_CONCAT_3_&amp;#39;&lt;br /&gt; 140 | #define NRFX_CONCAT_3_(p1, p2, p3) p1 ## p2 ## p3&lt;br /&gt; | ^~&lt;br /&gt;C:\ncs\v2.4.0\modules\hal\nordic\nrfx\drivers\include\nrfx_spim.h:84:21: note: in expansion of macro &amp;#39;NRFX_CONCAT_3&amp;#39;&lt;br /&gt; 84 | .drv_inst_idx = NRFX_CONCAT_3(NRFX_SPIM, id, _INST_IDX), \&lt;br /&gt; | ^~~~~~~~~~~~~&lt;br /&gt;e:\testhere\spitest\src\main.c:68:24: note: in expansion of macro &amp;#39;NRFX_SPIM_INSTANCE&amp;#39;&lt;br /&gt; 68 | nrfx_spim_t spi_inst = NRFX_SPIM_INSTANCE(SPIM_INST_IDX);&lt;br /&gt; | ^~~~~~~~~~~~~~~~~~&lt;br /&gt;In file included from e:\testhere\spitest\src\main.c:11:&lt;br /&gt;../src/main.c: In function &amp;#39;spi_init&amp;#39;:&lt;br /&gt;C:\ncs\v2.4.0\modules\hal\nordic\nrfx\hal\nrf_spim.h:71:37: warning: conversion from &amp;#39;unsigned int&amp;#39; to &amp;#39;unsigned char&amp;#39; changes value from &amp;#39;4294967295&amp;#39; to &amp;#39;255&amp;#39; [-Woverflow]&lt;br /&gt; 71 | #define NRF_SPIM_PIN_NOT_CONNECTED 0xFFFFFFFF&lt;br /&gt; | ^~~~~~~~~~&lt;br /&gt;C:\ncs\v2.4.0\modules\hal\nordic\nrfx\drivers\include\nrfx_spim.h:194:23: note: in definition of macro &amp;#39;NRFX_SPIM_DEFAULT_CONFIG&amp;#39;&lt;br /&gt; 194 | .ss_pin = _pin_ss, \&lt;br /&gt; | ^~~~~~~&lt;br /&gt;e:\testhere\spitest\src\main.c:73:21: note: in expansion of macro &amp;#39;NRF_SPIM_PIN_NOT_CONNECTED&amp;#39;&lt;br /&gt; 73 | 13, 14, 12, NRF_SPIM_PIN_NOT_CONNECTED);&lt;br /&gt; | ^~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;../src/main.c: In function &amp;#39;ads1291_command&amp;#39;:&lt;br /&gt;e:\testhere\spitest\src\main.c:104:5: warning: implicit declaration of function &amp;#39;nrfx_spi_xfer&amp;#39;; did you mean &amp;#39;nrfx_spim_xfer&amp;#39;? [-Wimplicit-function-declaration]&lt;br /&gt; 104 | nrfx_spi_xfer(spi, &amp;amp;spi_xfer_desc, 0);&lt;br /&gt; | ^~~~~~~~~~~~~&lt;br /&gt; | nrfx_spim_xfer&lt;br /&gt;../src/main.c: In function &amp;#39;main&amp;#39;:&lt;br /&gt;e:\testhere\spitest\src\main.c:191:13: warning: unused variable &amp;#39;reg&amp;#39; [-Wunused-variable]&lt;br /&gt; 191 | uint8_t reg = 0;&lt;br /&gt; | ^~~&lt;br /&gt;e:\testhere\spitest\src\main.c:190:13: warning: unused variable &amp;#39;whoami&amp;#39; [-Wunused-variable]&lt;br /&gt; 190 | uint8_t whoami = 0;&lt;br /&gt; | ^~~~~~&lt;br /&gt;../src/main.c: At top level:&lt;br /&gt;e:\testhere\spitest\src\main.c:122:16: warning: &amp;#39;ads1291_read_reg&amp;#39; defined but not used [-Wunused-function]&lt;br /&gt; 122 | static int32_t ads1291_read_reg(uint8_t reg, uint8_t *data, uint8_t len)&lt;br /&gt; | ^~~~~~~~~~~~~~~~&lt;br /&gt;e:\testhere\spitest\src\main.c:78:16: warning: &amp;#39;ads1291_command&amp;#39; defined but not used [-Wunused-function]&lt;br /&gt; 78 | static int32_t ads1291_command(uint8_t cmd, uint8_t *data, uint8_t len)&lt;br /&gt; | ^~~~~~~~~~~~~~~&lt;br /&gt;e:\testhere\spitest\src\main.c:70:13: warning: &amp;#39;spi_init&amp;#39; defined but not used [-Wunused-function]&lt;br /&gt; 70 | static void spi_init(void)&lt;br /&gt; | ^~~~~~~~&lt;br /&gt;e:\testhere\spitest\src\main.c:61:29: warning: &amp;#39;spi0_dev&amp;#39; defined but not used [-Wunused-variable]&lt;br /&gt; 61 | static const struct device *spi0_dev = DEVICE_DT_GET(SPI0_NODE);&lt;br /&gt; | ^~~~~~~~&lt;br /&gt;[61/156] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj&lt;br /&gt;[62/156] Linking C static library zephyr\soc\arm\common\cortex_m\libsoc__arm__common__cortex_m.a&lt;br /&gt;[63/156] Linking C static library zephyr\lib\libc\minimal\liblib__libc__minimal.a&lt;br /&gt;[64/156] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj&lt;br /&gt;[65/156] Linking C static library zephyr\soc\arm\nordic_nrf\nrf52\libsoc__arm__nordic_nrf__nrf52.a&lt;br /&gt;[66/156] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj&lt;br /&gt;[67/156] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj&lt;br /&gt;[68/156] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj&lt;br /&gt;[69/156] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\31f4403e35\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;e:\testhere\spitest\build&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_NRFX_SPIM1 was assigned the value y, but got the value n. Missing dependencies:n</title><link>https://devzone.nordicsemi.com/thread/445151?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 13:01:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:505c9f75-61fe-4b3d-9f7d-ffbfd4471c97</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Can you share the full compiler/cmake error?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_NRFX_SPIM1 was assigned the value y, but got the value n. Missing dependencies:n</title><link>https://devzone.nordicsemi.com/thread/445039?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 03:05:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff279ca8-2597-4924-a256-88995e934fb5</guid><dc:creator>JILUNGIE</dc:creator><description>&lt;p&gt;Thank you for your answer.&lt;br /&gt;.overlay file has added settings for spi1 as shown in the picture below, but the error still occurs.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:347px;max-width:505px;" height="347" src="https://devzone.nordicsemi.com/resized-image/__size/1010x694/__key/communityserver-discussions-components-files/4/pastedimage1694142413215v2.png" width="505" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONFIG_NRFX_SPIM1 was assigned the value y, but got the value n. Missing dependencies:n</title><link>https://devzone.nordicsemi.com/thread/444905?ContentTypeID=1</link><pubDate>Thu, 07 Sep 2023 11:38:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:560cc31d-8957-48a3-9adb-d64c486dad45</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have a .overlay for your board in place?&lt;/p&gt;
&lt;p&gt;It should look something like this, located in my_project/boards/nrf52dk_nrf52832.overlay:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi1 {
    status = &amp;quot;okay&amp;quot;;
    compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
    pinctrl-0 = &amp;lt;&amp;amp;spi1_default&amp;gt;;
    ...rest of configuration
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do you get any complication/cmake errors? If yes, please post these.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>