Forum Discussion
Altera_Forum
Honored Contributor
11 years agoError codes of Altera command-line tool
Hi all,
I'd like to create a simple GUI useful to program our boards. I need something that indicates in a clear way if the download was ok or not. To do this, I need to understand if the commands I'm using (nios2-configure-sof, nios2-flash-programmer) return some error codes and how to get it: I want that the GUI breaks the download when the first error happens and indicates it to the operator. Can you help me to find the information related this? Thanks in advance, Andrea.1 Reply
- Altera_Forum
Honored Contributor
See 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