Skip to main content
Visitor II
March 14, 2024
Solved

CMSIS-DSP with STM32F302

  • March 14, 2024
  • 2 replies
  • 1272 views

Dear all,

is it possible to use CMSIS-DSP with STM32F302XXX?

Actually I'm working with NUCLEO STM32F302R8Tx (but final board will have STM32F302RCT6) and I have two issues :

1) I am not able to find lib *.a in repository CMSIS_DSP 

2) Following this guide Guide I get this error ../Drivers/CMSIS/Include/core_cm4.h:105:8: error: #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"

 

Is there some hardware limitation?

Or am I missing some step?

 

Thank you

    This topic has been closed for replies.
    Best answer by Andrew Neil

    @ermes wrote:

    2) Following this guide Guide I get this error ../Drivers/CMSIS/Include/core_cm4.h:105:8: error: #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"


    Well, the STM32F302R8 does have an FPU - so there must be a problem in your configuration:

    https://www.st.com/en/microcontrollers-microprocessors/stm32f302r8.html#:~:text=embedding%20a%20floating%20point%20unit%20(FPU)

    Have you tried a search of the forum?

    https://community.st.com/t5/forums/searchpage/tab/message?q=cmsis%20dsp%20stm32f3&noSynonym=false&collapse_discussion=true 

    https://community.st.com/t5/forums/searchpage/tab/message?advanced=false&allow_punctuation=false&q=cmsis%20dsp

     

     

    2 replies

    Super User
    March 14, 2024

    @ermes wrote:

    2) Following this guide Guide I get this error ../Drivers/CMSIS/Include/core_cm4.h:105:8: error: #error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"


    Well, the STM32F302R8 does have an FPU - so there must be a problem in your configuration:

    https://www.st.com/en/microcontrollers-microprocessors/stm32f302r8.html#:~:text=embedding%20a%20floating%20point%20unit%20(FPU)

    Have you tried a search of the forum?

    https://community.st.com/t5/forums/searchpage/tab/message?q=cmsis%20dsp%20stm32f3&noSynonym=false&collapse_discussion=true 

    https://community.st.com/t5/forums/searchpage/tab/message?advanced=false&allow_punctuation=false&q=cmsis%20dsp

     

     

    Technical Moderator
    March 14, 2024

    Hello,

    As stated by @Andrew Neil  STM32F302 has a HW FPU.

    Check out the DSP demo provided in X-CUBE-DSPDEMO (STM32F429I-Discovery project) which you can inspire from.