Try using the PROG for PPCNEXUS software to program the chip using step-by-step commands. When successful move onto using standalone programming using the image creation utility. All of the algorithms you need are found in the software download.