Aurdino proble/ HELP

The sketch uses 56,438 bytes (22%) of device memory. Total available 253952 bytes.
Global variables use 2015 bytes (24%) of dynamic memory, leaving 6177 bytes for local variables. Maximum: 8192 bytes.
C: \ Program Files \ arduino-nightly \ hardware \ tools \ avr / bin / avrdude -CC: \ Program Files \ arduino-nightly \ hardware \ tools \ avr / etc / avrdude.conf -v -patmega2560 -cwiring -PCOM1 - b115200 -D -Uflash: w: C: \ Users \ BEND \ AppData \ Local \ Temp \ arduino_build_11274 / cnc_ctrl_v1.ino.hex: i

avrdude: Version 6.3-20171130
Copyright © 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright © 2007-2014 by Joerg Wunsch

     System wide configuration file is "C: \ Program Files \ arduino-nightly \ hardware \ tools \ avr / etc / avrdude.conf"

     Using Port: COM1
     Using Programmer: wiring
     Overriding Baud Rate: 115200

avrdude: stk500v2_ReceiveMessage (): timeout
avrdude: stk500v2_ReceiveMessage (): timeout
avrdude: stk500v2_ReceiveMessage (): timeout
avrdude: stk500v2_ReceiveMessage (): timeout
avrdude: stk500v2_ReceiveMessage (): timeout
avrdude: stk500v2_ReceiveMessage (): timeout
avrdude: stk500v2_getsync (): timeout communicating with programmer

avrdude done. Thank you.

An error occurred while loading the sketch.

/*This file is part of the Maslow Control Software.
The Maslow Control Software is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Maslow Control Software is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with the Maslow Control Software. If not, see http://www.gnu.org/licenses/.

Copyright 2014-2017 Bar Smith*/

/* To the projects contributers:
*

  • it is highly recommended to activate warning output of the arduino gcc compiler.
  • Compiler warnings are a great help to keep the codebase clean and can give clues
  • to potentally wrong code. Also, if a codebase produces too many warnings it gets
  • more likely that possibly important warnings could be overlooked.
  • Since the Arduino IDE suppresses any compiler output by default we have to activate it.
  • Therefore Arduino IDE users need to activate compiler output in the
  • preferences dialog. Additionally Arduino IDE needs to tell the compiler to generate
  • warning messages. This is done in the Arduino IDE’s preferences.txt file - you can
  • get there via the Preferences Dialog - there is a link to the file at the bottom.
  • Edit the line “compiler.warning_level=none” to “compiler.warning_level=all”
  • and restart the IDE.
    */

// TLE5206 version

#include “Maslow.h”

// Define system global state structure
system_t sys;

// Define the global settings storage - treat as readonly
settings_t sysSettings;

// Global realtime executor bitflag variable for setting various alarms.
byte systemRtExecAlarm;

// Define axes, it might be tighter to define these within the sys struct
Axis leftAxis;
Axis rightAxis;
Axis zAxis;

// Define kinematics, is it necessary for this to be a class? Is this really
// going to be reused?
Kinematics kinematics;

