Open TheZoker opened 5 years ago
@teemuatlut Any idea about this?
v0.4.6 should fix this when it hits PIO library manager in a few days.
If you don't want to wait, you can update your platform.ini
to get the latest version with a direct git link.
The underlying reason is that STM32 wasn't yet defined as a Software Serial supported platform.
@teemuatlut Thanks! Now I directly tagged the master branch and plattform.io installed version 0.4.6 But now I get this error:
In file included from Marlin/src/module/stepper_indirection.h:47:0,
from Marlin/src/module/stepper.h:221,
from Marlin/src/Marlin.cpp:37:
.piolibdeps/BIGTREE_SKR_MINI/TMCStepper/src/TMCStepper.h:18:11: fatal error: SoftwareSerial.h: No such file or directory
************************************************************************
* Looking for SoftwareSerial.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:SoftwareSerial.h"
* Web > https://platformio.org/lib/search?query=header:SoftwareSerial.h
*
************************************************************************
#include <SoftwareSerial.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
Here is my config: https://github.com/TheZoker/Marlin/commit/766b767c0bcfacc7a656ecb31fb381e7159b61c1
@teemuatlut Any idea where this issue comes from?
It's trying to include a SoftwareSerial library that doesn't exist on your computer. Maybe @GerogeFu has a suggestion which one to use.
Alright, thanks I'm no expert, but isn't the purpose of with dependencies (/libraries), that everything needed to build the .bin file is handled by platformio without the need for the user to install anything else?
Yup, but that part hasn't been specified yet. All previous platforms, pre STM, have had the SoftwareSerial library included in the framework.
Seems like this could fix the issue, right? https://github.com/MarlinFirmware/Marlin/commit/b76bf93a2848d309192ba477fb421c5a52a57bcf
So its just to confirm I have compiled succesfully today on very same platform, but there is "TMC CONNECTION ERROR" on screen now and M122 reports all 4 UART comm beeing down:
M122
X Y Z E
Address 0 0 0 0
Enabled true true true true
Set current 800 800 800 570
RMS current 795 795 795 550
MAX current 1121 1121 1121 776
Run current 25/31 25/31 25/31 17/31
Hold current 12/31 12/31 12/31 8/31
CS actual 0/31 0/31 0/31 0/31
PWM scale 0 0 0 0
vsense 1=.18 1=.18 1=.18 1=.18
stealthChop false false false false
msteps 16 16 16 16
tstep 0 0 0 0
pwm
threshold
[mm/s]
OT prewarn false false false false
off time 3 3 3 3
blank time 24 24 24 24
hysteresis
-end -1 -1 -1 -1
-start 1 1 1 1
Stallguard thrs 0 0 0 0
DRVSTATUS X Y Z E
stst
olb
ola
s2gb
s2ga
otpw
ot
157C
150C
143C
120C
s2vsa
s2vsb
Driver registers:
X 0x00:00:00:00 Bad response!
Y 0x00:00:00:00 Bad response!
Z 0x00:00:00:00 Bad response!
E 0x00:00:00:00 Bad response!
Testing X connection... Error: All LOW Testing Y connection... Error: All LOW Testing Z connection... Error: All LOW Testing E connection... Error: All LOW
I'm not sure, if this is a Marlin or TMCStepper issue.
When I try to compile Marlin for my SKR E3 DIP with TMC2209, I get the following error (next to a lot of warnings):
Here is the complete log: https://gist.github.com/TheZoker/036b74969940e4888068b0baee3f761c