platformio / platform-nxplpc

NXP LPC: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/nxplpc
Apache License 2.0
8 stars 12 forks source link

TMC eror #20

Open miao084 opened 4 years ago

miao084 commented 4 years ago

help me, skr v1.3 At first normal compile then error. New download still has errors

In file included from .pio\libdeps\LPC1768\TMCStepper_ID5513\src\source\SW_SPI.h:4, from .pio\libdeps\LPC1768\TMCStepper_ID5513\src\source\SW_SPI.cpp:1: .pio\libdeps\LPC1768\TMCStepper_ID5513\src\source\SW_SPI.cpp: In member function 'void SW_SPIClass::init()': .pio\libdeps\LPC1768\TMCStepper_ID5513\src\source\TMC_platforms.h:22:22: error: 'LPC176x' has not been declared

define writeSCK_H LPC176x::delay_ns(40); LPC176x::gpio_set(sck_pin)

                  ^~~~~~~

.pio\libdeps\LPC1768\TMCStepper_ID5513\src\source\SW_SPI.cpp:21:3: note: in expansion of macro 'writeSCK_H' writeSCK_H; ^~~~~~ .pio\libdeps\LPC1768\TMCStepper_ID5513\src\source\TMC_platforms.h:22:45: error: 'LPC176x' has not been declared

define writeSCK_H LPC176x::delay_ns(40); LPC176x::gpio_set(sck_pin)

                                         ^~~~~~~

.pio\libdeps\LPC1768\TMCStepper_ID5513\src\source\SW_SPI.cpp:21:3: note: in expansion of macro 'writeSCK_H' writeSCK_H; ^~~~~~ .pio\libdeps\LPC1768\TMCStepper_ID5513\src\source\SW_SPI.cpp: In member function 'uint8_t SW_SPIClass::transfer(uint8_t)': .pio\libdeps\LPC1768\TMCStepper_ID5513\src\source\TMC_platforms.h:23:22: error: 'LPC176x' has not been declared

define writeSCK_L LPC176x::delay_ns(40); LPC176x::gpio_clear(sck_pin)

                  ^~~~~~~

.pio\libdeps\LPC1768\TMCStepper_ID5513\src\source\SW_SPI.cpp:26:3: note: in expansion of macro 'writeSCK_L' writeSCK_L; ^~~~~~ .pio\libdeps\LPC1768\TMCStepper_ID5513\src\source\TMC_platforms.h:23:45: error: 'LPC176x' has not been declared

define writeSCK_L LPC176x::delay_ns(40); LPC176x::gpio_clear(sck_pin)

                                         ^~~~~~~

.pio\libdeps\LPC1768\TMCStepper_ID5513\src\source\SW_SPI.cpp:26:3: note: in expansion of macro 'writeSCK_L' writeSCK_L; ^~~~~~ .pio\libdeps\LPC1768\TMCStepper_ID5513\src\source\TMC_platforms.h:20:23: error: 'LPC176x' has not been declared

define writeMOSI_H LPC176x::gpio_set(mosi_pin)

                   ^~~~~~~

.pio\libdeps\LPC1768\TMCStepper_ID5513\src\source\SW_SPI.cpp:30:28: note: in expansion of macro 'writeMOSI_H' !!(ulVal & (1 << i)) ? writeMOSI_H : writeMOSI_L; ^~~ compilation terminated due to -fmax-errors=5. *** [.pio\build\LPC1768\lib36e\TMCStepper_ID5513\source\SW_SPI.cpp.o] Error 1

SergDol commented 4 years ago

https://github.com/bigtreetech/BIGTREETECH-SKR-V1.3/issues/130