poptOption optionsTable[] = {
{"debug",'D', 0, 0, 'd', "print many statements on progress"},
{"f1x",'1', 0, 0, '1', "Specify CPU family, in case autodetect fails"},
poptOption optionsTable[] = {
{"debug",'D', 0, 0, 'd', "print many statements on progress"},
{"f1x",'1', 0, 0, '1', "Specify CPU family, in case autodetect fails"},
{"intelhex",'I', 0, 0, 'I', "force fileformat to be IntelHex"},
{"erase",'e', 0, 0, 'e', "erase device"},
{"reset",'r', 0, 0, 'r', "reset device"},
{"intelhex",'I', 0, 0, 'I', "force fileformat to be IntelHex"},
{"erase",'e', 0, 0, 'e', "erase device"},
{"reset",'r', 0, 0, 'r', "reset device"},
+ {"send-chunk-size",'s', POPT_ARG_INT | POPT_ARGFLAG_SHOW_DEFAULT,
+ &chunksize, 0, "program msp430 using chunks of this size", ""},
{"program",'p', POPT_ARG_STRING, &image, 0,
"Program file", ""},
{"comport",'c', POPT_ARG_STRING, &device, 0,
{"program",'p', POPT_ARG_STRING, &image, 0,
"Program file", ""},
{"comport",'c', POPT_ARG_STRING, &device, 0,