cancel
Showing results for 
Search instead for 
Did you mean: 

IDE / toolchain for direct register access?

RMalc.1
Associate II

Hi. Any recommendations for an IDE and toolchain for a Nucleo board with STM32f3xx. I want to be close to the metal and would like to access registers directly example:

TIMER1_BASE->CR1 |= 0X0001; // Start timer

Capture[edge] = TIMER2_BASE->CCR1​;

I want to avoid a bunch of pointer tricks and not have to dig though a lot of libraries.

2 REPLIES 2

Any IDE worth it's salt can simply compile the code you give it, they generally don't care about your coding style..

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

Use the CMSIS header file with whatever IDE you like the most. Any IDE can do what you want, including STM32CubeIDE. Use the defines within the header to make your code more readable for yourself and others.

TIM1->CR1 |= TIM_CR1_CEN;
Capture[edge] = TIM2->CCR1;

 Not sure what "avoid a bunch of pointer tricks" means. Pointers are part of the C standard. Shouldn't be any variability in how these operate between IDEs.

If you feel a post has answered your question, please click "Accept as Solution".