Skip to content

Spi flash backup update#27934

Merged
thinkyhead merged 3 commits intoMarlinFirmware:bugfix-2.1.xfrom
ellensp:SPI_FLASH_BACKUP-update
Jun 21, 2025
Merged

Spi flash backup update#27934
thinkyhead merged 3 commits intoMarlinFirmware:bugfix-2.1.xfrom
ellensp:SPI_FLASH_BACKUP-update

Conversation

@ellensp
Copy link
Contributor

@ellensp ellensp commented Jun 21, 2025

Description

The test for SPI_FLASH_BACKUP is in Marlin/src/inc/Conditionals-3-etc.h
#if ALL(SPI_FLASH, HAS_MEDIA, MARLIN_DEV_MODE)

But SPI_FLASH is set in pins and MARLIN_DEV_MODE is set in Configuration_adv.h
These two are not set before Conditionals-3-etc.h is called.

Moved the test to Marlin/src/inc/Conditionals-5-post.h

Now the the test works as expected M993 and M994 cause a watchdog timout.
So watchdog_refresh was added.

Requirements

A board that has SPI flash (such as BOARD_MKS_ROBIN_NANO_V3_1
MARLIN_DEV_MODE to add M993 aand M994
SDSUPPORT required for these gcodes

Benefits

Builds and works as expected

Related Issues

  • [BUG] Compilation Issues as Conditionals not correctly calculated/processed - M993/M994 #27922
  • @thinkyhead thinkyhead force-pushed the SPI_FLASH_BACKUP-update branch from f3a8896 to 1a6fed6 Compare June 21, 2025 21:47
    @thinkyhead thinkyhead merged commit f1f9bb2 into MarlinFirmware:bugfix-2.1.x Jun 21, 2025
    42 of 67 checks passed
    @ellensp
    Copy link
    Contributor Author

    ellensp commented Jun 21, 2025

     * Conditionals-4-adv.h
     * Conditionals set before pins.h and which depend on Configuration_adv.h.

    SPI_FLASH is set in the boards pins.h file

    This test does not work from Marlin/src/inc/Conditionals-4-adv.h

    And I verified it does not work.

    @ellensp ellensp deleted the SPI_FLASH_BACKUP-update branch June 22, 2025 00:56
    thinkyhead pushed a commit that referenced this pull request Jun 22, 2025
    thinkyhead pushed a commit that referenced this pull request Jun 22, 2025
    Crazy-Charles pushed a commit to Crazy-Charles/Marlin that referenced this pull request Jun 28, 2025
    bsdnomad pushed a commit to bsdnomad/Marlin that referenced this pull request Sep 25, 2025
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    [BUG] Compilation Issues as Conditionals not correctly calculated/processed - M993/M994

    2 participants