Solved! Go to Solution.
Bootstrap loading is one of the ways to flash the hex file on to the device. Kindly check this appnote.
Meanwhile is there any particular reason you are trying to develop your own setup for mass production. Is something preventing from you from using the programmers available ?