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] FYSETC_CHEETAH_V20 compilation failed "#error "You cannot set E1_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN."" #24646

Closed
1 task done
J0hnMatrix opened this issue Aug 19, 2022 · 3 comments

Comments

@J0hnMatrix
Copy link

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

Yes, and the problem still exists.

Bug Description

Starting from Marlin-2.1.1, compilation failed if fans pins are declared in the configuration_adv.h

Compiling .pio\build\FYSETC_CHEETAH_V20\src\src\HAL\STM32\eeprom_flash.cpp.o In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:49, from Marlin\src\HAL\STM32\HAL.cpp:27: Marlin\src\HAL\STM32\../../inc/SanityCheck.h:2199:6: error: #error "You cannot set E1_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN." 2199 | #error "You cannot set E1_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN." | ^~~~~ In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:49, from Marlin\src\HAL\STM32\HAL_SPI.cpp:27: Marlin\src\HAL\STM32\../../inc/SanityCheck.h:2199:6: error: #error "You cannot set E1_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN." 2199 | #error "You cannot set E1_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN." | ^~~~~ Compiling .pio\build\FYSETC_CHEETAH_V20\src\src\HAL\STM32\eeprom_if_iic.cpp.o In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:49, from Marlin\src\HAL\STM32\MarlinSerial.cpp:27: Marlin\src\HAL\STM32\../../inc/SanityCheck.h:2199:6: error: #error "You cannot set E1_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN." 2199 | #error "You cannot set E1_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN." | ^~~~~ In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:49, from Marlin\src\HAL\STM32\Servo.cpp:27: Marlin\src\HAL\STM32\../../inc/SanityCheck.h:2199:6: error: #error "You cannot set E1_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN." 2199 | #error "You cannot set E1_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN." | ^~~~~ In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:49, from Marlin\src\HAL\STM32\eeprom_bl24cxx.cpp:32: Marlin\src\HAL\STM32\../../inc/SanityCheck.h:2199:6: error: #error "You cannot set E1_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN." 2199 | #error "You cannot set E1_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN." | ^~~~~ In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:49, from Marlin\src\HAL\STM32\eeprom_flash.cpp:27: Marlin\src\HAL\STM32\../../inc/SanityCheck.h:2199:6: error: #error "You cannot set E1_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN." 2199 | #error "You cannot set E1_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN." | ^~~~~ *** [.pio\build\FYSETC_CHEETAH_V20\src\src\HAL\STM32\HAL.cpp.o] Error 1 *** [.pio\build\FYSETC_CHEETAH_V20\src\src\HAL\STM32\HAL_SPI.cpp.o] Error 1 *** [.pio\build\FYSETC_CHEETAH_V20\src\src\HAL\STM32\MarlinSerial.cpp.o] Error 1 *** [.pio\build\FYSETC_CHEETAH_V20\src\src\HAL\STM32\eeprom_bl24cxx.cpp.o] Error 1 *** [.pio\build\FYSETC_CHEETAH_V20\src\src\HAL\STM32\Servo.cpp.o] Error 1 In file included from Marlin\src\HAL\STM32\../../inc/MarlinConfig.h:49, from Marlin\src\HAL\STM32\eeprom_if_iic.cpp:32: Marlin\src\HAL\STM32\../../inc/SanityCheck.h:2199:6: error: #error "You cannot set E1_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN." 2199 | #error "You cannot set E1_AUTO_FAN_PIN equal to CONTROLLER_FAN_PIN." | ^~~~~ *** [.pio\build\FYSETC_CHEETAH_V20\src\src\HAL\STM32\eeprom_flash.cpp.o] Error 1 *** [.pio\build\FYSETC_CHEETAH_V20\src\src\HAL\STM32\eeprom_if_iic.cpp.o] Error 1

image
image

I see that some pins are declared differently in the 'pins_FYSETC_CHEETAH_V20.h' file and I don't know if I can safely use the file from 2.1 (that compile successfully) into 2.1.1

Please find attached 'configuration.h' and 'configuration_adv.h' from Marlin 2.1 and 2.1.1
[Marlin-2.1.1_cheeta
Marlin-2.1_cheetah_v2.zip
h_v2.zip](https://github.com/MarlinFirmware/Marlin/files/9379919/Marlin-2.1.1_cheetah_v2.zip)

Bug Timeline

New bug

Expected behavior

Compile success

Actual behavior

Compile failed

Steps to Reproduce

No response

Version of Marlin Firmware

2.1.1

Printer model

Creality Ender 3

Electronics

FYSETC Cheetah 2.0 board

Add-ons

No response

Bed Leveling

ABL Bilinear mesh

Your Slicer

Prusa Slicer

Host Software

OctoPrint

Don't forget to include

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

Additional information & file uploads

No response

@ellensp
Copy link
Contributor

ellensp commented Aug 19, 2022

This was patched in bugfix 13 days ago.. #24593

nope its not it...

same sort of issue though...

@ellensp
Copy link
Contributor

ellensp commented Aug 19, 2022

The above PR fixes it
https://github.com/MarlinFirmware/Marlin/pull/24648/files

@ellensp ellensp closed this as completed Aug 19, 2022
@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 Oct 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants