need makefile for ATMEGA8515

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

I am moving from attiny2313 to ATMEGA8515 and I need to update my makefile ( I assume ). I am using sp12. Writing in c on linux. I assume I need new fuse settings and device names, etc. If someone could just point me to a working makefile and some source code so I can test it out that would eliminate all possibility of mistakes...

Attached is my 2313 makefile

Thanks!

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

Use mfile to construct your makefile. It comes with WinAVR, but there should be a linux version of it.

Regards,
Steve A.

The Board helps those that help themselves.

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

Thanks, I'll look, but I was hoping for something that already worked, so I could eliminate the possibility of software error ( at least )...

Anyone, I just want any working project I can cannibalize

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

Use Mfile, it works.

Stealing Proteus doesn't make you an engineer.

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

Quote:
Attached is my 2313 makefile

Nope.

As for source code:

// Switch/LED follower - out of memory, but stolen from the STK-500 manual
#include 

int main(void)
{
   DDRD = 0xFF;

   while (1)
   {
      PORTD = PINB;
   }
   return 0;
}

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

Oh come on people. I have an ancient linux dist that I use to program AVRs and I am having trouble getting through the dependencies of mfile. Isn't there a makefile out there somewhere for an 8515 that you want to share? I just want standard fuse setup... If you have mflie and it works so well please take a moment and generate a makefile for me.

Thanks.

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

Well here's the generic makefile_template as shipped with Mfile. You need to edit the lines at the top of the file so it applies to your project.

Attachment(s): 

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

Thanks!