FM25V02A-G FRAM Not Working on Custom STM32H733 Flight Controller

Hello everyone,

I am developing a custom flight controller based on the STM32H733 MCU and ArduPilot. I am using an FM25V02A-G SPI FRAM connected to SPI1 for persistent storage.

I have configured the FRAM in my board’s hwdef.dat, but the FRAM is not working as expected. I would appreciate help identifying whether the issue is related to the hardware configuration, SPI communication, or ArduPilot’s storage backend.

Hardware details

  • MCU: STM32H733

  • FRAM: FM25V02A-G, SPI interface

  • SPI bus: SPI1

  • SCK: PA5

  • MISO: PA6

  • MOSI: PA7

  • Chip select: PA15

  • FRAM capacity: 256 Kbit (32 KB)

Relevant hwdef.dat configuration

SPI1 FRAM

PA5 SPI1_SCK SPI1
PA6 SPI1_MISO SPI1
PA7 SPI1_MOSI SPI1
PA15 FRAM_CS CS

FRAM device

SPIDEV ramtron SPI1 DEVID2 FRAM_CS MODE0 1*MHZ 8*MHZ

define HAL_WITH_RAMTRON 1
define HAL_STORAGE_SIZE 16384

I have also reserved flash space using:

FLASH_RESERVE_START_KB 128

Problem

my ardupilot doesnot start into my board but when i disable the FRAM then ardupilot runs into my board

I want to understand why ArduPilot cannot initialize the FRAM and whether my hwdef.dat configuration is correct for the FM25V02A-G.

Could someone please help me verify:

  1. Whether the SPIDEV declaration and HAL_WITH_RAMTRON setting are correct for this FRAM.

  2. Whether ArduPilot supports the FM25V02A-G through its existing Ramtron driver.

  3. How to verify SPI communication and FRAM read/write operations.

  4. Whether any additional board configuration or storage backend changes are required.

Thank you for your help.