Open stcs1981 opened 2 years ago
I'm having similar problems with the TMC2130 SPI config.
Hello dear friend this is my configuration!!! Enviado desde Correohttps://go.microsoft.com/fwlink/?LinkId=550986 para Windows
De: @.> Enviado: viernes, 11 de noviembre de 2022 21:04 Para: @.> CC: Santiago Tomás Cabrera @.>; @.> Asunto: Re: [bigtreetech/Manta-M8P] SPI1 communication (Issue #9)
I'm having similar problems with the TMC2130 SPI config.
— Reply to this email directly, view it on GitHubhttps://github.com/bigtreetech/Manta-M8P/issues/9#issuecomment-1312150260, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHNKOI5XH7ZZ3WS53SAGO3DWH2RD3ANCNFSM57S4OWEQ. You are receiving this because you authored the thread.Message ID: @.***>
The link isn't working for me. Can you post your config here. Thanks
[stepper_x]
step_pin: PE2
dir_pin: PB4
enable_pin: !PC11
microsteps: 16
rotation_distance: 32
full_steps_per_rotation: 200
position_endstop: -5
position_min: -5
position_max: 310
homing_speed: 150
homing_retract_dist: 5
[tmc5160 stepper_x]
cs_pin: PC10
spi_software_sclk_pin: PA5
spi_software_mosi_pin: PA7
spi_software_miso_pin: PA6
run_current: 2
Enviado desde mi iPhone
El 11 nov 2022, a las 21:10, GregNuspel @.***> escribió:
The link isn't working for me. Can you post your config here. Thanks
— Reply to this email directly, view it on GitHubhttps://github.com/bigtreetech/Manta-M8P/issues/9#issuecomment-1312155329, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHNKOI6AJPCXF66IKSLPX2LWH2R4PANCNFSM57S4OWEQ. You are receiving this because you authored the thread.Message ID: @.***>
Thanks I hadn't put in the software spi info.
I went crazy and in the end this was the only way to make spi bus work!! Greetings and I hope I have helped you fellow sufferer!!!!
Enviado desde Correohttps://go.microsoft.com/fwlink/?LinkId=550986 para Windows
De: @.> Enviado: viernes, 11 de noviembre de 2022 22:13 Para: @.> CC: Santiago Tomás Cabrera @.>; @.> Asunto: Re: [bigtreetech/Manta-M8P] SPI1 communication (Issue #9)
Thanks I hadn't put in the software spi info.
— Reply to this email directly, view it on GitHubhttps://github.com/bigtreetech/Manta-M8P/issues/9#issuecomment-1312195778, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHNKOI2Q5B7EDGM3XS2YEPLWH2ZGDANCNFSM57S4OWEQ. You are receiving this because you authored the thread.Message ID: @.***>
Can confirm this issue as well. Simply providing the "cs" pin and the spi bus will not work. You MUST specify each pin, not just the CS pin in order to use drivers in spi mode.
spi_software_sclk_pin: PA5 spi_software_mosi_pin: PA7 spi_software_miso_pin: PA6
I also had the problem and switching over to motor power did the fix. For some reason regular board power didn't work. I used another psu but I don't think that matters. Global scaler was the issue as well. I even used the same voltage as the board power
It's solved!!! For a while now if you want I can send you the configuration when I get home later
Enviado desde mi iPhone
El 3 abr 2023, a las 17:13, InBlainSight @.***> escribió:
I also had the problem and switching over to motor power did the fix. For some reason regular board power didn't work. I used another psu but I don't think that matters. Global scaler was the issue as well. I even used the same voltage as the board power
— Reply to this email directly, view it on GitHubhttps://github.com/bigtreetech/Manta-M8P/issues/9#issuecomment-1494512894, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHNKOI7QXVS4UZMEOCJGC23W7LSKFANCNFSM57S4OWEQ. You are receiving this because you authored the thread.Message ID: @.***>
It's solved!!! For a while now if you want I can send you the configuration when I get home later
Enviado desde mi iPhone
El 3 abr 2023, a las 17:13, InBlainSight @.***> escribió:
I also had the problem and switching over to motor power did the fix. For some reason regular board power didn't work. I used another psu but I don't think that matters. Global scaler was the issue as well. I even used the same voltage as the board power
— Reply to this email directly, view it on GitHubhttps://github.com/bigtreetech/Manta-M8P/issues/9#issuecomment-1494512894, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHNKOI7QXVS4UZMEOCJGC23W7LSKFANCNFSM57S4OWEQ. You are receiving this because you authored the thread.Message ID: @.***>
I would be very happy to get the solution to this problem.
Thanks
-Greg
Sent from Proton Mail for iOS
On Mon, Apr 3, 2023 at 8:47 AM, Santiago Tomás Cabrera Salvachúa @.***> wrote:
It's solved!!! For a while now if you want I can send you the configuration when I get home later
Enviado desde mi iPhone
El 3 abr 2023, a las 17:13, InBlainSight @.***> escribió:
I also had the problem and switching over to motor power did the fix. For some reason regular board power didn't work. I used another psu but I don't think that matters. Global scaler was the issue as well. I even used the same voltage as the board power
— Reply to this email directly, view it on GitHubhttps://github.com/bigtreetech/Manta-M8P/issues/9#issuecomment-1494512894, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHNKOI7QXVS4UZMEOCJGC23W7LSKFANCNFSM57S4OWEQ. You are receiving this because you authored the thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
[stepper_x] step_pin: PE2 dir_pin: PB4 enable_pin: !PC11 microsteps: 16 rotation_distance: 32
full_steps_per_rotation: 200 position_endstop: 0 position_min: 0 position_max: 346 homing_speed: 200 homing_retract_dist: 5
[tmc5160 stepper_x] cs_pin: PC10 spi_software_sclk_pin: PA5 spi_software_mosi_pin: PA7 spi_software_miso_pin: PA6 run_current: 2
Enviado desde Correohttps://go.microsoft.com/fwlink/?LinkId=550986 para Windows
De: @.> Enviado: lunes, 3 de abril de 2023 18:11 Para: @.> CC: Santiago Tomás Cabrera @.>; @.> Asunto: Re: [bigtreetech/Manta-M8P] SPI1 communication (Issue #9)
I would be very happy to get the solution to this problem.
Thanks
-Greg
Sent from Proton Mail for iOS
On Mon, Apr 3, 2023 at 8:47 AM, Santiago Tomás Cabrera Salvachúa @.***> wrote:
It's solved!!! For a while now if you want I can send you the configuration when I get home later
Enviado desde mi iPhone
El 3 abr 2023, a las 17:13, InBlainSight @.***> escribió:
I also had the problem and switching over to motor power did the fix. For some reason regular board power didn't work. I used another psu but I don't think that matters. Global scaler was the issue as well. I even used the same voltage as the board power
— Reply to this email directly, view it on GitHubhttps://github.com/bigtreetech/Manta-M8P/issues/9#issuecomment-1494512894, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHNKOI7QXVS4UZMEOCJGC23W7LSKFANCNFSM57S4OWEQ. You are receiving this because you authored the thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
— Reply to this email directly, view it on GitHubhttps://github.com/bigtreetech/Manta-M8P/issues/9#issuecomment-1494605885, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHNKOI4IJAG2B5HNIODZEMLW7LZBZANCNFSM57S4OWEQ. You are receiving this because you authored the thread.Message ID: @.***>
For anyone who finds this issue in the future, I verified this does work with the M8P V1.1 as well.
NOTE: Because of the way the SPI bus works, all drivers using SPI must be configured as mentioned above with the 3 pins. The problem will persist if even just 1 of the drivers is still using spi_bus
.
For anyone who finds this issue in the future, I verified this does work with the M8P V1.1 as well.
NOTE: Because of the way the SPI bus works, all drivers using SPI must be configured as mentioned above with the 3 pins. The problem will persist if even just 1 of the drivers is still using
spi_bus
.
For M8P V1.1 HW SPI works but you have to specified spi bus speed, default one is too fast. I started somwhere on low side and tried to go up until i got error. M8P V2 hoewer does't have correct pin's for HW SPI so SW SPI is the only options. ( Pins PG6,7,8 of STM32H7xx doesn't have SPI function, why someone designed it in this way is mystery to me )
For anyone who finds this issue in the future, I verified this does work with the M8P V1.1 as well. NOTE: Because of the way the SPI bus works, all drivers using SPI must be configured as mentioned above with the 3 pins. The problem will persist if even just 1 of the drivers is still using
spi_bus
.For M8P V1.1 HW SPI works but you have to specified spi bus speed, default one is too fast. I started somwhere on low side and tried to go up until i got error. M8P V2 hoewer does't have correct pin's for HW SPI so SW SPI is the only options. ( Pins PG6,7,8 of STM32H7xx doesn't have SPI function, why someone designed it in this way is mystery to me )
Can you elaborate on how you configured it for M8P V2? I am doing
[tmc5160 stepper_x] cs_pin: PE3 spi_software_sclk_pin: PC10 spi_software_mosi_pin: PC12 spi_software_miso_pin: PC11 run_current: 2
This is giving me error. I think the pins are correct but I'm not super sure. I also have EBB 36 can with another use of spi bus:
heater_pin: EBBCan: PB13 sensor_type: MAX31865 sensor_pin: EBBCan: PA4 spi_software_sclk_pin: EBBCan:PA5 spi_software_mosi_pin: EBBCan:PA7 spi_software_miso_pin: EBBCan:PA6 rtd_nominal_r: 1000 rtd_reference_r: 4300 rtd_num_of_wires: 2 min_temp: 0 max_temp: 350
Would this mess with the stepper drivers' spi config?
Hello, I have "Global scaler" communication problems with various brands of TMC5160 drivers. In the examples, there are some pins in the table, there are others. I have tried several combinations and there is no way! This is the configuration
X Stepper on Motor1(B Motor)
[stepper_x] step_pin: PE2 dir_pin: !PB4 enable_pin: !PC11 endstop_pin: sht42:^PA0 rotation_distance: 32 microsteps:16
full_steps_per_rotation: 200 position_endstop:-11.5 position_max: 310
position_min: -11.5
homing_speed: 100
homing_retract_dist: 5
homing_positive_dir: false
[tmc5160 stepper_x]
cs_pin: PC10 spi_bus: spi1
spi_software_sclk_pin: PA5
spi_software_mosi_pin: PA7
spi_software_miso_pin: PA6
interpolate: True run_current: 2
stealthchop_threshold: 0
sense_resistor: 0.075
Thanks in advance!!!