-
-
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] Weird MPCTEMP behavior #27083
Comments
I think the problem is in file I uncommented line 1683 to see what is going on I think the error happens on initialization of "modeled_block_temp". This looks very "strange" to me. Later the condition in For testing I added a |
This isn’t a universal issue. As mentioned in #27068 (comment), I can’t reproduce the issue. I use @tombrazier: Have you run into any recent issues with |
Am Mon, 13 May 2024 15:36:32 -0700
schrieb Keith Bennett ***@***.***>:
[...]
This isn’t a universal issue. As mentioned in
#27068 (comment),
I can’t reproduce the issue.
But I can reproduce it. With mainline-2.0.x as well as with
bugfix-2.1.x. Same behaviour
|
When I initially wrote the MPC code I used NAN as a flag to indicate that I vaguely recall someone, somewhere recently observed that NAN and the Anyway, @thomas374b, you could test the idea by using a special value that will definitely never be the temperature, say -1000000.0. Then on line 1624 replace |
OP’s motherboard uses the same STM32F103 processor as the SKR Mini E3 V2 that I use with |
perhaps they are using the obsolete mks_robin_e3_maple environment? |
Am Thu, 16 May 2024 00:17:50 -0700
schrieb tombrazier ***@***.***>:
[...]
Anyway, @thomas374b, you could test the idea by using a special value
that will definitely never be the temperature, say -1000000.0. Then
on line 1624 replace `if (isnan(hotend.modeled_block_temp))` with `if
(hotend.modeled_block_temp < -999999.0)`.
OK, I will try that and come back. Stay tuned ...
OK, that solution works.
|
Am Thu, 16 May 2024 00:44:38 -0700
schrieb ellensp ***@***.***>:
perhaps they are using the obsolete mks_robin_e3_maple environment?
No, I checked that. It is using HAL/STM32. There are also no
include dependencies to *maple*.h
|
Please use vscode terminal. (note this presumes you have set default_envs in platformio.ini) |
After installing the whole development environment on another PC it turned out that it was a problem with the build environment. The errorneous environment had more compiler options leftover from an optimization trial. The option causing the error was |
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
The heater does not heat when setting nozzle temp via LCD nor via terminal "M104 S80". I get thermal runaway faults. The heater is not switched on at all as I can see on the corresponding LED for the heaters MOSFET (which is not lit).
I can rule out hardware or wiring faults for 2 reasons
Bug Timeline
2024-05-11
Expected behavior
If the machine comes out of reset and nozzle temperature is far below 80°C Commands "M80; M104 S80" should switch on the heaters MOSFET i.e. start heating.
Actual behavior
I need to run MPC Autotune (M306 T) each time after RESET to make the heater work.
Saving parameters after MPC autotuning (M500) doesn't help, the newly determined MPC parameters are already almost the same as the previous ones stored in the EEprom. Although it seems to be neccessary to run "M306 T" once after each reset for some (hidden) initialization to get the heater up and running.
Steps to Reproduce
result => heating error thermal runaway
result => no heating error
Version of Marlin Firmware
bugfix-2.1.x (May 11 2024 14:59:10)
Printer model
Kossel
Electronics
MKS Robin E3D v1.1
LCD/Controller
REPRAP
Other add-ons
Neopixel LEDs
Bed Leveling
None
Your Slicer
None
Host Software
None
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
config.zip
I've added a log from serial terminal in the config.zip
The text was updated successfully, but these errors were encountered: