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] Compilation Error with BOARD_MKS_ROBIN_NANO_V1_3_F4 - 'DMA2_Channel1_IRQn' was not declared in this scope #311

Open
Code-Assembly opened this issue Feb 14, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Code-Assembly
Copy link

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

Yes, and the problem still exists.

Bug Description

Compiled form master

Configuration.h

#define MOTHERBOARD BOARD_MKS_ROBIN_NANO_V1_3_F4
#define MKS_ROBIN_TFT35
#define TFT_COLOR_UI

Terminal output

Marlin\src\HAL\STM32\tft\tft_fsmc.cpp: In static member function 'static void TFT_FSMC::TransmitDMA_TI(uint32_t, uint16_t*, uint16_t)':
Marlin\src\HAL\STM32\tft\tft_fsmc.cpp:183:24: error: 'DMA2_Channel1_IRQn' was not declared in this scope
  183 |   HAL_NVIC_SetPriority(DMA2_Channel1_IRQn, 5, 0);
      |                        ^~~~~~~~~~~~~~~~~~
*** [.pio\build\mks_robin_nano_v1_3_f4\src\src\HAL\STM32\tft\tft_fsmc.cpp.o] Error 1

Marlin compiles successfully when reverting to commit: 4e2443a

Bug Timeline

2022/01/06

Expected behavior

For Marlin to produce a successful build when using the following configuration

#define MOTHERBOARD BOARD_MKS_ROBIN_NANO_V1_3_F4
#define MKS_ROBIN_TFT35
#define TFT_COLOR_UI

Actual behavior

Terminal output

Marlin\src\HAL\STM32\tft\tft_fsmc.cpp: In static member function 'static void TFT_FSMC::TransmitDMA_TI(uint32_t, uint16_t*, uint16_t)':
Marlin\src\HAL\STM32\tft\tft_fsmc.cpp:183:24: error: 'DMA2_Channel1_IRQn' was not declared in this scope
  183 |   HAL_NVIC_SetPriority(DMA2_Channel1_IRQn, 5, 0);
      |                        ^~~~~~~~~~~~~~~~~~
*** [.pio\build\mks_robin_nano_v1_3_f4\src\src\HAL\STM32\tft\tft_fsmc.cpp.o] Error 1

Steps to Reproduce

Compile Marlin off Master using VSCODE and platform IO with the following configuration

For Marlin to produce a successful build when using the following configuration

#define MOTHERBOARD BOARD_MKS_ROBIN_NANO_V1_3_F4
#define MKS_ROBIN_TFT35
#define TFT_COLOR_UI

Version of Marlin Firmware

Marlin 2.0.x

Printer model

Sapphire Plus 2.1

Electronics

MKS Robin Nano V1.3

Add-ons

BLTOUCH

Bed Leveling

UBL Bilinear mesh

Your Slicer

Prusa Slicer

Host Software

SD Card (headless)

Additional information & file uploads

Configuration_adv.txt
Configuration.txt

@n9jcv
Copy link

n9jcv commented Mar 10, 2022

Same exact bug trying to compile for Robin Nano V2
following these instructions;

Build config:
platformio.ini:

default_envs = mks_robin_nano35

Configuation.h:
#define SERIAL_PORT 3
#define MKS_TS35_V2_0
#define MOTHERBOARD BOARD_MKS_ROBIN_NANO_V2
#define TFT_LVGL_UI
#define TOUCH_SCREEN

Configuation_adv.h:
//#define USB_FLASH_DRIVE_SUPPORT
//#define MULTI_VOLUME

@solawc solawc self-assigned this May 23, 2022
@solawc solawc added the bug Something isn't working label May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants