This is an alternative to the libftdi flash tool, which seems to be missing functionality and in some cases produces broken configurations.