hi every one,
after can use arduino nano isp (arduino 1.6.5), had tested upload blink sketch attiny2313 via arduino nano isp ,it works fine , can check voltage up/down @ pin b4 or pin set.
when use hardware txd/rxd pin 1/pin0, arduino 1.6.5 ,it error on time.
testing, can upload when use serial.print ("xxx"); usb port not pin0/1.
expert / body advise me ,how upload serial1 port attiny2313 via arduino nano isp ?
my passed experiments.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
experiment1 code:
void setup() {
serial1.begin(9600);
}
void loop() {
serial1.print("stuff");
}
error : serial1 not declared in scope
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
experiment2 code:
#include <softwareserial.h>
// definitions
#define rxpin 0
#define txpin 1
softwareserial myserial(rxpin, txpin);
// setup routine runs once when press reset:
void setup() {
myserial.begin(9600);
}
// loop routine runs on , on asensorpingain forever:
void loop() {
myserial.print("stuff");
myserial.println();
}
error : sketch big;see http://www.arduino/en/guide/troubleshooting size tips reducing it.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
could expert / body advise me ,how upload serial1 port attiny2313 via arduino nano isp ?
preecha r.
after can use arduino nano isp (arduino 1.6.5), had tested upload blink sketch attiny2313 via arduino nano isp ,it works fine , can check voltage up/down @ pin b4 or pin set.
when use hardware txd/rxd pin 1/pin0, arduino 1.6.5 ,it error on time.
testing, can upload when use serial.print ("xxx"); usb port not pin0/1.
expert / body advise me ,how upload serial1 port attiny2313 via arduino nano isp ?
my passed experiments.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
experiment1 code:
void setup() {
serial1.begin(9600);
}
void loop() {
serial1.print("stuff");
}
error : serial1 not declared in scope
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
experiment2 code:
#include <softwareserial.h>
// definitions
#define rxpin 0
#define txpin 1
softwareserial myserial(rxpin, txpin);
// setup routine runs once when press reset:
void setup() {
myserial.begin(9600);
}
// loop routine runs on , on asensorpingain forever:
void loop() {
myserial.print("stuff");
myserial.println();
}
error : sketch big;see http://www.arduino/en/guide/troubleshooting size tips reducing it.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
could expert / body advise me ,how upload serial1 port attiny2313 via arduino nano isp ?
preecha r.
Arduino Forum > Development > Other Software Development > Cannot upload Arduino Nano Serail1.print to ATtiny2313
arduino
Comments
Post a Comment