AVR Studio 4.14 gives same "build error"

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

I am a new

My AVR Studio 4.14 with service pack "astudio4b589" and Windows XP and with STK500

At first, everything is fine, I test a few project and I can program 8515 with some or no warning, not errors.

However when I try to test another project, it gives an error below.

 

dep/m8def.dat:1: *** missing separator.  Stop.
Build failed with 1 errors and 0 warnings...

 

So far so good, but I continuously receive same error although I try different project, and projects has no relation with "m8def.dat"

 

Please help

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

It is highly likely that you, by mistake, have managed to edit m8def.dat. If all projects you've tried are dependent on that file, and you've placed an error in it, then they will all fail.

 

There is one complication here: AVR Studio 4.14 is very old and few, if any, folks around here are using it today. If you have both luck and patience, someone might help you with more specific advice.

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

If you are stuck with the greatest O/S M$ ever made (win XP) then at least update to a newer version of Studio like 4.18 (with SP3) or even 4.19 which is a little different in how it handles C projects but not much.

 

I suspect that you are also using a very old version of WinAvr.

projects has no relation with "m8def.dat"

somehow (maybe the makefile??) must be referring to the Mega8 chip and not the Mega8515 (or are you using the 90S8515??)

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Thank you very much Johan and John,

I wonder when Windows XP was young (and AVR Studio 4.14 too), was there any problem like that

 

Actually my chip is Atmega8515-16PU and I was load simple flashing program below and it works (and gives only 1 warning during compiling) 

 

// All LEDs are Connected to PORTA
// Author: embeddedcraft.org
// Company : IMBUENT TECHNOLOGIES PVT. LTD.
#include<avr/io.h> //HEADER FILE FOR AVR INPUT OUTPUT
#include<util/delay.h> //HEADER FILE FOR DELAY
#define F_CPU 8000000UL // Crystal Frequency 8 MHz
#define LED_PORT PORTA // All LEDs to PORTC
int main(void)
{

DDRA = 0xFF; //Configure PORTA as Output Port

while(1)
 {
 LED_PORT= 0xFF ; //All LED ON
 _delay_ms(250); //DELAY IN
 _delay_ms(250); //DELAY IN
 LED_PORT= 0x00 ; //All LED OFF
 _delay_ms(250); //DELAY IN 
_delay_ms(250); //DELAY IN
 }
 return(0);
}

 

Afterwards, I was load another LED test program and it contains "m8def.dat" when I try to compile, it starts to give an error. 

And I can not back to work with other program/project, all gives same error although there is no line with m8def.dat

 

Thank you again,

 

 

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

John,

Where can I find Studio 18 and SP3

Best regards,

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 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

That defines F_CPU after the include of util/delay.h?!? 

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

And by the way (as well as defining F_CPU correctly as Cliff hints above) _delay_ms can now go up to 65535 with the last version of winAvr2010 (you will need to download this too) so you don't need two lines with delay.

 

Also are you letting Studio generate the makefile or do you use your own?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

js wrote:

And by the way (as well as defining F_CPU correctly as Cliff hints above) _delay_ms can now go up to 65535 with the last version of winAvr2010 (you will need to download this too) so you don't need two lines with delay.

 

Also are you letting Studio generate the makefile or do you use your own?

 

Thank you John,

1. I completely uninstall Studio 4.14 and WinAVR20100110 and install Studio 4.18 with SP1 and SP3, afterwards install WnAVR20100110.

2. I am using Studio for "makefile"

3. Open a project

4. "Clean Current Configuration"

5. I get same error message with different project as below

dep/m8def.dat:1: *** missing separator.  Stop.

Build failed with 1 errors and 0 warnings...

 

 

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

So what does line 1 of the dat file say?

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

Post your project here (zip the whole thing) and I will try to compile with AS4.18.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

js wrote:

Post your project here (zip the whole thing) and I will try to compile with AS4.18.

Solved,

I copied the program and pasted it into newly opened project file.

Thank you very much, I think, I will need help again after that