GrblGru “Grbl not found @ COM3” & The setup wizard is not supported for this controller

Of course, they are not. I am well aware the UNO is based on the ATmega328P and the MEGA on the ATmega2560.

In order to use grbl on the MEGA I modified the config.h library to use the mapping for the MEGA since the mapping for the UNO would never work for the MEGA. For example, when using the mapping for the UNO the .h files call for Digital Pins 9,10, 11 for the Limit Switches wich correspond to PORT B 1,2,3 respectively. However, if I were to flash the program to the MEGA and wire the same way I would never find PORT B 1,2,3 in those Digital Pins since 9,10,11 correspond to PH6, PB4, PB5 in the MEGA.

I modified the following line:

[ORIGINAL]
// Default cpu mappings. Grbl officially supports the Arduino Uno only. Other processor types
// may exist from user-supplied templates or directly user-defined in cpu_map.h
#define CPU_MAP_ATMEGA328P

[NEW]
// Default cpu mappings. Grbl officially supports the Arduino Uno only. Other processor types
// may exist from user-supplied templates or directly user-defined in cpu_map.h
#define CPU_MAP_ATMEGA2560

That clarified, I can now continue.

I could connect to the UGS without problem after several tries and now I can use the setup wizard. I can move the machine using different commands and it performs as expected (I can do arcs, lines,etc. ). However, I am having problems with the limit switches.

I, of course, verified the wiring is correct and that I am indeed recieving a signal (I verified this with a simple code I ran on another Arduino). Even when using UGS, whenever I trigger any limit siwtch I get the alarm. The problem I am having is that on the setup wizard window I do not see any change in colour in X Y Z. That is, they remain green. (Even if I do get the alarm on the UGS).

I tried with my UNO and I am having the same problem. The wizard is not changing colours whenever a limit is triggered.

I would like to know if someone has encountered the same problem and how they solved it.

By the bye, I do know there is a separate commit for the MEGA board; however, the differences are not that big of a deal. Thank you