FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  


Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support

New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Author Topic: FirmwareUpdateFATFile always returns the status ROM is invalid  (Read 4069 times)


  • Newbie
  • *
  • Posts: 8
    • View Profile
FirmwareUpdateFATFile always returns the status ROM is invalid
« on: November 30, 2022, 01:11:00 AM »

Using the project FirmwareUpdateApp as an example in my code below. Using either the function FirmwareUpdateFATFileFeedback or FirmwareUpdateFATFile the both don't accept the ROM files.  I have used ROMs from my own projects and even the ROMs from install of Vinculum II IDE install 2.

First I have flashed the reflasher using:
VinPrg.exe ReflashFATFile.rom -o 0x1f000 -d "VII Debugger Module"

Then I run my application, select a ROM file that the linker has created and immediately returns from the FirmwareUpdateFATFileFeedback call.  The status is the ROM is invalid.

The return from the updating function is always FIRMWARE_UPDATE_INVALID_FILE.
Any suggestions what could be going wrong?

       file = fopen("FWUPDATE.ROM", "r");

   if (file == NULL)
      puts1USART("@File not found@");
      puts1USART("@Calling firmware update@");
      //#define REFLASHER_OFFSET 0x1f000
      //status = FirmwareUpdateFATFileFeedback(file, REFLASHER_OFFSET, FEEDBACK);
      status = FirmwareUpdateFATFile(file, REFLASHER_OFFSET);
      if(status == FIRMWARE_UPDATE_INVALID_FILE) {
         puts1USART("@INVALID FILE@");


FTDI Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 884
    • View Profile
Re: FirmwareUpdateFATFile always returns the status ROM is invalid
« Reply #1 on: December 01, 2022, 04:43:10 PM »


This is the correct example to use:


Also refer to AN_159 Vinculum-II Firmware Flash Programming for more information.

Please note the restriction in the example readme:

Fragmented ROM files not supported. Do "CHKDSK <filename>" from command line to check.

This has been tested by FTDI and is working.

There may be other FTDI Community users who can help you further.

Best Regards,
FTDI Community