1
\$\begingroup\$

At this website, I have read that STM32F4 microcontrollers have DSP instructions. To quote:

It also implements a full set of DSP instructions

I am beginning to learn embedded C programming with CooCox CoIDE and STM32F4 Discovery board.

My question is: How do I make use of DSP instructions, when I am writing code in C? Do I need to include some special libraries / functions?

\$\endgroup\$
  • \$\begingroup\$ Simple answer: If the tool-chain provides those functions( or some DSP library) you can use it. So one might need to check the release notes of their tool-chain version(s) for such feature implementation information(s). \$\endgroup\$ – vvy Feb 28 '14 at 18:46
1
\$\begingroup\$

How do I make use of DSP instructions, when I am writing code in C? Do I need to include some special libraries / functions?

If you see in Datasheet and User Guide and Refrence manual and Programming manual, you will know that you can't find any part with this name> "DSP(unit)" or "DSP instructions set" because the DSP is not a peripheral! it is a part of core. if you see in Reference Manual and Technical Data Sheet you will see some part like "Chrom-Art Accelerator controller (DMA2D)" that is specialized for image manipulation. YES! this is a part that work by DSP part. the STM32F4 MCUs can work in frequency up to 168 MHz or even 180MHz! then by an special libraries / functions for DSP purpose you can do your job because this clock rate is suitable for this purpose. Enjoy of your MCU, James! :)

\$\endgroup\$
2
\$\begingroup\$

ARM has provided a variety of DSP examples as part of their CMSIS (Cortex-M Software Interface Standard), available at cmsis.arm.com

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.