P
P
p0midor2014-02-27 14:03:27
ARM
p0midor, 2014-02-27 14:03:27

Should I use CMSIS under Cortex M3?

Do you use CMSIS when programming for Cortex M3? If not, then what? I decided to deal with the armies. Interesting experience of other people.
IAR environment, STM32 processor.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
astarotech, 2014-06-23
@astarotech

We use.
Pros:
- Easier and faster to write driver code, almost no need to deal with datasheets, shamanize with registers and their bits.
- Easier to port between platforms and families.
Cons:
- The code in CMSIS is often suboptimal with frills, "overloaded".
- As a result of the above, a lot of flash is wasted, RAM, execution speed is lower. If something like this needs to be done repeatedly in an interrupt, then it is better to write it "manually", and this eliminates the advantages of using CMSIS. And bugs are everywhere, until you find it yourself, no one will know.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question