Main Site Documentation

Fez Panda, what is IFU mode and How can i access IFU mode?


[Fez Panda II]

Hi all,
I use the SystemUpdate.ApplicationUpdate.Write method and i need to get obtained hex file by using the “G” command in TeraTerm to pull my binary application.


double post, why don’t you just ask once and leave it at that?

  1. Press an hold LOADER (LDR) button then connect the USB cable
  2. Using (TeraTerm) GHI Loader ‘G Command Getting SREC File (LEDBlinking App)
  3. Received File Converting To Hex using this app (USBizi_ExtractApplication.exe)
  4. Writing it into SD And as app.hex
  5. And Deploying Updater application in Panda II (Code Below)
public static void Main()
   if (SystemUpdate.GetMode() == SystemUpdate.SystemUpdateMode.NonFormatted)
   else if (SystemUpdate.GetMode() == SystemUpdate.SystemUpdateMode.Application)

                InterruptPort rightButton = new InterruptPort((Cpu.Pin)FEZ_Pin.Digital.LDR, true, Port.ResistorMode.PullUp, Port.InterruptMode.InterruptEdgeLow);
                rightButton.OnInterrupt += new NativeEventHandler(rightButton_OnInterrupt);

    else if (SystemUpdate.GetMode() == SystemUpdate.SystemUpdateMode.Bootloader)
                if (PersistentStorage.DetectSDCard())
                    PersistentStorage sd = new PersistentStorage("SD");

                    string fileName = "\\SD\\app.hex";

                    if (File.Exists(fileName))
                        FileStream file = new FileStream(fileName, FileMode.Open, FileAccess.Read);

                        // start update

                        // read the file in chucks
                        byte[] buffer = new byte[10 * 1024];
                        int length;

                            length = file.Read(buffer, 0, buffer.Length);
                            SystemUpdate.ApplicationUpdate.Write(buffer, 0, length);

                        } while (length == buffer.Length);


                        // End update
                // Access the application


        private static void rightButton_OnInterrupt(uint data1, uint data2, DateTime time)
            // Update the system using bootloader

this code not works, can anyone help me?