void setup(){
Serial.begin(57600);
Serial.print(F(“PCB v1.”));
Serial.print(getPCBVersion());
if (TLE5206 == true) { Serial.print(F(" TLE5206 “)); }
Serial.println(F(” Detected"));
sys.inchesToMMConversion = 1;
settingsLoadFromEEprom();
setupAxes();
settingsLoadStepsFromEEprom();
// Set initial desired position of the machine to its current position
leftAxis.write(leftAxis.read());
rightAxis.write(rightAxis.read());
zAxis.write(zAxis.read());
readyCommandString.reserve(INCBUFFERLENGTH); //Allocate memory so that this string doesn’t fragment the heap as it grows and shrinks
gcodeLine.reserve(INCBUFFERLENGTH);

#ifndef SIMAVR // Using the timer will crash simavr, so we disable it.
               // Instead, we'll run runsOnATimer periodically in loop().
Timer1.initialize(LOOPINTERVAL);
Timer1.attachInterrupt(runsOnATimer);
#endif

Serial.println(F("Grbl v1.00"));  // Why GRBL?  Apparently because some programs are silly and look for this as an initialization command
Serial.println(F("ready"));
reportStatusMessage(STATUS_OK);

}

void runsOnATimer(){
#if misloopDebug > 0
if (inMovementLoop && !movementUpdated){
movementFail = true;
}
#endif
movementUpdated = false;
leftAxis.computePID();
rightAxis.computePID();
zAxis.computePID();
}

void loop(){
// This section is called on startup and whenever a stop command is issued
initGCode();
if (sys.stop){ // only called on sys.stop to prevent stopping
initMotion(); // on USB disconnect. Might consider removing
setSpindlePower(false); // this restriction for safety if we are
} // comfortable that USB disconnects are
// not a common occurrence anymore
kinematics.init();

// Let's go!
sys.stop = false;            // We should consider an abort option which
                             // is not reset automatically such as a software
                             // limit
while (!sys.stop){
    gcodeExecuteLoop();
    #ifdef SIMAVR // Normally, runsOnATimer() will, well, run on a timer. See also setup().
    runsOnATimer();
    #endif
    execSystemRealtime();
}

}

when downloading, what could be the problem?

on another computer running.

tried another version of aurdino the same outcome

Looks like a communication problem with the Arduino.
Is the correct COM port selected?

one port only

1 Like

Looks OK.
Did you try to upload the ‘blink scetch’ from the examples? Does that also give an error?
Also maybe try the stable arduino IDE instead of the ‘nightly build’.

WHERE TO DOWNLOAD blink scetch ?

It should be in the arduino ide, under examples:

1 Like

Does it upload without error?

no


Скетч использует 1460 байт (0%) памяти устройства. Всего доступно 253952 байт.
Глобальные переменные используют 9 байт (0%) динамической памяти, оставляя 8183 байт для локальных переменных. Максимум: 8192 байт.
C:\Program Files\arduino-nightly\hardware\tools\avr/bin/avrdude -CC:\Program Files\arduino-nightly\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM1 -b115200 -D -Uflash:w:C:\Users\BEND\AppData\Local\Temp\arduino_build_101203/Blink.ino.hex:i

avrdude: Version 6.3-20171130
Copyright © 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright © 2007-2014 Joerg Wunsch

     System wide configuration file is "C:\Program Files\arduino-nightly\hardware\tools\avr/etc/avrdude.conf"

     Using Port                    : COM1
     Using Programmer              : wiring
     Overriding Baud Rate          : 115200

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done. Thank you.

Произошла ошибка при загрузке скетча

So there is no good communication with the Arduino Mega.


If it’s the ‘bootloader’, there was a trick somewhere to press the reset button at the right timing. Let me see if I can find that.

1 Like

Do you have an other computer you can try?

1 Like

yes, it works on another computer

I hope this helps. It’s like:

  1. Click the ‘Upload’ icon on top left (2) Compiling in progress, you can see the progress at the buttom left corner (3) Press reset button on mainboard when the progress changes from “compiling” to “uploading”

Edit: One more:

1 Like

we did a reset

Скетч использует 56438 байт (22%) памяти устройства. Всего доступно 253952 байт.
Глобальные переменные используют 2015 байт (24%) динамической памяти, оставляя 6177 байт для локальных переменных. Максимум: 8192 байт.
C:\Program Files\arduino-nightly\hardware\tools\avr/bin/avrdude -CC:\Program Files\arduino-nightly\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM1 -b115200 -D -Uflash:w:C:\Users\BEND\AppData\Local\Temp\arduino_build_189900/cnc_ctrl_v1.ino.hex:i

avrdude: Version 6.3-20171130
Copyright © 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright © 2007-2014 Joerg Wunsch

     System wide configuration file is "C:\Program Files\arduino-nightly\hardware\tools\avr/etc/avrdude.conf"

     Using Port                    : COM1
     Using Programmer              : wiring
     Overriding Baud Rate          : 115200

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done. Thank you.

Произошла ошибка при загрузке скетча

1 Like

I got that error last night when I hadn’t selected the correct Target. I had the Arduino mega selected, which was incorrect

1 Like

we have chosen the right, is not it?

installed arduino, but the error is unchanged.

Do you get an answer from -> tools -> board info?

We found one problem, it was a driver per port, it was not updated, we manually updated it. There is a new problem …
I did not receive information about the board before, how to install the driver manually, now there is information about the board

Скетч использует 56896 байт (22%) памяти устройства. Всего доступно 253952 байт.
Глобальные переменные используют 2009 байт (24%) динамической памяти, оставляя 6183 байт для локальных переменных. Максимум: 8192 байт.
C: \ Program Files (x86) \ Arduino \ hardware \ tools \ avr / bin / avrdude -CC: \ Program Files (x86) \ Arduino \ hardware \ tools \ avr / etc / avrdude.conf -v -patmega2560 -cwiring - PCOM19 -b115200 -D -Uflash: w: C: \ Users \ BEND \ AppData \ Local \ Temp \ arduino_build_527300 / cnc_ctrl_v1.ino.hex: i

avrdude: версия 6.3-20171130
Copyright © 2000-2005 Брайан Дин, http://www.bdmicro.com/
Copyright © 2007-2014 гг. Йорг Вунш

     Системный файл конфигурации - «C: \ Program Files (x86) \ Arduino \ hardware \ tools \ avr / etc / avrdude.conf"

     Использование порта: COM19
     Использование программы: проводка
     Переопределение скорости передачи: 115200

avrdude: ser_open (): не удается открыть устройство «\. \ COM19»: Отказано в доступе.

avrdude: ser_drain (): read error: Неверный дескриптор.

avrdude: ser_send (): write error: sorry no info avail
avrdude: stk500_send (): не удалось отправить команду на последовательный порт
avrdude: ser_recv (): read error: Неверный дескриптор.

avrdude: stk500v2_ReceiveMessage (): таймаут
avrdude: ser_send (): write error: sorry no info avail
avrdude: stk500_send (): не удалось отправить команду на последовательный порт
avrdude: ser_recv (): read error: Неверный дескриптор.

avrdude: stk500v2_ReceiveMessage (): таймаут
avrdude: ser_send (): write error: sorry no info avail
avrdude: stk500_send (): не удалось отправить команду на последовательный порт
avrdude: ser_recv (): read error: Неверный дескриптор.

avrdude: stk500v2_ReceiveMessage (): таймаут
avrdude: ser_send (): write error: sorry no info avail
avrdude: stk500_send (): не удалось отправить команду на последовательный порт
avrdude: ser_recv (): read error: Неверный дескриптор.

avrdude: stk500v2_ReceiveMessage (): таймаут
avrdude: ser_send (): write error: sorry no info avail
avrdude: stk500_send (): не удалось отправить команду на последовательный порт
avrdude: ser_recv (): read error: Неверный дескриптор.

avrdude: stk500v2_ReceiveMessage (): таймаут
avrdude: ser_send (): write error: sorry no info avail
avrdude: stk500_send (): не удалось отправить команду на последовательный порт
avrdude: ser_recv (): read error: Неверный дескриптор.

avrdude: stk500v2_ReceiveMessage (): таймаут
avrdude: stk500v2_getsync (): таймаут, связанный с программистом

avrdude сделано. Спасибо.

выбранный последовательный порт
не существует или плата не подключена к нему

1 Like

That means the Mega is connected, so the bootloader has an issue.
COM port 19??? What else is connected to the computer?

Is this the Arduino Mega from the original batches or where did it come from?
Is there a USB-Hub between the computer and the Mega?

There are options to load a new bootloader to the mega, but that requires a second arduino and skills to follow instructions by the point. I would not recommend that if you don’t have done something similar before, or you might end up with an unusable board.