Flashing Bootloader

I am currently making a flight controller based on Pixhawk with only a stm32f427(no stm32f1). However, I don’t know what files to flash and where to flash it since there is no stm32f1 to flash the px4io files. I just want to run Ardupilot in it. It would be really helpful if you could help me. Thanks.