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

[FIXED] SKR Mini E3 & E3 DIP - Temp Error if USB connected on boot #14818

Closed
reloxx13 opened this issue Aug 2, 2019 · 8 comments
Closed

[FIXED] SKR Mini E3 & E3 DIP - Temp Error if USB connected on boot #14818

reloxx13 opened this issue Aug 2, 2019 · 8 comments
Labels
T: HAL & APIs Topic related to the HAL and internal APIs.

Comments

@reloxx13
Copy link
Contributor

reloxx13 commented Aug 2, 2019

Heya,

if USB is plugged in and i power on the printer and pi, the printer will STOP with a temp error.

USB Device: Pi3b+ with octoprint, 5v pin taped on the usb plug to avoid back-powering.
Occurs with SKR mini E3 and E3 DIP (Ender 3).
Both are STM32F1, could also hit other STM32F1 boards.

Check other both issues at the bottom.

With the suggested workaround
#define BOGUS_TEMPERATURE_GRACE_PERIOD 2000

The printer shows 72°C E0 and -14°C HB after boot with USB

I tried multiple reboots.

After unplugging USB and rebooting, the temp readings are okay.
Plugging USB in now, the temp readings stay okay.

Additional Information

I tried BTT fw and now im on latest marlin 2.0.x.
Config: https://github.com/reloxx13/Marlin/tree/my-skr-mini-e3/Marlin

Issues from Bigtreetech
bigtreetech/BIGTREETECH-SKR-mini-E3#2 (comment)
bigtreetech/BIGTREETECH-SKR-E3-DIP-V1.0#4

PR STM32F1 SPI1 bugfix #14679

i can grant a remote connection with USB (Windows/VSC) or a Pi with SSH and SPI pins connected if it helps debugging. Ping me in Discord.

@lovethat777
Copy link

Can confirm, had to set THERMAL_PROTECTION_GRACE_PERIOD to 6000 (ms)

@thinkyhead
Copy link
Member

@p3p — I wonder if we can do something to get readings stabilizing or the ADCs initialized in a safer manner, and in some way get temperature readings started before SD initialization, even in those cases where settings need to be fetched from SD. I'm not sure the latency improvement can do anything about the readings we get on bootup being equivalent to a thermal runaway.

In the meantime we could try add some logging to the temperature reading and SD init routines and see what's going on in detail during these long boot-ups.

@thinkyhead thinkyhead added the T: HAL & APIs Topic related to the HAL and internal APIs. label Aug 5, 2019
@reloxx13
Copy link
Contributor Author

reloxx13 commented Aug 5, 2019

Wouldnt it be enough to update the temp reading after boot?
It just sits there with the wrong temp on the LCD.

When i connect USB after it booted, in octoprint i can see the correct temp readings.
But im not sure now if i could start a print, sometimes it get bugged and wont execute any command, but it shows "connected".

@p3p
Copy link
Member

p3p commented Aug 5, 2019

@thinkyhead I can't really comment on whats going on with the STM boards, I don't know if they use any filtering (in addition to Marlins) like the LPC176x , as far as I can tell since adjusting the LPF the LPC176x doesn't have any issues at boot.

@opcow
Copy link

opcow commented Aug 8, 2019

Just installed an SKR E3 DIP. My bogus temps are on the hotend and bed. I see 298C on the HE using a USB cable with no 5v line, -14C on the HE or both heaters if powered. The workaround of using BOGUS_TEMPERATURE_GRACE_PERIOD doesn't help since the bogus temp is never resolves.

Edit: the difference in readings is unrelated to the 5v line being active. Upon further testing, a connection to my Linux hosts (a PC running Ubuntu 19.04, and a Raspberry Pi running Raspbian) causes the 298C reading. When connected to Windows 10 I get the -14C readings.

@lovethat777
Copy link

lovethat777 commented Aug 8, 2019

Are you using the lastest 2.0 bugfix release, if yes, THERMAL_PROTECTION_GRACE_PERIOD was just removed

@tomoinn
Copy link

tomoinn commented Aug 27, 2019

This is fixed, can confirm it's not an issue with the latest bugfix on skr mini e3

@reloxx13 reloxx13 changed the title [BUG] SKR Mini E3 & E3 DIP - Temp Error if USB connected on boot [FIXED] SKR Mini E3 & E3 DIP - Temp Error if USB connected on boot Aug 28, 2019
@github-actions
Copy link

github-actions bot commented Jul 4, 2020

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.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T: HAL & APIs Topic related to the HAL and internal APIs.
Projects
None yet
Development

No branches or pull requests

6 participants