Skip to main content
darla14
Associate III
March 23, 2016
Question

Using Locks in STM32L4/F4 without RTOS

  • March 23, 2016
  • 2 replies
  • 643 views
Posted on March 23, 2016 at 05:55

Hi, 

Is there a  way to prevent the critical section of the code using Locks in STM32 code witout using an RTOS.

Or in another way any variable which gurantees the portion of the code execution in an atomic fashion.

#!stm32f4-!stm32f401-!rtc #atomic
    This topic has been closed for replies.

    2 replies

    Radosław
    Associate II
    March 23, 2016
    Posted on March 23, 2016 at 09:40

    Atomic operations are simplier in nor RTOS solutions.   But your question aren't concrete.  With what you have problem?

    darla14
    darla14Author
    Associate III
    March 25, 2016
    Posted on March 25, 2016 at 11:44

    Problem is I am trying to prevent the concurrent access to a code which is shared between user application and the interrupt.