Problem compiling for ATTINY1604

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

I am unable to compile code for the ATTINY804. When attempting to compile, I get the message "device-specs/specs-attiny1604: No such file or directory"

 

I started with a fresh install of Atmelstudio,downloaded from the microchip website today and verified that the most current device pack for the attiny was installed. Then, I created a new c++ project, selecting the attiny1604 as the device and attempted to compile the autofilled code:

 

/*
 * GccApplication1.cpp
 *
 * Created: 10/3/2019 1:36:14 PM
 * Author : whcollins
 */ 

#include <avr/io.h>

int main(void)
{
    /* Replace with your application code */
    while (1) 
    {
    }
}
 

This topic has a solution.

Bill

Last Edited: Thu. Oct 3, 2019 - 09:12 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

whc wrote:
I get the message "device-specs/specs-attiny1604: No such file or directory"

Include Paths ?

 

https://www.avrfreaks.net/commen...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:

whc wrote:

I get the message "device-specs/specs-attiny1604: No such file or directory"

 

Include Paths ?

 

https://www.avrfreaks.net/commen...

 

It seems wrong that atmel studio would not know the path to files that are part of its own device pack, but I searched the C drive for specs-attiny1604 and found it at two locations:

C:\Program Files (x86)\Atmel\Studio\7.0\packs\atmel\ATtiny_DFP\1.3.229\gcc\dev\attiny1604\device-specs\specs-attiny1604
C:\Program Files (x86)\Atmel\Studio\7.0\packs\atmel\ATtiny_DFP\1.3.169\gcc\dev\attiny1604\device-specs\specs-attiny1604

I tried to add one of these to the include path and could drill down to the device-specs directory, but it appeared empty. I have verified that the specs-attiny1604 file does actually exist.

 

I tried compiling for the atmega32 and attiny10 and did not have any problems.

 

Bill

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

Ok, the problem adding the path was a stupid mistake on my part. The path to the file has been added and I still get the error.

Bill

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

I copied the specs-attiny804 and 1604 files to C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\lib\gcc\avr\5.4.0\device-specs and got past that error. I figured out where it should go by looking for the similar file for the attiny10. Now, it can't find crtattiny804.o

Bill

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

a WAG

Installation and Updates | Atmel Studio 7

[mid-page]

Downloading and Installing

...

  • Make sure your user has local administrator privileges

...

 

"Dare to be naïve." - Buckminster Fuller

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

I do have admin privileges.

 

I copied the .o file it was looking for into the directory with the object files for my project and moved onto the next error: Cannot find -lattiny1604

I'm not even sure what to make of this one, since the - looks like a linker directive. Searching for attiny1604 or lattiny1604 turns up no files to potentially copy

 

(I tried both 804 and 1604 before posting. I just noticed that I'm mixing up the two projects when posting error messages. The results are the same for either, except for the device name.)

 

I'm beginning to think carbon black (our extremely aggressive antivirus) is interfering with the update process for Atmel Studio. I'm going to try this on a PC that is not secured by corporate IT.

Bill

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

I installed Atmel Studio on a virtual machine that is free from some of IT's restrictions (and is 32 bit win7 instead of 64 bit) and it works fine. Time to go talk to IT.

Bill

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

indecision

Frequently Asked Questions | Atmel Studio 7

[near bottom]

How to improve studio performance for any supported version of Windows?

...

Exclude the following directories and files from your antivirus scanner:

  • The Atmel Studio installation directory, and all files and folders inside it
  • %AppData%\Roaming\Atmel directory, and all files and folders inside it
  • %AppData%\Local\Atmel directory, and all files and folders inside it
  • Your project directories

...

and more on anti-virus in that page (USB port, etc)

 

"Dare to be naïve." - Buckminster Fuller

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

whc wrote:
32 bit win7 instead of 64 bit

64 bit is working fine here ...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:
64 bit is working fine here ...

 

And here. BTW, just finished installing 6 months of win 7 updates. Phew. 3 more months left to get to current.

Last Edited: Thu. Oct 3, 2019 - 09:55 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Could you post the whole compile log?