grblHAL / Plugins_motor

grblHAL motor plugins
Other
4 stars 8 forks source link

fatal error: trinamic2130.h #2

Closed drom89 closed 2 years ago

drom89 commented 3 years ago

Hello, so when compiling thru MCUX i get this error:

/src/trinamic/TMC2130_I2C_map.h:44:10: fatal error: trinamic2130.h: No such file or directory 44 | #include "trinamic2130.h" | ^~~~

So i just changed 44 | #include "trinamic2130.h" to #include "tmc2130.h" and its working, but im not sure if its correct.

EDIT: this issue should be in : Trinamic-library/TMC2130_I2C_map.h

drom89 commented 3 years ago

Anyway i have BTT TMC2209 with BTT SKR 1.4T and with #define TRINAMIC_ENABLE 2130 it still dont communicate with drivers :( I think 2209 dont have SPI and only have UART communication.

terjeio commented 3 years ago

/src/trinamic/TMC2130_I2C_map.h

This file (and the corresponding .c file) should no be there, delete them. I have removed them in the repo already.

I think 2209 dont have SPI and only have UART communication.

Correct, and the LPC176x driver does not support TMC2209 as BTT connected the UART lines to pins that cannot be routed to hardware UARTs. To support them software UARTs has to be implemented, and I have no plans to do so myself. I'll accept a pull request if you do so, ref. this comment.

drom89 commented 3 years ago

Thanks for reply, my programing skills are really bad, so i will order 2130 and 5160 and use them with SPI

terjeio commented 2 years ago

FYI soft UART support was added to the LPC17xx driver in january.