Can I use AS4 to compile grbl?

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello, I am a neophyte in regards to AVR Studio. I have it primarily to upload hex files onto ATtiny461s for a customer's project/product. It is version 4 (I have not upgraded since 4 does the job). The hex files I upload were created by a friend - not me.

 

All the AVR programming I have done has been with ImageCraft, so I haven't even looked at AVR studio for anything but uploading hex files.

 

I am in the process of building a simple Pick-and-Place machine and have an Arduino with a CNC Shield. I have successfully loaded "grbl" to the Arduino and have established communication. I can manipulate the spindle commands and coolant on/off. I now want to modify "grbl" to enable the "M7" code to add "Mist Coolant" capability (I will actually be using the codes to actuate other features).

 

To enable "M7", a single line of code needs to be un-commented and the program re-compiled. I understand AVR Studio is capable of compiling GCC code, and I am having problems.

 

I found suggestions on line and followed these instructions (or at least I thought I did):

First create a new project and select your target processor and give it a name e.g. "grbl328p".

Delete the file grbl328p.c.

Copy all the grbl .c and .h files into the directory where this file was found.

Rename "main.c" to "grbl328p.c".

Add all the rest of the .c and .h files to the project.

I may not have done the last line properly.

 

When I try to "build", I get the following error:

gcc plug-in: No AVR Toolchain installation found. The AVR GCC plug-in can still be used if you set up your own build tools.

I am not sure if AS4 is capable of doing this (or if I need a newer version), and if it is, I obviously have done something wrong.

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. Antoine de Saint-Exupery (1900 - 1944)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

IIRC you had to d/l and install a toolchain in addition to d/l and installing studio with v4.

 

Jim

also an ICC user

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You've got two options for the compiler. Either (if the code was built for that era) you download WinAVr20100110 (avr-gcc 4.3.3) but then you need to follow the sticky at the top of the Studio forum for details of how to make AS4 "see" it. Otherwise just download "Atmel Toolchain for Windows" which will give you a 4.9.2 version of avr-gcc

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks Jim and Cliff. I guess I'll be downloading....

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. Antoine de Saint-Exupery (1900 - 1944)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

To finish the thread....

 

I downloaded WinAVR-20100110 and used it to compile the modified "grbl" code. After uploading it into the Arduino, I now have "M7" (mist coolant) working!

 

SUCCESS!!!

 

Thanks Jim and Cliff

 

Cris

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away. Antoine de Saint-Exupery (1900 - 1944)