gnea / grbl-Mega

An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on an Arduino Mega2560
https://github.com/gnea/grbl/wiki
Other
487 stars 223 forks source link

Problem with firmware and ramps 1.4 #118

Open RaffaelB opened 4 years ago

RaffaelB commented 4 years ago

hello, I have installed various firmware for arduino mega 2650 and ramps 1.4, many of these when I launch UGS, they release the error grbl has not finished loading, only one versions I can load and get communicated, but the engines do not respond, where I am wrong ?, thanks for the help, and sorry for my english.

Nandox7 commented 4 years ago

Having the same problem when tried this on RAMPS 1.4 + MEGA. Loaded the last version .hex file, after I can connect without any problem. When I send any movement command I can see the reported position changes but there is no movement done in the stepper motors.

Hardware, drivers an steppers are ok because I tested it in a second controller I have running GRBL with a arduino uno shield.

Nandox7 commented 4 years ago

Aha! found the issue. While comparing the pin mappin gin cpu_map.h noticed the ifdef statements.

Leaving it here for reference, need to comment & uncoment the ones bellow to use the proper pin mapping for the RAMPS 1.4 inside the config.h file.

// Define CPU pin map and default settings. // NOTE: OEMs can avoid the need to maintain/update the defaults.h and cpu_map.h files and use only // one configuration file by placing their specific defaults and pin map at the bottom of this file. // If doing so, simply comment out these two defines and see instructions below. //#define DEFAULTS_GENERIC //#define CPU_MAP_2560_INITIAL

// To use with RAMPS 1.4 Board, comment out the above defines and uncomment the next two defines

define DEFAULTS_RAMPS_BOARD

define CPU_MAP_2560_RAMPS_BOARD

Due to the way we compile grbl this is prone to happen as none of the config is visible.

RaffaelB commented 4 years ago

Thanks for the information, I check and try

Il giorno sab 21 mar 2020 alle ore 20:48 Nando notifications@github.com ha scritto:

Aha! found the issue. While comparing the pin mappin gin cpu_map.h noticed the ifdef statements.

Leaving it here for reference, need to comment & uncoment the ones bellow to use the proper pin mapping for the RAMPS 1.4 inside the config.h file.

// Define CPU pin map and default settings. // NOTE: OEMs can avoid the need to maintain/update the defaults.h and cpu_map.h files and use only // one configuration file by placing their specific defaults and pin map at the bottom of this file. // If doing so, simply comment out these two defines and see instructions below. //#define DEFAULTS_GENERIC //#define CPU_MAP_2560_INITIAL

// To use with RAMPS 1.4 Board, comment out the above defines and uncomment the next two defines

define DEFAULTS_RAMPS_BOARD

define CPU_MAP_2560_RAMPS_BOARD

Due to the way we compile grbl this is prone to happen as none of the config is visible.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl-Mega/issues/118#issuecomment-602094465, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKRYVRPIIL7424UAX2ZUJP3RIUKZBANCNFSM4LOZW57Q .