MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.27k stars 19.23k forks source link

[BUG] butloader does not works #24503

Closed gromas closed 2 years ago

gromas commented 2 years ago

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

Hi. I have sanguino based 3dprinter and upload marlin sketch with bootloader to 1284p. Sketch works but bootloader does not works correctly. I try to upload sketch with USB cable and get error avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00

Then I lock for output files and ivestigate size of hex with bootloader lower than size hex without bootloader. What it is? Screenshot from 2022-07-14 21-50-14

Bug Timeline

new bug but I dont u

Expected behavior

Create sketch for sanguino and export hex's. Check file sizes.

Actual behavior

Image size with bootloader lower than image size without.

Steps to Reproduce

Create sketch for sanguino Export binaries. Check file sizes.

Version of Marlin Firmware

Marlin bugfix-2.1.x

Printer model

Prusa I3

Electronics

Melzi 2.0

Add-ons

No response

Bed Leveling

No response

Your Slicer

No response

Host Software

No response

Don't forget to include

Additional information & file uploads

No response

Bob-the-Kuhn commented 2 years ago

I don't know if it is causing the AVRDUDE errors but it looks like the image (153K) is bigger than the available FLASH in the controller (about 120K). You'll need to delete/disable options until your image is under 120K and try again.

thisiskeithb commented 2 years ago

This Issue Queue is for Marlin bug reports and development-related issues, and we prefer not to handle user-support questions here. (As noted on this page.) For best results getting help with configuration and troubleshooting, please use the following resources:

After seeking help from the community, if the consensus points to a bug in Marlin, then you should post a bug report.

ellensp commented 2 years ago

@Bob-the-Kuhn thats a intel hex file, it is a text representation of the bin. you must convert it back to binary to get its real size. @gromas with bootloader means that the image contains a bootloader, you need to use a AVRISP to program the device. As that is the only way you can write a new bootloader.

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.