Hi, im having an problem with avrdude; when i want to read or write flash or eeprom, i need to
reset my board with button a just a few moments before i push enter key on keyboard(on enter avrdude executes command). If
I dont reset board, computer cant communicate with board, like its not connected.
How can i bypass this ?
If
I dont reset board, computer cant communicate with board,
This is not how it should be. You are probably doing something wrong but you will have to explain in more detail what you are doing to give us a clue about putting you right.
Ok, for example when i try to do this i get the results described in above post:
avrdude -p m2560 -c stk500 -U flash:r:flash.hex:i -P COM2
yes, i have an arduino mega and port is com2
Just to mention, within Arduino IDE it works perfectly(no need for resetting the board).
I think you are seeing (or not) the effect of the auto reset. The DTR line is attached to the reset line by a capacitor and gives it a reset every time the serial port is opened or closed. This kicks off the boot loader. It looks like this is not happening in your setup. Try including a command to open the serial port.
Yes, its probably that, do u have any ideas how can I fix it?
Im developing an application for arduino which writes something to serial port using avrdude.
No one replies ?
I found that i have to trigger a reset signal to the board (DTR signal)
I would like to know how its done within the IDE so I can do it too with avrdude ???
You need a recent version of avrdude (5.11 and up) and use
avrdude -c arduino ...