Skip to content

[BUG] GD32 library doesn't work (warnings) #1533

@classicrocker883

Description

@classicrocker883

Did you test with a precompiled firmware?

Yes, and the problem still exists.

Bug Description

After manually fixing the library link in proui.py by adding:

  gd32f10 = _GetMarlinEnv(MarlinEnv, "MAPLE_STM32F1")

  elif gd32f10:
    arch = "gd32f10/"
    print("GD32F1 Architecture detected")

these are the warnings I get from compiling

Marlin/lib/proui/libproui.a(proui_ex.cpp.o): In function `ProUIEx::setRunoutState(unsigned long)':
(.text._ZN7ProUIEx14setRunoutStateEm+0x2): warning: undefined reference to `pinMode'
Marlin/lib/proui/libproui.a(proui_ex.cpp.o): In function `FilamentSensorBase::poll_runout_pins()':
(.text._ZN18FilamentSensorBase16poll_runout_pinsEv[_ZN18FilamentSensorBase16poll_runout_pinsEv]+0x24): warning: undefined reference to `analogInputPin'
(.text._ZN18FilamentSensorBase16poll_runout_pinsEv[_ZN18FilamentSensorBase16poll_runout_pinsEv]+0x28): warning: undefined reference to `digitalPin'
(.text._ZN18FilamentSensorBase16poll_runout_pinsEv[_ZN18FilamentSensorBase16poll_runout_pinsEv]+0x2c): warning: undefined reference to `FastIOPortMap'
Marlin/lib/proui/libproui.a(printingpro.cpp.o): In function `PrintingPro::hmiPrinting()':
(.text._ZN11PrintingPro11hmiPrintingEv+0x2): warning: undefined reference to `millis'
Marlin/lib/proui/libproui.a(menus.cpp.o): In function `hmiMenu()':
(.text._Z7hmiMenuv+0x2): warning: undefined reference to `millis'

Undefined references to:

  1. millis -In function PrintingPro::hmiPrinting / hmiMenu
  2. pinMode - In function ProUIEx::setRunoutState
  3. FastIOPortMap, digitalPin, analogInputPin - In function FilamentSensorBase::poll_runout_pins

Bug Timeline

most recent commit Jan 7

Expected behavior

No warnings, firmware should work.

This should be an easy fix

Actual behavior

When FILAMENT_RUNOUT_SENSOR is enabled, the pin type undefined warnings appear.
Undefined millis() appears no matter what.

Steps to Reproduce

  1. Load default Ender-3 V2/S1 or Voxelab Aquila configs
  2. Change MOTHERBOARD to BOARD_VOXELAB_AQUILA
  3. In platformio.ini, change default_envs = to GD32F103RC_voxelab_maple
  4. Compile
    4a. make sure FILAMENT_RUNOUT_SENSOR is enabled

Version of Professional Firmware

20260106

Printer model

Voxelab Aquila

Electronics

GD32 / v422

LCD/Controller

DWIN - ProUI

Other add-ons

No response

Bed Leveling

UBL Bilinear mesh

Your Slicer

None

Host Software

None

Additional information & file uploads

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Confirmed but not a bugThe behavior was confirmed but not considered a Professional firmware bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions