<?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>CONTAINER_OF_VALIDATE fails for UART central sample</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107988/container_of_validate-fails-for-uart-central-sample</link><description>Hi, 
 
 I am developing an application using the ncs-example-application template with the corresponding T2 topology and incorporating some elements from the central_uart sample application. I must have recently updated the version of Zephyr in my workspace</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Feb 2024 17:29:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107988/container_of_validate-fails-for-uart-central-sample" /><item><title>RE: CONTAINER_OF_VALIDATE fails for UART central sample</title><link>https://devzone.nordicsemi.com/thread/467237?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 17:29:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e8e6d32-9f60-41c5-ae79-a7d634443059</guid><dc:creator>WoutWG</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;J&amp;oslash;rgen,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am using nRF Connect SDK, so I&amp;#39;m scratching my head as to why I ended up with Zephyr 3.5.x in my T2 topology. I removed all folders except for my manifest repo and ran west update to download everything again. Now it builds fine again. Just to make sure I don&amp;#39;t run into any unexpected things with uprevs, I fixed NCS version to 2.5.0 in my west.yml file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for helping still,&amp;nbsp;I thought I saw somewhere that NCS 2.5.X supported Zephyr 3.5.x as well, but I must&amp;#39;ve misread. Doing some experiments on my end showed that indeed running even the latest NCS 2.5.2 still uses 3.4.99 for Zephyr.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CONTAINER_OF_VALIDATE fails for UART central sample</title><link>https://devzone.nordicsemi.com/thread/467199?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 14:35:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5d26663-79f9-4eff-a975-1e696e7fa433</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I must have recently&amp;nbsp;updated the version of Zephyr in my workspace to 3.5 from 3.4 because all of a sudden I was getting build errors specifically for the use of CONTAINER_OF in the uart_cb function which is pretty much a copy from the sample. After digging around, I noticed that the util.h file which defines the CONTAINER_OF macro was changed between 3.4 and 3.5 and it is specifically the newly added CONTAINER_OF_VALIDATE which is failing.[/quote]
&lt;p&gt;Are you using nRF Connect SDK or vanilla Zephyr?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also can&amp;#39;t see any reason this validation should fail with the code. It looks like both are uint8_t pointer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since nRF Connect SDK is still using Zephyr 3.4.x, maybe you can ask this question to &lt;a href="https://docs.zephyrproject.org/latest/develop/getting_started/index.html#asking-for-help"&gt;upstream Zephyr&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>