grbl / grbl-sim

Compiles Grbl into an executable for your computer.
GNU General Public License v3.0
89 stars 76 forks source link

to get the simulator to compile with 0.9g.20140905 I had to do: #1

Closed alpharesearch closed 10 years ago

alpharesearch commented 10 years ago
  1. I'm using Linux Mint 17 so I did change the sim makefile to linux.
  2. grbl and grbl-sim at the same time with git clone didn't work easy... grbl-sim has one to many directories.
  3. In the /grbl/config.h I had to remove : #define config_h otherwise it was not finding the default defines?
  4. /grbl/print.c:209 I had to comment line 209 in print.c (some memory debug function, not used in sim)
  5. /grbl/sim/simulator.c:199: renamed get_direction_mask to get_direction_pin_mask
  6. Add the serial in front: rxbuffer* to serial_rxbuffer* /grbl/sim/serial.c:66: extern volatile uint8_t serial_rx_buffer_head; /grbl/sim/serial.c:67 extern volatile uint8_t serial_rx_buffer_tail; /grbl/sim/serial.c:69: rx_buffer_head' to serial_rx_buffer_head /grbl/sim/serial.c:71:rx_buffer_tail' to serial_rx_buffer_tail
  7. now after running the sim.sh it shows me the plot
alpharesearch commented 10 years ago

If #define VARIABLE_SPINDLE is set in grbl/config.h some parts are missing from /grbl/sim/avr/io.h

define WGM20 0

define COM2A1 7

define COM2A0 6

And I'm not 100% sure about the numbers I used...

alpharesearch commented 10 years ago

see my commit...