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

[BUG] Adding a Controller fan causes compilation error for LPC1769 BOARD_MKS_SGEN_L_V2 #25752

Closed
1 task done
rondlh opened this issue Apr 28, 2023 · 7 comments
Closed
1 task done

Comments

@rondlh
Copy link
Contributor

rondlh commented Apr 28, 2023

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

Yes, and the problem still exists.

Bug Description

After updating to the latest bugfix-2.1.x 2023-04-27 I got compilation errors when enabling USE_CONTROLLER_FAN.
I got the following errors
undefined reference to GcodeSuite::M106() undefined reference to GcodeSuite::M107()

Bug Timeline

New bug as of 2023-04-27

Expected behavior

Compile like it used to before 2023-04-27

Actual behavior

Compilation errors:
undefined reference to GcodeSuite::M106() undefined reference to GcodeSuite::M107()

Steps to Reproduce

  1. Start from the latest bugfix (2023-04-27)
  2. In platformio.ini set "default_envs = LPC1769"
  3. In configuration.h set the MOTHERBOARD to BOARD_MKS_SGEN_L_V2
  4. In configuration_adv.h enable USE_CONTROLLER_FAN
  5. In configuration_adv.h set "#define CONTROLLER_FAN_PIN P2_06"
  6. Compile... then I get:
undefined reference to `GcodeSuite::M106()
undefined reference to `GcodeSuite::M107()
  1. If I add "#define HAS_FAN 1" then compilation works fine.

Version of Marlin Firmware

Latest Marling 2.1.x bugfix 2023-04-27

Printer model

Custom

Electronics

MKS SGEN_L V2

Add-ons

No response

Bed Leveling

None

Your Slicer

None

Host Software

None

Don't forget to include

  • A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

Configuration_adv.zip

If I do the same configuration with another motherboard "default_envs = mks_monster8_usb_flash_drive_msc" and BOARD_MKS_MONSTER8_V1, then I DON'T have this problem.

@iLLiac4
Copy link

iLLiac4 commented Apr 28, 2023

Hi. Have the same error. Where have you added #define HAS_FAN 1 ?

@ellensp
Copy link
Contributor

ellensp commented Apr 28, 2023

broke on PR #25332

@rondlh
Copy link
Contributor Author

rondlh commented Apr 28, 2023

Hi. Have the same error. Where have you added #define HAS_FAN 1 ?

Added in Configuration.h
Of course this is a quick fix, not recommended!

@ellensp
Copy link
Contributor

ellensp commented Apr 28, 2023

yea issue is with source filtering deciding that M106 code is not needed and filtering it out..

@thinkyhead
Copy link
Member

This is now patched. Thanks for the report!

@rondlh
Copy link
Contributor Author

rondlh commented Apr 28, 2023

Confirmed, that fixed it, great job!

@github-actions
Copy link

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.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants