Marlin: [FR] Adding Anet E10 Configuration files

Created on 19 Dec 2019  路  76Comments  路  Source: MarlinFirmware/Marlin

Description

Suggestion : adding configuration files for Anet E10 printers

Feature Request

All 76 comments

Does it need ported over from old version? Post original configuration and I'll port it over if that's the case.

No, but i've made my own config files for Marlin 1.1.x .

post old config files and ill port them over and submit them.

Where should I post it ? Sorry, i'm pretty new on github.

Where should I post it ? Sorry, i'm pretty new on github.

Zip up both your Configuration.h & Configuration_adv.h files and attach them in a reply.

post old config files and ill port them over and submit them.

Love seeing more printers supported in vanilla Marlin 馃檪

Just zip them and drop them here in your next message. Porting over older configs has become kinda a thing I do lol. I don't charge for the work I do or anything but there is a link for tips when people want to.

I didn't thought about zipping them, thanks ^^
Marlin Anet E10 config.zip

I'll run a diff on them shortly check back in a hour or two. Once I have a copy on my fork you can test them.

k gonna need the full source copy as the config doesn't tell me everything. gonna check the source copy here on git-hub maybe it has what im looking for. copy here has what i was looking for so never mind.

running the last few checks on the updated config should have something ready to test shortly.

feedback on any alterations that maybe needed will be collected before dropping the PR.

I can't flash it on my printer right now, I'll try tomorrow and tell you if everything is ok for the pr.

Not anticipating any major issues just looking for confirmation. as all the hardware was existing supported stuff. I just set it up based on your original configurations.

I don't see any alterations to add, you can create the pr. Thanks for your work !

would like hardware confirmation that it runs on the printer some photos would be good ^^.
if you wanted to tip me for my work you can do so with this link https://www.paypal.me/vertabreaker if not that's ok to.

I've tried to flash the firmware but it keeps showing error on compiling about undefined values, I've checked and they're defined in the advenced config file.

Logs :

