ADXL345 Issue Octopus Max EZ, MCU wont boot when plugged in
Using EZ 5160 Pro drivers on the on the XY 48v and Z's 24v. Z's will soon be swapped out for EZ2209 drivers.
I believe I'm getting some sort of SPI conflict that's identical to https://github.com/bigtreetech/Manta-M8P/issues/27
Tripple check the wiring etc...
If I hot connect the ADXL345 post booting then home it throws an error of
Unable to write tmc spi 'stepper_z' register GLOBALSCALE
Are there any work arounds? Will a tool board address this?
GitHub
Manta M8P Boot Loop on SPI1 with ADXL345 ยท Issue #27 ยท bigtreetech/...
Connecting an ADXL345 to SPI1 on my Manta M8P causes the MCU to not boot. It seems like the bootloader is conflicting with some other device on SPI1 on boot. Can anyone confirm if there is any othe...
81 Replies
you could try enabling different overlays in
/boot/BoardEnv.txt
that is what https://github.com/Rat-OS/RatOS/blob/v2.x/src/modules/cb1spi/start_chroot_script does to enable SPI for the ADXLThat's for CB1 headers
@anon13._07409 It's plausible there's a problem with the SPI header on the EZ too, not sure. Let me make sure the config is using software spi which usually solves this issue (Octopus Pro for example).
Hmm.. Maybe in this case software spi is what's causing the issue.
Would need to do significant copy pasting to get rid of all the software_spi properties and change it to
spi_bus: spi4
Both drivers and adxl
Heey, maybe a perfect time to test out 2.1 config generation
first thing: copy paste the board include and remove the adxl345 section, then include that instead of the RatOS one.
What size is your printer? (i'm assuming it's a V-Core 3?)
And what extruder are you using, and is it connected to the Manta or a toolboard?
Once you've told me i can generate the stepper section for you (you would comment out everything else in that section).Something like this?
No reason to swap out Z's to 2209's btw, 5160's are great.
They're only problematic for low current motors, such as extruders.
Oh and do you want this on or off?
AFAIK it works perfectly fine on BTT drivers, haven't tested specifically on their EZ drivers though.
optimistic-goldโข12mo ago
Board is a Max Ez not Manta
Bondtech LGX Lite Extruder connected straight to the board, no tool board at the moment...
500mm V-Core 3.1
Not on please
Good to know on the Z's will do
Board is a Max Ez not MantaYeah sorry i misspoke, i already picked the Max EZ lol ๐
Bondtech LGX Lite Extruder connected straight to the board, no tool board at the moment... 500mm V-Core 3.1Aight gimme a sec!
@anon13._07409 Try that ๐
optimistic-goldโข12mo ago
This is going in the user override section correct?
No it replaces the stepper section
IT's everything that is normally in those includes
optimistic-goldโข12mo ago
[include RatOS/printers/v-core-3/steppers.cfg]
that file?
Generated with the development version of the 3.1
No the entire section
optimistic-goldโข12mo ago
got it
All of this gets replaced
optimistic-goldโข12mo ago
Klipper reports: ERROR
pin e_uart_pin used multiple times in config
going to take that part out for the moment
Ah yeah it's because the lgx-lite include loads the TMC2209 version of the 36STH20-1004AHG stepper include
You should keep the one in the section i posted
optimistic-goldโข12mo ago
got it added it back
And copy the rotation_distance from the lgx-lite config, and uncomment the lgx lite include.
optimistic-goldโข12mo ago
doest like the homing speed
Option 'homing_speed' is not valid in section 'stepper_z1'
Ah yeah, that's a bug in my branch. remove them from z1 and z2
And
[extruder]
as welloptimistic-goldโข12mo ago
pin stepper_spi_miso_pin is reserved for spi4
keep it on the x and y?
yes keep on x y and z
Are you still including the original octopus-max-ez config?
optimistic-goldโข12mo ago
yes
https://discord.com/channels/582187371529764864/1180574012519235648/1180631419886780416
first thing: copy paste the board include and remove the adxl345 section, then include that instead of the RatOS one.We have to make some changes to get rid of software_spi
You need to get rid of this
optimistic-goldโข12mo ago
[adxl345]
spi_software_sclk_pin: stepper_spi_sclk_pin
spi_software_mosi_pin: stepper_spi_mosi_pin
spi_software_miso_pin: stepper_spi_miso_pin
cs_pin: adxl345_cs_pin
Instead, you want:
optimistic-goldโข12mo ago
remove that
got it
there is no save button
what am i missing
Yeah that's why i asked you to copy the config file
Copy it to your root directory (where the printer.cfg is)
Then make your changes, and include that instead of the RatOS one.
optimistic-goldโข12mo ago
ahh got it
optimistic-goldโข12mo ago
optimistic-goldโข12mo ago
optimistic-goldโข12mo ago
pin stepper_spi_miso_pin is reserved for spi4
Once the underlying issue is corrected, use the "RESTART"
command to reload the config and restart the host software.
Printer is halted
that worked so far
No more "stepper_spi_miso_pin is reserved for spi4" error?
optimistic-goldโข12mo ago
yea thats fixed now that i repointed the include statement to that copied version
excellent
optimistic-goldโข12mo ago
rebooting now with hte AXDL attached to see
This whole topic made me aware that i need to make it a board definition parameter whether steppers/adxl run on software spi or not.
optimistic-goldโข12mo ago
it loaded
At least it's easy to deal with in 2.1
awesome
optimistic-goldโข12mo ago
going to try and run the calirbate
Then it's just a question if it works ๐
optimistic-goldโข12mo ago
LOL
Option 'accel_chip' in section 'resonance_tester' must be specified
optimistic-goldโข12mo ago
optimistic-goldโข12mo ago
ADXL345 resonance testing configuration
[resonance_tester]
accel_chip: adxl345
probe_points:
100,100,20 # 200mm printer
150,150,20 # 300mm printer # 200,200,20 # 400mm printer
250,250,20 # 500mm printer
3:41 PM
Invalid adxl345 id (got 0 vs e5).
3:41 PM
Invalid adxl345 id (got 0 vs e5).
This is generally indicative of connection problems
(e.g. faulty wiring) or a faulty adxl345 chip.
3:41 PM
MEASURE_AXES_NOISE
Yeah.. hmm.. I'm not sure if the Max EZ is going to work with an ADXL345 and SPI steppers connected at the same time. It's very possible it's just wiring issues though.
optimistic-goldโข12mo ago
will a tool board possibly solve this?
If you grow tired of trying to debug wiring issues there are 2 other options:
1) Toolboard with integrated ADXL
2) Connect the ADXL345 to the RPI, but if you have wiring issues, you'll prolly have wiring issues with that too.
yes
optimistic-goldโข12mo ago
will give those a go
thanks a ton!
Np!
optimistic-goldโข12mo ago
any way to send you a few $ for lunch or dinner ๐
or a beer
Click my profile pic, there's a paypal link in my bio ๐
Alternatively there's my github sponsors page
Appreciate it ๐
optimistic-goldโข12mo ago
Omg
I didn't know notes were personal ๐๐
optimistic-goldโข12mo ago
LOL
I'm such an idiot
optimistic-goldโข12mo ago
link
๐
optimistic-goldโข12mo ago
?
paypal.me/miklschmidt
optimistic-goldโข12mo ago
sent and enjoy!
Thank you!
optimistic-goldโข12mo ago
FYI went to home all the axis and it threw the following error
Unable to write tmc spi 'stepper_z' register GLOBALSCALER
Once the underlying issue is corrected, use the
"FIRMWARE_RESTART" command to reset the firmware, reload the
config, and restart the host software.
Printer is shutdown
Interesting
Did it work before that?
It's possible it's the ADXL that's messing with the driver communication
Especially if it's wired wrong. Did you disconnect it or is it still connected to the SPI header on the Octopus Max ?
optimistic-goldโข12mo ago
the ADXL has been removed / disconnected and it through that error
it would not start with it connected
it's all good though will try a toolboard anyways
i saved your edits for later and reverted to my last known working config
on a separate note, if interested, z-tilt is not following the cordinance and the printer head is going off board any things specific i should be looking for?
optimistic-goldโข12mo ago
These z-tilt points look like they would put the probe off the build plate
z_positions = pivot points
points = probe points.
Yeah somethings wrong with your kinematics
optimistic-goldโข12mo ago
ahh ok
ok will dig around
Ie. mechanically or driver / stepper wise
The stepper config i posted should very much have worked
Are you sure your drivers and cables are in the right slots?
And that the motor power jumpers is set correctly?
optimistic-goldโข12mo ago
one thing that has been suspect to me at least is i had to flip the stepper direction for both x and y
#############################################################################################################
PRINTER CONFIGURATION
Customize the defaults to your specific build
#############################################################################################################
[stepper_x]
dir_pin: !x_dir_pin # Add ! in front of pin name to reverse X stepper direction
rotation_distance: 40 # 40 for 20 tooth 2GT pulleys, 32 for 16 tooth 2GT pulleys
[stepper_y]
dir_pin: !y_dir_pin # Add ! in front of pin name to reverse Y stepper direction
rotation_distance: 40 # 40 for 20 tooth 2GT pulleys, 32 for 16 tooth 2GT pulleys
is it safe to assume that the back left stepper motor is X and the back right is Y?
That's likely fine. This varies from board to board, depends on the orientation of the JST headers and how you wired your steppers.
Nothing out of the ordinary
yes
Did you follow the installation manual? It asks you to check if your toolhead moves correctly by using SET_CENTER_KINEMATIC_POSITION
optimistic-goldโข12mo ago
yep its does
x y and z home all fine
And what exactly happens when you run Z_TILT_ADJUST ?
optimistic-goldโข12mo ago
my power jumpers are on the lower pin for X, Y and Z's, the extruder is as depicted
optimistic-goldโข12mo ago
taking a photo
since they are 48v
yep all good
optimistic-goldโข12mo ago
hits the build plate since the probe is off the build plate
when it was traveling into and from the front right corner it sounds like the steppers were fighting and losing steps
Try
G0 X0 Y0
that should position the nozzle on the front left corner of the build plate, if it doesn't, your endstops are all out of whack.
Right, rail binding / belt tension super uneven or too tight / loose pulleys / or you mounted something on the frame that blocks the movement.