Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨Mellow Fly E3 Pro V3 (STM32F407VG) #26214

Draft
wants to merge 20 commits into
base: bugfix-2.1.x
Choose a base branch
from

Conversation

jaysuk
Copy link
Contributor

@jaysuk jaysuk commented Aug 30, 2023

Description

Based on the Fly-E3-v2 mainboard that was merged into Marlin, this is for the Fly-E3-Pro-V3

Requirements

A Fly-E3-Pro-V3

Benefits

Adds support for the Fly-E3-Pro-V3 board

Configurations

Related Issues

None

@thisiskeithb
Copy link
Member

thisiskeithb commented Aug 30, 2023

Since this is a duplicate PR, it'd be better to send PRs to #25894 / https://github.com/IoakeimSogiakas/Marlin/tree/FLY_RRF_MARLIN

@jaysuk
Copy link
Contributor Author

jaysuk commented Sep 3, 2023

i've sent a message to the author but not heard anything back.
can we not just merge this one and close the other PR?

@thisiskeithb
Copy link
Member

can we not just merge this one and close the other PR?

That’s not how it generally works. Users collaborate via a single PR/fork, not open multiple PRs.

@ellensp
Copy link
Contributor

ellensp commented Sep 3, 2023

PR #25894 closed, superseded with this on of this one

@thisiskeithb
Copy link
Member

I guess that settles that.

@ellensp
Copy link
Contributor

ellensp commented Sep 3, 2023

original pr was not finished and seems to be abandoned. this is a step forward

@jaysuk
Copy link
Contributor Author

jaysuk commented Sep 3, 2023

@ellensp thanks

@jaysuk
Copy link
Contributor Author

jaysuk commented Sep 5, 2023

As far as I'm concerned this is ready to merge

@jaysuk
Copy link
Contributor Author

jaysuk commented Sep 15, 2023

anything else i need to do with this?

@ellensp
Copy link
Contributor

ellensp commented Sep 15, 2023

be patent, main developer is taking a break for an unknown period of time

@sjasonsmith
Copy link
Contributor

@jaysuk can you update this to work with the latest bugfix-2.1.x and push new changes? If so we should be able to do a final review of this and get it in soon.

@jaysuk
Copy link
Contributor Author

jaysuk commented Nov 21, 2023

@sjasonsmith updated to the latest. only had to change the boards file

@thisiskeithb
Copy link
Member

I also just pushed 55a109e to fix a few small things in pins_MELLOW_FLY_E3_PRO_V3.h.

@jaysuk
Copy link
Contributor Author

jaysuk commented Nov 21, 2023

thanks, didn't even think to check those. Once this is merged I will move on to the next board. I still have the Fly-CDYv3 and Super8 boards to do in the F4 range. Then its on to the H7 ones

Should be ≤ 20 chars to prevent cutoff
@sjasonsmith sjasonsmith self-assigned this Nov 21, 2023
Copy link
Contributor

@sjasonsmith sjasonsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that this supports a lot of peripherals with custom pinouts, such as motor expanders and various temperature sensors.

How confident are you that all of these are correct for this board?

@jaysuk
Copy link
Contributor Author

jaysuk commented Nov 21, 2023

i checked all the pins against the pinouts of the modules etc.
i maintain all the docs for the RRF port so i know the boards "fairly" well

@sjasonsmith sjasonsmith removed their assignment Apr 7, 2024
@thisiskeithb thisiskeithb changed the title Add Mellow-Fly-E3-Pro-V3 ✨Mellow Fly E3 Pro V3 (STM32F407VG) Apr 25, 2024
@thisiskeithb
Copy link
Member

PR has been brought up to date & I've pushed some more updates to pins_MELLOW_FLY_E3_PRO_V3.h. See my question above about flash drive support.

* Add DIAG jumper flag
* Assert TMC2209 defaults
* Update SDCARD connection format
@thisiskeithb
Copy link
Member

thisiskeithb commented Apr 25, 2024

I just discovered this note about the Mellow Fly E3 Pro V3's thermistor pull-ups:

Important

The Fly-E3-Pro-v3 uses a 2k2 resistor on the thermistor inputs rather than 4k7. Please make sure you add R2200 to each M308 in your config

I ran into this while working on LDO Leviathan board support and it means that users will have select thermistor 1000 for any thermistor they want to use and will have to define all the custom thermistor 1000 parameters found in Configuration_adv.h since Marlin assumes 4.7K as the default pull-up type for most thermistors.

