how to load the boot code into the nor flash of p2041

I have completed the por sequence of my board how to load the boot code to the nor flash through tap controller using code warrior .please provide if any procedure is there in loading the code and how to find the code is loaded successfully into the flash

I have used p2041 sram init .tcl file for initialitation and i was able to connect to the processor but when i am trying to erase the flash NOR flash the following errors are occurring how to solve this what are the possibilities all the schematics i have used the same as of evm except that i have used this part of flash S29GL01GS10TFI010 instead of GP series

i have used the same init file P2041RDB_init_sram.tcl provided from freescale do i have to change any setting in the init file i have used the S29GL01GP series for the flash device do the erasing algorithm mentioned in the .xml file is same for both flash series how to create a new flash .xml with eml file