cancel
Showing results for 
Search instead for 
Did you mean: 

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

fbackvid
Associate II
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'

5 REPLIES 5
Nesrine M_O
Lead II
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
Associate II
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

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.

Posted on May 30, 2018 at 12:12

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

Perhaps the project is for a 'Generic ARM processor', not for a STM32 / Cortex M at all. This usually produces ARM assembler instructions (not Thumb).

Or you have a library linked in that contains ARM code.

fbackvid
Associate II
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.