Go Down

Topic: avrdude and stdout (Read 750 times) previous topic - next topic


I am trying to catch output from avrdude in a visual studio progam. It seems that avrdude is not using stdout for writing to the console window.

Also, a test in the command prompt (windows xp; cmd.exe) as 'avrdude -h >test.txt' should output the switches supported by avrdude and other text in the file test.txt. Should, but it doesn't.

The Arduino IDE seems to show some text coming from avrdude, for example when upload.verbose is set to true. Can anyone explain how this is done?

Thanks in advance!


It looks like avrdude writes to stderr, not stdout.  


If you've got access to the avrdude source, the following should make all output go to stdout. You will of course need to re-compile.

Code: [Select]

foreach a (`ls *.c`)
mv $a $a.old
sed -e 's/stderr/stdout/g' $a.old > $a


Ok, thanks! Using stderror solved my problem!

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131