`sketch\src\feature\pause.cpp: In function 'bool unload_filament(const float&, bool, PauseMode)':

sketch\src\feature\pause.cpp:348:21: error: 'FILAMENT_UNLOAD_RETRACT_LENGTH' was not declared in this scope

do_pause_e_move(-(FILAMENT_UNLOAD_RETRACT_LENGTH) * mix_multiplier, (PAUSE_PARK_RETRACT_FEEDRATE) * mix_multiplier);

                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

sketch\src\feature\pause.cpp:348:21: note: suggested alternative: 'FILAMENT_UNLOAD_PURGE_LENGTH'

do_pause_e_move(-(FILAMENT_UNLOAD_RETRACT_LENGTH) * mix_multiplier, (PAUSE_PARK_RETRACT_FEEDRATE) * mix_multiplier);

                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                 FILAMENT_UNLOAD_PURGE_LENGTH

sketch\src\feature\pause.cpp:351:14: error: 'FILAMENT_UNLOAD_DELAY' was not declared in this scope

safe_delay(FILAMENT_UNLOAD_DELAY);

          ^~~~~~~~~~~~~~~~~~~~~

sketch\src\feature\pause.cpp:351:14: note: suggested alternative: 'FILAMENT_UNLOAD_PURGE_DELAY'

safe_delay(FILAMENT_UNLOAD_DELAY);

          ^~~~~~~~~~~~~~~~~~~~~

          FILAMENT_UNLOAD_PURGE_DELAY

unsure what you attempted to compile or with what but i posted a fully compiled copy.
here is a prep copy plus a fully compiled copy that will only compile with vscode due to the tiny size of the board and how poorly Arduino optimizes code.

Marlin-PR.zip

firmware.hex.zip

PR prep branch: https://github.com/Vertabreak/Marlin/tree/PR

gotten a chance to test yet?

Sorry for the delay. I tried to compile the hex file but didn't find how to do it, so i tried compiling your pr and I got those errors :

https://pastebin.com/NrRHYxNK

Then I've tried the official 2.0.x release with the new config files and I get errors too :

https://pastebin.com/BGvSFy5U

It doesn't seems to come from the config files.

compiled normal for me unsure what might be the issue on your end are you sure you selected the right platform to compile for?

I compiled it with vscode using platformio

but did you set the correct environment for that board.

the default is mega2560 that is not the board you have if i recall its a sanguino_atmega1284p

Yes, I imported the project with ATmega1284P selected and I've changed it too in the .ini file.

image

ATmega1284P isn't a valid environment could be the issue.

image

I didn't change the environment, it set it automatically when I chose the board while importing the arduino project.

image

the preped copy i posted literally is all setup you just open the folder and click build.

image

Sorry, my bad ^^ I was using an other pr. I tried and this time it successfully compiled. But now avrdude won't flash the board with the "not in sync" error.
image

is the right com port selected and are the drivers installed. also are you sure there is a bootloader on the device to even be able to flash it like this.
image

Yes, it is detected and It has a bootloader because i've already flashed old marlin versions on it.

its the correct com port? its not trying to flash like another com device on the system.

the default is mega2560 that is not the board you have if i recall its a sanguino_atmega1284p

So we're not troubleshooting a stock Anet E10 config?

marlin default is mega2560 not talking about the printer.

config is a direct port of the original.

It's clearly the good com port, I can access the printer with pronterface with the same port.

not really troubleshooting more like explaining how to use the tools required to flash the printer.

maybe the baud rate is set incorrectly?

unsure why just flashing the pre compiled hex file was the 2ed choice.

I've changed the baudrate, I'll tell you when it's finished.

kk finally flashing can get to the real testing.

It gave me the same error, I'm gonna try flashing it directly with avrdude without vscode.

i normally use octoprint to flash pre compiled hex files from vscode personally.

Yes, but I don't have any octoprint set-up

cura can flash hex files also.

you didn't happen to have cura open when trying to flash did you or anything else connected to the printer as that could block the connection or even interrupt it mid flash.

The port was free when I tried. I've tried to flash it with cura but it reset the printer when starting and disconnect it.

cura auto connects and reboots marlin its just how cura works its kinda dangerous cus if you open cura mid flash you just bricked it. i have considered going over to the cura GitHub and dropping a PR to stop the auto connect seen it brick way to many boards. just ordered my 7th printer invested in a in circuit programmer a while back after having the cura thing happen a few times just not thinking so i could burn fresh boot loaders and revive them.

That's a bit crappy from cura, did they release your pr ?

if you really insist on using arduino disable any non vital features and manage to get arduino to compile it vscode just does a better job optimizing code so you can fit more. it was only a idea about submitting a pull request to stop the auto connect in cura but that's how these projects happen.

id hate to make the suggestion but your on windows right have you tried rebooting lol.

Yep, I'm on windows, I'v already had the reflex to reboot it xD but it didn't change anything. I think it's more of a board config problem, I'm gonna try something with arduino ide

its all kinda weird cus Ive flashed the entire wrong boards hex file to the wrong printer several times it just doesn't boot up and i have to re-flash the right one.

Yes, it's really weird, only the prepd vscode project you've sent is compiling. An only the arduino ide can flash the board but it can't compile the project.

try the melzi environment in platformio
default_envs = melzi
or
default_envs =melzi_optiboot
apparently they are also ATmega1284P O.o

Trying that and updating you when it's finished ^^

i was digging around in the code and it says both them are also ATmega1284P.

But technically if they're the same they should give the same result, no ?

they seem to be variants so i'm thinking maybe.

It seems to be working !

It worked ! Thank you so much !

guess it was the wrong variant its kinda odd you see one listed the chip name you figure its that not something else named something else. a new quirk to add to my list i guess lol.

Yeah, it's always weird with those chinese printer. I even had to repair the board a few times and to finally replace it.

now that marlin 2 is on there take it for a spin let me know if adjustments need to be made.
i don't think there will be anything major as it was a direct port and it was a semi newer version 1.1.8 so the settings where easy to copy over unlike with way older marlin versions.

is the screen garbled at all do i need to add more delay?

No, the screen is good, I had the problem on older versions but not on this one. I'm gonna test everything and tell you if it's good

yea expecting the issue i built in some delay its a very common issue with them screens.

you could shoe horn in a few more features if you really needed to.

someone remind me to do testing and diagnostics on discord in private messages only from now on what a mess we made on the GitHub.

I hope nobody will need to find something here xD

The test print turn out to be pretty good
IMG_20191224_190750

2cents piece for comparison

looks like its all good to go then and needs no major edits. i would imagine fine tuning to get it just right but that isn't the point of example configs to be perfect. it prints direct port no additional edits needed gonna call this complete.

@boelle i think you can close this one.

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahsnuet09 picture ahsnuet09  路  3Comments

W8KDB picture W8KDB  路  4Comments

esenapaj picture esenapaj  路  3Comments

Matts-Hub picture Matts-Hub  路  3Comments

ceturan picture ceturan  路  4Comments