// Before loading the commands written below will be executed
// The following commands must be enabled to load in flash with the BDM_HCS08

RESET
// initialize the flash mechanism
FLASH
// select the flash modules
FLASH SELECT
// erase the flash modules
FLASH ERASE
// arm the flash for programming
FLASH ARM