Thinary / ThinaryArduino

Thinary Development Board for Arduino
GNU General Public License v3.0
14 stars 13 forks source link

Serial issue #7

Open fbrancaccio opened 3 years ago

fbrancaccio commented 3 years ago

I use Arduino IDE 1.8.13 on linux. I uploaded this simple sketch:

void setup() {
 Serial.begin(9600);
 Serial.println("Test");
}
void loop() {
}

but nothing is showed on serial monitor. Can you help me?

fbrancaccio commented 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

ermtl commented 3 years ago

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)

fbrancaccio commented 3 years ago

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:

  1. Press and hold the reset button
  2. release the button and at the same time launch the upload I hope this works for you.

At present it is not recommended to buy these boards because the support is practically "dead".

zsoltibaba37 commented 3 years ago

It was solved as follows:

  1. Menu - Sketch - Export compiled Binary
  2. Then push Upload in IDE, and press reset button on Thinary Every board.
  3. When the program started uploading, I released the reset button.

And see a miracle - succeeded.

zsoltibaba37 commented 3 years ago

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

gemyago commented 3 years ago

If you did Serial.begin but didn't do delay, I afraid your board is dead as my one. This is a waste.

zbx-sadman commented 3 years ago

"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);
}

image