I also saw the note about needing to add jumpers on Z2's output (I assume they are driven in series?), so adding a warning to the pins file would be a good idea.

@thisiskeithb thisiskeithb marked this pull request as draft April 25, 2024 15:52
@thisiskeithb thisiskeithb added Needs: Work More work is needed Needs: Discussion Discussion is needed labels Apr 25, 2024
@thosoo
Copy link

thosoo commented Feb 23, 2025

When building this now I get the following error message:

`Marlin\src\HAL\STM32\timers.cpp:328:40: error: static assertion failed: One or more timer conflict detected. Examine "timers_in_use" to help identify conflict.
  328 | static_assert(verify_no_timer_conflicts(), "One or more timer conflict detected. Examine \"timers_in_use\" to help identify conflict.");
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~^~
Compiling .pio\build\STM32F407VG_mellow_fly_e3\src\src\HAL\shared\backtrace\unwinder.cpp.o
*** [.pio\build\STM32F407VG_mellow_fly_e3\src\src\HAL\STM32\timers.cpp.o] Error 1
======================================= [FAILED] Took 46.96 seconds =======================================

Environment                Status    Duration
-------------------------  --------  ------------
STM32F407VG_mellow_fly_e3  FAILED    00:00:46.957
================================== 1 failed, 0 succeeded in 00:00:46.957 =================================

@mlewis-everley
Copy link

When building this now I get the following error message:

`Marlin\src\HAL\STM32\timers.cpp:328:40: error: static assertion failed: One or more timer conflict detected. Examine "timers_in_use" to help identify conflict.
  328 | static_assert(verify_no_timer_conflicts(), "One or more timer conflict detected. Examine \"timers_in_use\" to help identify conflict.");
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~^~
Compiling .pio\build\STM32F407VG_mellow_fly_e3\src\src\HAL\shared\backtrace\unwinder.cpp.o
*** [.pio\build\STM32F407VG_mellow_fly_e3\src\src\HAL\STM32\timers.cpp.o] Error 1
======================================= [FAILED] Took 46.96 seconds =======================================

Environment                Status    Duration
-------------------------  --------  ------------
STM32F407VG_mellow_fly_e3  FAILED    00:00:46.957
================================== 1 failed, 0 succeeded in 00:00:46.957 =================================

I just merged the latest bugfix-2.1.x into this branch locally and then built this and it has all compiled OK. Maybe try that?

Just wondering, what might need doing to get this added and if there is anything I can do to expedite things?

@mlewis-everley
Copy link

So been trying out Marlin with this board, both on bugfix and stable, can get it to compile and install, but I am getting some odd behavior.

  1. When stepper motors are enabled, H0 begins heating and carries on until max temp is triggered.
  2. Trying to run dual independent Z, the second Z motor runs backwards when increasing the height of the gantry and then runs in the correct direction when decreasing height. Basically, the second Z stepper always moves down. Trying to change INVERT_Z2_VS_Z_DIR seems to have no effect.

This behavior is consistent on both bugfix and stable.

@mlewis-everley
Copy link

OK, so I noticed that @thisiskeithb added some amends to the initial pull request, so I have applied those to my fork and the Z-stepper issue has gone. Though now all the steppers are REALLY loud, even in stealthchop mode. I am not sure if this is because I had to change the X_RSENSE value (it was 0.15)?

Just got to try and work out what is causing the heater issue...

@mlewis-everley
Copy link

Slowly chipping away at this, looks like the pin definitions for FAN2_PIN and FAN3_PIN are incorrect. They should be:

#ifndef FAN2_PIN
  #define FAN2_PIN                            PB6
#endif
#ifndef FAN3_PIN
  #define FAN3_PIN                            PB7
#endif

Currently FAN2_PIN is mapped to HE0 :-/.

Not sure what the preferred approach is here, does @jaysuk need to update their pull request?

@thisiskeithb
Copy link
Member

Though now all the steppers are REALLY loud, even in stealthchop mode. I am not sure if this is because I had to change the X_RSENSE value (it was 0.15)?

I'm not sure why that would be different.

Slowly chipping away at this, looks like the pin definitions for FAN2_PIN and FAN3_PIN are incorrect. They should be:
[...]
Not sure what the preferred approach is here, does @jaysuk need to update their pull request?

I've merged in the latest bugfix-2.1.x and updated the fan pins, so give this PR another try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants