Comments (5)
atomic comes with newer gcc versions
from grbl-lpc.
Ok, compile local in my windows system with arm toolchain works very well. One little thing:
grbl-lpc/current_control.cpp:67:47: error: 'round' is not a member of 'std' uint8_t(std::min(255.0, std::max(0.0, std::round(amps * CURRENT_FACTOR)))), ^
I renamed this to => 'round(..)' and it works ... nice.
from grbl-lpc.
@xpix I want to compile GRBL-LPC for CoreXY. What tools did you install to get it working. I make make and gcc-arm-non-eabi installed but when I make, I get a compile error
arm-none-eabi-g++ -DCORE_M3 -DLPC175x_6x -c -fdata-sections -ffunction-sections -fmessage-length=0 -fno-builtin -fno-delete-null-pointer-checks -fno-exceptions -fomit-frame-pointer -funsigned-char -mcpu=cortex-m3 -MMD -MP -mthumb -Os -Wall -Wextra -fno-rtti -std=gnu++14 -DCORE_M3 -DLPC175x_6x -c -fdata-sections -ffunction-sections -fmessage-length=0 -fno-builtin -fno-delete-null-pointer-checks -fno-exceptions -fomit-frame-pointer -funsigned-char -mcpu=cortex-m3 -MMD -MP -mthumb -Os -Wall -Wextra -Wno-unused-parameter -I CMSIS_5/CMSIS/Core/Include -I CMSIS_5/CMSIS/Driver/Include -I CMSIS_5/Device/ARM/ARMCM3/Include -I grbl -I grbl-lpc -I lpc17xx -I VCOM_lib -o build/src/coolant_control.o grbl/coolant_control.c
In file included from grbl-lpc/avr/interrupt.h:3:0,
from grbl/grbl.h:31,
from grbl/coolant_control.c:21:
lpc17xx/LPC17xx.h:99:101: fatal error: core_cm3.h: No such file or directory
compilation terminated.
make: *** [build/src/coolant_control.o] Error 1
from grbl-lpc.
Before you can make, you need to run 'git submodule init' and 'git submodule update' (as written in README.md)
from grbl-lpc.
I had the same error regarding 'round'.
grbl-lpc/current_control.cpp:67:47: error: 'round' is not a member of 'std'
No relation to submodule updates in this case as neither of the submodules for GRBL-LPC include GCC and this was a known GCC bug. Need to make sure you're using the latest version of GCC (arm-none-eabi-*).
https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
Download and install the toolchain. If windows 10, manually add path to the toolchain to your PATH. If windows 7, you can probably just select "add to path" option in the installer. Today, the most current version installs to "C:\Program Files (x86)\GNU Tools ARM Embedded\6 2017-q1-update", which is what you add to PATH. This is the proper way of fixing this error. Hope this helps someone! I wish the build documentation for GRBL was better. It's terrible for TinyG and G2 as well.
from grbl-lpc.
Related Issues (20)
- Error in checksum calculation in flash.cpp HOT 3
- Open drain outputs HOT 7
- Laser PWM PIN how can i find it? HOT 16
- how to compile master to binary HOT 1
- Compile thew project for MKSSBASE1.3 HOT 1
- Windows Comiple Issue HOT 2
- please help, compileeeeee HOT 1
- Setting up an MKS board - PWM/TTL HOT 7
- M9 not working on mks HOT 2
- Can this run on LPC1768? SKR boards? HOT 5
- pn:PA triggered on MKS HOT 4
- Compatible with Bigtreetech SKR V1.3?
- MKS Sgen L HOT 1
- Safety door detected as opened HOT 1
- Compiling in Platform IO HOT 1
- How to compile Firmware.bin without Arduino IDE (LPC17xx) HOT 1
- LPC boards HOT 11
- grbl-LPC on AZSMZ Mini Board HOT 5
- Homing does not move motors HOT 12
- arduino cnc sheild grbl setup
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grbl-lpc.