pnmtoc is to be used in linux machine
pnmtoc.exe is to be used in windows command prompt

more info on the usage can be found from the user guide link at http://ap-fpdsp-swapps.dal.design.ti.com/index.php/SitaraWare