Skip to main content
fbackvid
Associate
May 30, 2018
Question

Anybody out there with experience of STM32H743I-EVAL + TrueSTUDIO?

  • May 30, 2018
  • 3 replies
  • 1108 views
Posted on May 30, 2018 at 08:37

I'm trying to compile and run my first simple test program, but I got stuck with error:

'Compiler generates FPU instructions for a device without an FPU'

    This topic has been closed for replies.

    3 replies

    Nesrine M_O
    Associate
    May 30, 2018
    Posted on May 30, 2018 at 10:30

    Hi

    Backvid.Folke

    ,

    • Have you checked __FPU_PRESENT to see if it's set or not?

    • Are you including

      the stm32h743xx.h file?

    -Nesrine-

    fbackvid
    fbackvidAuthor
    Associate
    May 30, 2018
    Posted on May 30, 2018 at 11:07

    Yes, I found out that after posting the question.

    __FPU_PRESENT was not set, so I 'hacked in' a #define in the .h file.

    But now I'm stuck on 'bad instruction' from the assembler.

    I thought I had fixed that by selecting Thumb instead of Thumb2.

    Folke

    AvaTar
    Senior III
    May 30, 2018
    Posted on May 30, 2018 at 11:20

     ,

     ,

    Yes, I found out that after posting the question.

    __FPU_PRESENT was not set, so I 'hacked in' a ♯ define in the .h file.

    That is not a very good way.

    Better add the define to your project settings.

    But now I'm stuck on 'bad instruction' from the assembler.

    I thought I had fixed that by selecting Thumb instead of Thumb2.

    The H7xx definitely implements Thumb-2.

    I think your project settings are messed up.

    fbackvid
    fbackvidAuthor
    Associate
    July 2, 2018
    Posted on July 02, 2018 at 12:59

    I tried to build the example LTDC_Display_1Layer and here I also get a lot of 'bad instruction' when it

    tries to assemble the startup_stm32h743xx.s file.