Code Monkey home page Code Monkey logo

Comments (12)

JAndrassy avatar JAndrassy commented on July 24, 2024

which Optiboot version did you 'burn'?

from my_boards.

DavidMR91 avatar DavidMR91 commented on July 24, 2024

I downloaded my_boards 2 days ago, and I have problems uploading "big sketchs" if i try upload an empty sketch does not fail

from my_boards.

JAndrassy avatar JAndrassy commented on July 24, 2024

I downloaded my_boards 2 days ago, and I have problems uploading "big sketchs" if i try upload an empty sketch does not fail

you mean usb upload like in the post above? there a small sketch fails

from my_boards.

DavidMR91 avatar DavidMR91 commented on July 24, 2024

True, I seemed to see that correlation at one point, but it's not true, it's random. Or at least, it fails more likely on large sketches than small ones and occasionally loads and checks correctly

from my_boards.

JAndrassy avatar JAndrassy commented on July 24, 2024

Optiboot uses higher baud rate. maybe try a different USB cable

from my_boards.

DavidMR91 avatar DavidMR91 commented on July 24, 2024

I have already tried 3 different cables...I have a Mega2560 board connected to an ESP12F through the Serial1 channel communicating with each other with the WifiEspAT library. I got it to work, but since a week ago I can no longer upload code to the Mega2560 (is not exact, When I receive the error reading the code in the last step of the uploading process, if I open the Serial monitor, seems that the code is right uploaded, the upload error it's maybe only in the reading check process).

I too have tested with 2 diferent PCs, with several Mega2560 boards and with several ESP12F and in all cases I get the same error in the data upload process.
I have also tried the latest version of my_boards to burn the bootloader of the board, but before it was working correctly with a minor version... (Without having updated apparently nothing started to fail with the old my_boards and that is why now I have updated and it continues to fail)

The failure is random, depending on the size of the sketch the probability of upload failure increases (I have tested it with a blank sketch and an estimated 30% of the uploads fail. With the Arduino's "blink" example the probability of failure is close to 50%, with a slightly heavier skech the failure appears in 90% of the rises)).

It also increases the probability of uploading the data correctly if we disconnect the ESP12F of the Mega2560 during the upload...

But after trying several times the code upload finally always ends up giving the upload error...

from my_boards.

JAndrassy avatar JAndrassy commented on July 24, 2024

is it a Mega with 16u2 as USB, or CH340? how is the esp-12F powered?

from my_boards.

DavidMR91 avatar DavidMR91 commented on July 24, 2024

Mega have CH340 and i have tested with esp-12f powered since the Mega (first, powered only using the USB and after powered Mega with an aditional power suplpy) and also tested with esp-12f powered an external power supply

from my_boards.

JAndrassy avatar JAndrassy commented on July 24, 2024

115200 baud is suboptimal for Mega and maybe the CH340 makes it worst (or 16u2 helps).
you could try Optiboot with a different baud rate. the Mega Core has them ready. (Optiboot in Mega Core has the copy_flash_pages function for ArduinoOTA)

from my_boards.

DavidMR91 avatar DavidMR91 commented on July 24, 2024

Can you recommend a suitable transmission speed? And could you explain how I should change the baud rate of the USB flash?

from my_boards.

JAndrassy avatar JAndrassy commented on July 24, 2024

I looked up a the baud rate for Arduino Mega with the default bootloader.. It is 115200 too. so it can't be a problem with the baud rate. sorry

from my_boards.

DavidMR91 avatar DavidMR91 commented on July 24, 2024

Hello, I have found the origin of this issue, the problem is a problematic Mega 2560 PRO board assembler. Not only does it give firmware loading problems but it also has the inverted ICSP silkscreen. Seen from the photo, 5V, MOSI and GND appear on the right and are the ones on the left.
Sorry for the disturbances. I hope this report serves more people

WhatsApp Image 2022-01-13 at 21 31 53 (1)

from my_boards.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.