Racing drone switch to arducopter

Hello, as I try ardupilot with pixhawk on big drone I want to try this on my 5inch ‘racer’ drone.
On board I have DAL RC F4 which have:
STM32F405
MPU6000
OSD
Current meter
External flash 16MB

I try to use ‘closest’ firmware of ardupilot "matekF405’ but i have problem with readings from IMU

I made small test and download this same firmware on another board without external flash memory and it’s works. It seems like this ext. memory make problem. Should i have to remove this memory or is any way to handle this?
Or maybe try another firmware, but which one?

You will likely have to produce a new firmware for that board. Does it have barometer?

Not on the FC controller, but I connect externally
BMP280 barometer
HMC5883 magnetometr
and M8N GPS

So should I go through this:
https://ardupilot.org/dev/docs/building-the-code.html
?