cancel
Showing results for 
Search instead for 
Did you mean: 

How to use CMSIS to set a bit or register

LMorr.3
Senior II

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!

1 ACCEPTED SOLUTION

Accepted Solutions

>>What am I missing?

Probably a clock

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2

>>What am I missing?

Probably a clock

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Yep, that was it, thank you!