Do you know if there is an easier way to pad .bin files than having to first convert them to hex and then back again? I looked around a bit but I couldn't really find anything.
Thanks very much for your help. I padded the file by first using a bin2hex program and then a hex2bin program with a padding option to bring the file size up to 2 mbit, and it works!