2018-05-29 11:37 PM
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'
2018-05-30 01:30 AM
Hi
Backvid.Folke
,Have you checked __FPU_PRESENT to see if it's set or not?
Are you including
the stm32h743xx.h file?-Nesrine-
2018-05-30 02:07 AM
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
2018-05-30 04:20 AM
,
,
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.
2018-05-30 05:12 AM
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.
2018-07-02 03:59 AM
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.