TMC eror

Open
#20 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp

Research direction

Start by reproducing the LPC1768 build and inspect .pio/libdeps/LPC1768/TMCStepper_ID5513/src/source/TMC_platforms.h alongside SW_SPI.cpp. Check how the LPC1768 platform and TMCStepper dependency are selected, then verify the project compiles without the reported LPC176x errors.

Written by the indexing model from the issue text.

Description

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

Dominant language
Python
Stars
9
Forks
14
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from platformio/platform-nxplpc

All issues in platformio/platform-nxplpc

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.