Git Product home page Git Product logo

Comments (5)

tbfleming avatar tbfleming commented on August 27, 2024

atomic comes with newer gcc versions

from grbl-lpc.

xpix avatar xpix commented on August 27, 2024

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.

mayhem2408 avatar mayhem2408 commented on August 27, 2024

@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.

cprezzi avatar cprezzi commented on August 27, 2024

Before you can make, you need to run 'git submodule init' and 'git submodule update' (as written in README.md)

from grbl-lpc.

hodgeac avatar hodgeac commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.