Archive for December 5th, 2008

Retrieving data from your corrupted hard disk

I don't know how many times I've been asked about lost files. The story goes something like one of these:

"Hey, I can't open a file."
"Hey, the file was there but now it isn't."
"Hey, I've got a file I can open the but the data is not correct."

You've all heard the story. While there are sometimes trivial answers to these problems, most of the time I find the issue originates when someone saves over a file, accidentally deletes a file, or Windows crashes and hoses the file system. (Yeah, that one happens a lot actually.)

Anyway, I came across some file recovery software that seems to be pretty handy. Disk Doctor only runs on Windows Platforms, (it only supports FAT32 and NTFS), but it has a very impressive set of data recovery features for recovering lost data. In addition to recovering files, you can restore lost partitions. I have yet to have a person who runs Linux ask me how to recover a lost file so I'm guessing this software fits the bill pretty well.

In case you lost a small file and need a quick fix, Disk Doctor provides a trial version that can restore files up to 64k in size. The nice thing is the personal version only costs $39. It might pay for itself depending on what you lost!

An Open Source Library for Writing Firmware on the Cypress FX2 with SDCC

After playing around with the Cypress FX2 and SDCC for the past while, I've developed a library of utilities that make some of the common tasks for writing firmware and performing certain functions a little easier. I'm lucky to work for a company that approves of the open source initiative and believes that it is beneficial to give back as well as receive from a wider audience of developers. That being said, I've created a git repository with my library:

Here is fx2lib on github:

You can clone it with git like this:

  2. > git clone git:// fx2lib

Here is a short list of some of the things you can do with this library:

  1. Read/Write data on the i2c bus
  2. Handle USB and GPIF interrupts
  3. Read/Write data on to a serial console
  4. Handle the common USB vendor commands
  5. Implement your own vendor commands
  6. Program the GPIF

Hope you enjoy!

Update 12/15/08: Added project home page at Sourceforge: fx2lib home.