PROBLEM WITH FFT ON STM32F4

I'm going to apply FFT on 512 sized array captured from ADC
BUT as soon as i add libraries like "arm_math.h"or "ARMCM4.h" i get bunch of errors
here is my code
please someone kindly help me im running out of time
I attached files

I used FFT on the F0 and only included #include "stm32f0xx_hal.h"#include "arm_math.h"#include "arm_const_structs.h"so maybe check the ARM page for how you are performing the entire thing. You need to setup the constant like....arm_cfft_instance_f32 arm_cfft_sR_f32_len512and variables the proper way or you will run into problems. Use the error codes to help you debug. Initially when I made my program I had a lot of errors too and they manifest in one or two simple small errors but after reading the ARM page on FFT it becomes clear very quickly where your errors may be. Don't worry, the code should be very short and simple to add FFT.

If you passed in the right defines on the compiler command line you wouldn't need to have all the individual #includes.

The #include "stm32f4xx.h" should pull in the other files via the stm32f4xx_conf.h in your project. You might want to look at the DSP/SPL project templates. Pay special attention to all the settings and configurations deeper within the project options.

When all the errors/warnings come from other files, the value of just supplying main.c is very low, nobody here is going to reconstruct this all from scratch. You need a project and all it's files. I'm not using the TM library, not sure how that mixes things up.

Suggest you start with the first errors/warnings, remedy those, and move forward.