Skip to main content
Graduate II
June 4, 2023
Solved

How to use CMSIS to set a bit or register

  • June 4, 2023
  • 1 reply
  • 1625 views

Each time I call SET_BIT to set a bit the register value remains at 0. All registers are 0 even after writing, as though they are read-only. For example, the following does not set the bit:

DMA2_Stream0->CR |= ((uint32_t)1);

What am I missing?

Thank you!

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    >>What am I missing?

    Probably a clock

    1 reply

    Graduate II
    June 4, 2023

    >>What am I missing?

    Probably a clock

    LMorr.3Author
    Graduate II
    June 4, 2023

    Yep, that was it, thank you!