Monday, 13 November 2017

Nucleo STM32 FreeRTOS Notifications

Requires previous post.


Lets use FreeRTOS notifications to blink LEDs on the nucleo board.  FreeRTOS notifications are a fast way to signal other tasks and to provide other tasks with data.


First create a new task.






Check if notifications are enabled.



Save and generate new code.

Start OpenSTM32.


Modify the default task. If the default task receives 'Q' from UART then the second task will be sent a value of 42.

If the default task receives 'V' from UART then the second task will be sent a value of 1.



Modify the Task02. If the task02 receives 42 from the default task then the LED will be turned on.

If the task02 receives 1 from the default task then the LED will be turned off.




Sending commands from UART.

Turn LED on.


echo "Q" > /dev/ttyACM0


Turn LED off.


echo "V" > /dev/ttyACM0


Any other character does nothing to the state of the LED.











2 comments:

  1. Hire maid cook nanny office assistant in Gurgaon Delhi Noida.
    http://www.directnaukri.com/
    www.domesticjobs.in
    www.youtube.com/domestichelp
    www.domestichelpindia.blogspot.com
    Harish 9911266767 , 7982724562

    Maid Services. We are a major Maid Placement Service Provider based in Delhi. We have well-trained and well-cultured maids for various housekeeping needs.

    Maids in Delhi - Hire experienced housemaid services in Delhi and get home maids near me for washing, utensil cleaning, housekeeping, gardening with local/regional language proficiency.

    full day maid in delhi

    part time maids in delhi

    reliable maid agency in delhi

    maid for family new delhi, delhi

    super star services maids new delhi, delhi

    need a maid in delhi

    domestic help agencies delhi

    reliable maid agency in delhi

    full time maid cost in delhi

    domestic help agencies delhi

    part time maids in delhi

    ReplyDelete
  2. Wow, great article post.Really looking forward to read more. Keep writing.

    clipping path service

    ReplyDelete