-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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] HC32 + ProUI __iCliRetVal / __iSeiRetVal not declared in this scope
#27282
Comments
seems like the |
@shadow578 yes it compiles correctly. my only concern was your fix copies HAL/STM32/HAL.h and not HAL/STM32F1/HAL.h. so I know the HC32 is basically a clone of STM32F103, which one is it more like? the STM32, or STM32F1 (Maple)? |
not really, while some peripherals work similarily, both chips are fairly different still. For one, the STM32F103 has a Cortex M3 core, while the HC32F460 has a M4 core
Voxelab based their firmware's hal on the STM32F1. The version of the HC32 hal currently in marlin is loosely similar to the STM32 hal, but not in a way that normally allows copying code. In this case, the implement in STM32 and HC32 hal are similar since both directly use functions from CMSIS |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
paging @shadow578
These two functions not found:
Marlin\src\HAL\HC32\HAL.h
so apparently
__iSeiRetVal
and__iCliRetVal
are found in .platformio\packages\toolchain-atmelavr\avr\include\util\atomic.hI noticed in Marlin\src\HAL\STM32F1\HAL.h it has
#include <util/atomic.h>
which HC32 does not.The issue resides here, in libs\buzzer.cpp, in function
Buzzer::tick()
:Since ProUI is now an
EXTENSIBLE_UI
, this get's enabled as well, otherwise it would not be an issue.A workaround is to simply omit it if
defined(ARDUINO_ARCH_HC32)
:e.g.:
#if ENABLED(EXTENSIBLE_UI) && NONE(EXTUI_LOCAL_BEEPER, ARDUINO_ARCH_HC32)
ProUI doesn't have a useable
onPlayTone()
Otherwise somehow make the HC32/HAL.h utilize the atomic.h file.
or lastly remove ProUI from
EXTENSIBLE_UI
Bug Timeline
just noticed, but probably when ProUI became under the
EXTENSIBLE_UI
umbrellaExpected behavior
No response
Actual behavior
Error when compiling
Steps to Reproduce
HC32F460C_aquila_101
in platformio.iniVersion of Marlin Firmware
bugfix-2.1.x
Printer model
No response
Electronics
No response
LCD/Controller
No response
Other add-ons
No response
Bed Leveling
None
Your Slicer
None
Host Software
None
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
HC32configs.zip
Note
in
Configuration.h
you may need to edit#define HEATER_0_MAXTEMP 315
to be275
The text was updated successfully, but these errors were encountered: