Go Down

Topic: help with Bash script (Read 965 times) previous topic - next topic

kilam

Hi there,

I'm pretty new at this.

I have these commands for one step flashing:


avrdude -c avrispmkII -p m32u4 -Pusb -Uflash:r:flashdump.hex:i

avrdude -v -v -v -v -patmega32u4 -cstk500v2 -Pusb -Uflash:w:/flashdump.hex:i -Ulock:w:0x2F:m


I'm trying to figure out how to make these into a bash script (with no or little parameters) can someone here please help me out. I have looked at the bash script guides but they make little sense to me.. since I am so new.

thanks

PaulS

Quote
I'm trying to figure out how to make these into a bash script

Why? You can't run bash scripts on the Arduino.

If you have a strictly bash question, a bash forum would be a better choice. I don't imagine that you ask Arduino questions there, do you?
The art of getting good answers lies in asking good questions.

kilam

sorry if it offended you. like i said. im very new at all of this and since it's run through the arduino i figured i would ask here.

PaulS

Quote
im very new at all of this and since it's run through the arduino

The bash script is not "run through the Arduino".
The art of getting good answers lies in asking good questions.

Go Up