Skip to content

[BUG] BIGTREE_SKR_PRO_1v1 Pins mixed: calling (pin PF7) turns on (PF8) #16158

@carl1961

Description

@carl1961

Bug Description

Found while using RGB LED after Updating Marlin 2.0.x

Last working correctly (RGB LED) Marlin-bugfix-2.0.x "2019-11-10"
Configuration.h

#define RGB_LED
//#define RGBW_LED

#if EITHER(RGB_LED, RGBW_LED)
#define RGB_LED_R_PIN PF9
#define RGB_LED_G_PIN PF8
#define RGB_LED_B_PIN PF7
//#define RGB_LED_W_PIN -1
#endif

#define STRING_DISTRIBUTION_DATE "2019-11-10"

C:\BIGTREETECH\Working Mega CoreXY\newer\Marlin-bugfix-2.0.x\buildroot\share\PlatformIO\variants\BIGTREE_GENERIC_STM32F407_5X

First BROKEN Version traced back to Marlin-bugfix-2.0.x "2019-11-14"

#define STRING_DISTRIBUTION_DATE "2019-11-14"

Pins mixed:

turning Blue LED On (pin PF7) turns on Green LED (PF8) Blue LED never comes on so pin PF7 is not active.

I think issue started when

variants BIGTREE_GENERIC_STM32F407_5X was updated (changed), with (to) BIGTREE_SKR_PRO_1v1

C:\BIGTREETECH\Marlin-bugfix-2.0.x\buildroot\share\PlatformIO\variants
BIGTREE_SKR_PRO_1v1\PeripheralPins.c

I have not found any other issues, printer runs fine except for these pins used for RGB LED.

My Configurations

Required: Please include a ZIP file containing your Configuration.h and Configuration_adv.h files.
Configuration_Files.zip

working PeripheralPins.c
PeripheralPins.zip

Steps to Reproduce

  1. Compile Firmware Marlin-2.0.x for BIGTREE_SKR_PRO
  2. Issue M150 B255 from Pronterface or from Display LED Menu

Expected behavior:
Blue LED Light coming on (Pin PF7)
Actual behavior: [What actually happens]
Green LED comes on (Pin PF8)

EDIT: 12-9-2019 Temporary Fix

Replacing PeripheralPins.c from C:\BIGTREETECH\Marlin-2.0.x\buildroot\share\PlatformIO\variants\BIGTREE_SKR_PRO_1v1
with PeripheralPins.c from Marlin-bugfix-2.0.x "2019-11-10"

C:\BIGTREETECH\Working Mega CoreXY\newer\Marlin-bugfix-2.0.x\buildroot\share\PlatformIO\variants\BIGTREE_GENERIC_STM32F407_5X

Everything works that I tested.
Board BigTreeTech SKR Pro 1.1
Firmware: Latest Marlin-2.0.x with only file above changed (PeripheralPins.c)
BigtreeTech TMC 5160 1.2 on X, Y, Z LV8729 on E0
BLtouch 3.0 ( on BLTouch 4 pin header) VCC, PA1, GND , PA2
RGB LED on the pins :
#define RGB_LED_R_PIN PF9
#define RGB_LED_G_PIN PF8
#define RGB_LED_B_PIN PF7
Z-auto align (using 3 steppers)
Auto bed level
I2C eeprom Module on 4 pin I2C header PB7 (SCA) PB6 (SCL) GND VCC
Hotend fans come on at and above 50C and go off below 50C
Printing test Cube worked fine
Auto Power on/off PE10
X, Endstop PB10 Y Endstop PE12
Filament Runout Sensor PE15

Something in latest file PeripheralPins.c , causing pins mixed and others not working .
swapping PeripheralPins.c from older version, most likely not a correct procedure, but got me going.

NOTE: for Click to resume... Issue

also another old known not fixed issue, thing you will most likely need to do if your using the RGB is comment out some lines in "queue.cpp"
C:\BIGTREETECH\Marlin-2.0.x\Marlin\src\gcode\queue.cpp
around line 537
else {
SERIAL_ECHOLNPGM(MSG_FILE_PRINTED);
#if ENABLED(PRINTER_EVENT_LEDS)
printerEventLEDs.onPrintCompleted();
// #if HAS_RESUME_CONTINUE
// inject_P(PSTR("M0 S"
// #if HAS_LCD_MENU
// "1800"
// #else
// "60"
// #endif
// ));
// #endif
#endif // PRINTER_EVENT_LEDS
}
}
else if (n == -1)
SERIAL_ERROR_MSG(MSG_SD_ERR_READ);
so your printing does not pause at last few lines when the RGB goes to green signalling your finished . #15054... https://youtu.be/ipmvCMhUBXc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions