Skip to content

[BUG] error of building for Lerdge K with USB #21814

@sanek88lbl

Description

@sanek88lbl

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

Yes, and the problem still exists.

Bug Description

Don't build for LERDGEK_usb_flash_drive.

After last update there are new errors other than it.

Bug Timeline

No response

Expected behavior

No response

Actual behavior

...
Compiling .pio\build\LERDGEK_usb_flash_drive\src\src\HAL\STM32\timers.cpp.o
In file included from Marlin\src\HAL\STM32\tft\tft_fsmc.cpp:28:
Marlin\src\HAL\STM32\tft\tft_fsmc.h:55:12: error: 'SRAM_HandleTypeDef' does not name a type; did you mean 'UART_HandleTypeDef'?
   55 |     static SRAM_HandleTypeDef SRAMx;
      |            ^~~~~~~~~~~~~~~~~~
      |            UART_HandleTypeDef
In file included from Marlin\src\HAL\STM32\tft\tft_fsmc.cpp:28:
Marlin\src\HAL\STM32\tft\tft_fsmc.h:100:12: error: 'FSMC_NORSRAM_DEVICE' was not declared in this scope; did you mean 'FSMC_NORSRAM_TYPEDEF'?
  100 |   {PD_14,  FSMC_NORSRAM_DEVICE, FSMC_PIN_DATA}, // FSMC_D00
      |            ^~~~~~~~~~~~~~~~~~~
      |            FSMC_NORSRAM_TYPEDEF
Compiling .pio\build\LERDGEK_usb_flash_drive\src\src\HAL\STM32\usb_host.cpp.o
Marlin\src\HAL\STM32\tft\tft_fsmc.h:101:12: error: 'FSMC_NORSRAM_DEVICE' was not declared in this scope; did you mean 'FSMC_NORSRAM_TYPEDEF'?
  101 |   {PD_15,  FSMC_NORSRAM_DEVICE, FSMC_PIN_DATA}, // FSMC_D01
      |            ^~~~~~~~~~~~~~~~~~~
      |            FSMC_NORSRAM_TYPEDEF
Marlin\src\HAL\STM32\tft\tft_fsmc.h:102:12: error: 'FSMC_NORSRAM_DEVICE' was not declared in this scope; did you mean 'FSMC_NORSRAM_TYPEDEF'?
  102 |   {PD_0,   FSMC_NORSRAM_DEVICE, FSMC_PIN_DATA}, // FSMC_D02
      |            ^~~~~~~~~~~~~~~~~~~
      |            FSMC_NORSRAM_TYPEDEF
Compiling .pio\build\LERDGEK_usb_flash_drive\src\src\HAL\STM32\usb_serial.cpp.o
Marlin\src\HAL\STM32\tft\tft_fsmc.h:103:12: error: 'FSMC_NORSRAM_DEVICE' was not declared in this scope; did you mean 'FSMC_NORSRAM_TYPEDEF'?
  103 |   {PD_1,   FSMC_NORSRAM_DEVICE, FSMC_PIN_DATA}, // FSMC_D03
      |            ^~~~~~~~~~~~~~~~~~~
      |            FSMC_NORSRAM_TYPEDEF
compilation terminated due to -fmax-errors=5.
*** [.pio\build\LERDGEK_usb_flash_drive\src\src\HAL\STM32\tft\tft_fsmc.cpp.o] Error 1
============================================= [FAILED] Took 21.96 seconds =============================================

Environment              Status    Duration
-----------------------  --------  ------------
LERDGEK_usb_flash_drive  FAILED    00:00:21.965
======================================== 1 failed, 0 succeeded in 00:00:21.965 ======================================== 

Steps to Reproduce

  1. Clone last bugfix-2.0.x branch.
  2. Replace Configuration.h from my Configuration.zip
  3. Start Build from PROJECT TASKS -> LERDGEK_usb_flash_drive->General.

Version of Marlin Firmware

Marlin 2.0.8 (May 5 2021)

Printer model

Custom, B&R

Electronics

Lerdge K board

Add-ons

No response

Your Slicer

No response

Host Software

No response

Additional information & file uploads

No response

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