Open fbrancaccio opened 3 years ago
If it is useful, I add that i receive this message after upload: avrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in description
You can have a look at this thread: https://www.avrfreaks.net/forum/nano-every-use-atmega4808 A trick that kind of works is to use serial1 and wait before serial initialization. Waiting less than 1 second leads to troubles when attempting to upload. The avrdude message "Cannot locate "flash" and "boot" memories in description" does not prevent the upload.
The code would become :
#if defined(__AVR_ATmega4808__)
#define Serial Serial1
#endif
void setup() {
#if defined(__AVR_ATmega4808__)
delay(1000);
#endif
Serial.begin(9600);
Serial.println("Test");
}
void loop() {
}
UPDATE: after attempting to tweak the delay, 400msec proved fatal. It's now impossible to upload, this board seems flawed and a complete waste of time. The github for it have not been updated in 17 months. https://github.com/Thinary/ThinaryArduino Here's the error: avrdude: jtagmkII_setparm(): timeout/error communicating with programmer (status -1)
Thanks for your answer, I'll be careful not to decrease the delay time. I'm sorry your board has broken down. I've read somewhere about this problem and someone suggests:
At present it is not recommended to buy these boards because the support is practically "dead".
It was solved as follows:
And see a miracle - succeeded.
I use Arduino IDE 1.8.13 on Windows 10. I uploaded a simple sketch. The RX TX led alwasy on. I can't upload any more programs . :-( Does not respond to anything. HELP
If you did Serial.begin but didn't do delay, I afraid your board is dead as my one. This is a waste.
"Arduino Micro" trick is works for me:
#define DEBUG_PORT Serial1
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
DEBUG_PORT.begin(115200);
while (!DEBUG_PORT); // <<<<<<<<<< wait until port init
DEBUG_PORT.println("Hello world");
}
void loop() {
DEBUG_PORT.println(millis());
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
}
I use Arduino IDE 1.8.13 on linux. I uploaded this simple sketch:
but nothing is showed on serial monitor. Can you help me?