<?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>Zephyr Multitasking and event handling</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110100/zephyr-multitasking-and-event-handling</link><description>Hi team, 
 In our application, we need to create the following functionalities within the Zephyr RTOS environment. Could you please clarify whether the following tasks are possible to achieve with Zephyr RTOS? 
 Application requirements: 
 
 Multitasking</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Apr 2024 09:30:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110100/zephyr-multitasking-and-event-handling" /><item><title>RE: Zephyr Multitasking and event handling</title><link>https://devzone.nordicsemi.com/thread/478247?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 09:30:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7560e175-f164-4bd0-9b00-b7dbac794d1c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This doesn&amp;#39;t directly answer your question, but you may find many useful guides and tutorials on our &lt;a href="https://academy.nordicsemi.com/"&gt;DevAcademy&lt;/a&gt; on how to work with nRF Connect SDK and the Zephyr RTOS. I recommend to check it out.&lt;/p&gt;
&lt;p&gt;The documentation for Events in Zephyr is found here:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/kernel/services/synchronization/events.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/kernel/services/synchronization/events.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are unsure of how to use a specific feature I find it useful to just search for the api in the nRF Connect SDK and look at the examples and tests that use the function. For instance for events you may find the test useful:&lt;br /&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/main/tests/kernel/events"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/main/tests/kernel/events&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Multitasking and event handling</title><link>https://devzone.nordicsemi.com/thread/478174?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 05:32:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7786599a-47e6-4180-9e45-dcedb1845090</guid><dc:creator>Chandrasekaran J</dc:creator><description>&lt;p&gt;Hi Reuven,&lt;/p&gt;
&lt;p&gt;Thank you for your reply.I am facing an issue when trying to use events for task wait purposes. It appears to be a linker error. Can you please provide a solution for this?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Event creation code:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;k_event&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;my_event&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;k_event_init&lt;/span&gt;&lt;span&gt;(&amp;amp;&lt;/span&gt;&lt;span&gt;my_event&lt;/span&gt;&lt;span&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Firmware details: nRF connect sdk V2.6.0&lt;br /&gt;Board selection :&amp;nbsp;&lt;span&gt;nrf7002dk_nrf5340_cpuapp_ns&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here i attach the error statement for your reference&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;c:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: app/libapp.a(main.c.obj): in function `k_event_init&amp;#39;:&lt;br /&gt;E:/nRF_Software/ncs/v2.6.0/zephyr/samples/basic/blinky/build/zephyr/include/generated/syscalls/kernel.h:794: undefined reference to `z_impl_k_event_init&amp;#39;&lt;br /&gt;collect2.exe: error: ld returned 1 exit status&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;FATAL ERROR: command exited with status 1: &amp;#39;C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.EXE&amp;#39; --build &amp;#39;e:\nRF_Software\ncs\v2.6.0\zephyr\samples\basic\blinky\build.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Chandrasekaran J&lt;br /&gt;(Waggle)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr Multitasking and event handling</title><link>https://devzone.nordicsemi.com/thread/478150?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 22:02:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0de08543-379d-4f8f-928d-fe9f2270e70d</guid><dc:creator>RM</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;Generally yes, there are several architectural/implementation considerations to take depending on a your specific application and performance requirements.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reuven&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>