Zephyr Multitasking and event handling

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:

  1. Multitasking
  2. Task scheduler for scheduling all created tasks.
  3. Event group creation.
  4. Event creation.
  5. Set/clear events.
  6. Queue for data passing between tasks.
Parents
  • Hi,
    Generally yes, there are several architectural/implementation considerations to take depending on a your specific application and performance requirements.


    Reuven

  • Hi Reuven,

    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?

    Event creation code:

        struct k_event my_event;

        k_event_init(&my_event);

    Firmware details: nRF connect sdk V2.6.0
    Board selection : nrf7002dk_nrf5340_cpuapp_ns

    Here i attach the error statement for your reference


    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':
    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'
    collect2.exe: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.EXE' --build 'e:\nRF_Software\ncs\v2.6.0\zephyr\samples\basic\blinky\build.

    Thanks,
    Chandrasekaran J
    (Waggle)

Reply
  • Hi Reuven,

    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?

    Event creation code:

        struct k_event my_event;

        k_event_init(&my_event);

    Firmware details: nRF connect sdk V2.6.0
    Board selection : nrf7002dk_nrf5340_cpuapp_ns

    Here i attach the error statement for your reference


    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':
    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'
    collect2.exe: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.EXE' --build 'e:\nRF_Software\ncs\v2.6.0\zephyr\samples\basic\blinky\build.

    Thanks,
    Chandrasekaran J
    (Waggle)

Children
Related