Forum Discussion
Altera_Forum
Honored Contributor
10 years agoSee chapter 3 - 'Using the Flash Programmer from the Command Line' of nios ii flash programmer user guide (https://www.altera.com/en_us/pdfs/literature/ug/ug_nios2_flash_programmer.pdf) for a comprehensive description of the flash programming utility. I suggest you explore the '--debug' command line option.
Also have a look at Chapter 6 'Exit and Exit Status' of the advanced bash-scripting guide (http://tldp.org/ldp/abs/html/exit-status.html). This will give you help on using return values from calls. Cheers, Alex