OMG Your a star
It now programs as well as compiles and i dont have to start Picflash manually
However I've still got the problem of trying to set hs_oscThe only way I can set it is manually with the picflash program, I cant find any way they Microcode studio will let me set it in the program