New compile if GRBL 1.1g on IDE 1.8.8

yisabell
Posts: 15
Joined: Tue Mar 20, 2018 6:23 pm

New compile if GRBL 1.1g on IDE 1.8.8

Post by yisabell » Sun Mar 03, 2019 1:12 am

I have been at this for days and in a nutshell here is the process I have followed per (https://github.com/grbl/grbl/wiki/Compiling-Grbl):
- downloaded and installed Arduino IDE 1.8.8 (all is fine and working)
- downloaded GRBL 1.1g as a ZIP file and extracted
- Ran IDE and loaded library GRBL (still all is fine)
In the Arduino\library folder
- modified config.h to remove reference to Z axis (not a problem, I've done this before with no issue)
- modified cpu_map.h to alter the PWM frequency to 7.8kHz
Compile/upload
The compile starts and seems to complete but then:

/home/pi/.arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-size -A /tmp/arduino_build_961788/grblUpload.ino.elf
Sketch uses 29724 bytes (92%) of program storage space. Maximum is 32256 bytes.
Global variables use 1633 bytes (79%) of dynamic memory, leaving 415 bytes for local variables. Maximum is 2048 bytes.
Low memory available, stability problems may occur.
/home/pi/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14/bin/avrdude -C/home/pi/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyAMA0 -b115200 -D -Uflash:w:/tmp/arduino_build_961788/grblUpload.ino.hex:i

avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "/home/pi/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino14/etc/avrdude.conf"
User configuration file is "/home/pi/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port : /dev/ttyAMA0
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
..............................


Any help would be appreciated. The CNC installation works fine, so nothing is broken, but cannot seem to be able to connect to
Using Port : /dev/ttyAMA0
Using Programmer : arduino
Overriding Baud Rate : 115200

Any help would be appreciated

Yves...

StuartB
Posts: 83
Joined: Wed Jun 07, 2017 2:25 pm

Re: New compile if GRBL 1.1g on IDE 1.8.8

Post by StuartB » Sun Mar 03, 2019 11:17 am

I usually use XLoader and the GRBL .Hex file to upload GRBL.
http://xloader.russemotto.com

GRBL .Hex file
https://github.com/gnea/grbl/releases

But first I use the eeprom_clear sketch to erase everything in the Auduino chip.
Attachments
Untitled9.jpg
Untitled9.jpg (78.56 KiB) Viewed 3205 times

yisabell
Posts: 15
Joined: Tue Mar 20, 2018 6:23 pm

Re: New compile if GRBL 1.1g on IDE 1.8.8

Post by yisabell » Fri Mar 08, 2019 10:22 pm

My whole reason to recompile/upload was to make some mods in the config.h and CPU_MAP.h.

How can I make those changes using a generic hex file.

Is there something I am missing.

Thanks for the response.

Yves...

Bertus Kruger
Site Admin
Posts: 1649
Joined: Wed Feb 03, 2016 10:26 pm
Location: Wellington , New Zealand
Contact:

Re: New compile if GRBL 1.1g on IDE 1.8.8

Post by Bertus Kruger » Tue Mar 12, 2019 6:56 pm

Arduino should do it but you will need to have a copy of GRBL on the PI to compile it.

Also GRBL V1.1F is the latest... No G

yisabell
Posts: 15
Joined: Tue Mar 20, 2018 6:23 pm

Re: New compile if GRBL 1.1g on IDE 1.8.8

Post by yisabell » Wed Mar 13, 2019 1:31 am

This was done on the PI. The upload to the Arduino on the controller keep failing for some reason.

I have done this before but this time it fails per the messages above.

yisabell
Posts: 15
Joined: Tue Mar 20, 2018 6:23 pm

Re: New compile if GRBL 1.1g on IDE 1.8.8

Post by yisabell » Sun Mar 17, 2019 3:25 pm

GRBL is on the PI and all is working, but I merely need to recompile to make a few change to the two files above.

Bertus Kruger
Site Admin
Posts: 1649
Joined: Wed Feb 03, 2016 10:26 pm
Location: Wellington , New Zealand
Contact:

Re: New compile if GRBL 1.1g on IDE 1.8.8

Post by Bertus Kruger » Sun Mar 17, 2019 6:14 pm

yisabell wrote:
Sun Mar 17, 2019 3:25 pm
GRBL is on the PI and all is working, but I merely need to recompile to make a few change to the two files above.
When you connect to the CNC hat, are you able to communicate with the current GRBL installed?

Have you unplugged all the wires from the CNC hat?

yisabell
Posts: 15
Joined: Tue Mar 20, 2018 6:23 pm

Re: New compile if GRBL 1.1g on IDE 1.8.8

Post by yisabell » Wed Mar 20, 2019 9:32 pm

Yes the configuration on the PI and hat are working. I have bCNC running ok.

But for some reason it wont upload. I have tried to reset the hat but to no avail.

My board selection is Arduino/Genuino Uno.

Port is /dev/ttyAMA0.

I may try downloading a new copy of GRBL in case of some corruption but I am quickly running out of things to try.

Yves...

yisabell
Posts: 15
Joined: Tue Mar 20, 2018 6:23 pm

Re: New compile if GRBL 1.1g on IDE 1.8.8

Post by yisabell » Thu Apr 18, 2019 11:54 pm

I did not unplug all the wires off of the hat.

Is that a requirement of the compile and upload?

Bertus Kruger
Site Admin
Posts: 1649
Joined: Wed Feb 03, 2016 10:26 pm
Location: Wellington , New Zealand
Contact:

Re: New compile if GRBL 1.1g on IDE 1.8.8

Post by Bertus Kruger » Mon Apr 22, 2019 7:45 pm

yisabell wrote:
Thu Apr 18, 2019 11:54 pm
I did not unplug all the wires off of the hat.

Is that a requirement of the compile and upload?
No need to unplug the wires...

You however need to make sure not other app is connected to the serial port at the time you want to upload the firmware.

Are you able to compile GRBL in Arduino...?

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests