savannah-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[savannah-help-public] [sr #109160] fusebits changing error


From: vijay
Subject: [savannah-help-public] [sr #109160] fusebits changing error
Date: Thu, 6 Oct 2016 09:58:55 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.50 Safari/537.36

URL:
  <http://savannah.gnu.org/support/?109160>

                 Summary: fusebits changing error
                 Project: Savannah Administration
            Submitted by: chippevijaya
            Submitted on: Thu 06 Oct 2016 09:58:52 AM GMT
                Category: None
                Priority: 5 - Normal
                Severity: 5 - Blocker
                  Status: None
             Assigned to: None
        Originator Email: address@hidden
        Operating System: GNU/Linux
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Hi,
I am controlling arduino board from raspberry pi.
In my CPP code I am sending writing hex file command using avrdude as below -


system("sudo avrdude -p ATmega32U4 -C /usr/local/bin/avrdude.conf -c pi_32 -v
-U flash:w:/usr/local/bin/at32.hex:i)

Some times It is asking to retrieve back fuse bits like
"Would you like fuse to be changed back? [y/n]"

I can't able to send the command of y/n from CPP system() command, since I am
unable to read stdout until process completes....but process won't complete
until I enter y/n.

I tried "-s" option too. but it stucking more times than completing process.

Is there any direct command line option to check string arrived and giving y/n
at runtime. 





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/support/?109160>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]