TMC eror
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
- Domain
- build-system, embedded-iot
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from platformio/platform-nxplpc
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
platformio/platform-nxplpc#33 · 9 comments · 2 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
platformio/platform-nxplpc#32 · 10 comments ·
-
LPC55S69-EVKOpen
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
board feature platform
Difficulty 4/5 3-5 days Newbie friendliness 25/100
platformio/platform-nxplpc#29 · 4 comments ·
All issues in platformio/platform-nxplpc
Similar issues
-
docs(contributing): the two things that silently block a PRPossibly taken A pull request linked to this issue is open or already merged. Openavailable documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Nixitov/Riptide-Native#944 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
JTHCode/secretguard#24 ·
Maintainers usually reply within 1 day
-
area: middleware documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainers usually reply within 1 day