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?

asked Feb 28, 2014 at 18:26
\$\endgroup\$
1
  • \$\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\$ Commented Feb 28, 2014 at 18:46

2 Answers 2

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! :)

answered Mar 1, 2014 at 15:20
\$\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

answered Feb 28, 2014 at 18:58
\$\endgroup\$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.