Newbe got stuck..

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

Hello, guys. :-)
Having just bought the TinyUsb programmer and installed drivers and what not, I encounter a problem with the Programmers Notepad in WinAVR.
I'm running Windows Vista 64bit, and have copied the two dll's and stuff. The programmer is found and ok.

My questions:
a) Then I enter a small program in the notepad, and hit "Make all", I get this ion return:
"Compiling C: main.c
avr-gcc -c -mmcu=atmega32 -I. -gdwarf-2 -DF_CPU=8000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=./main.lst -std=gnu99 -MMD -MP -MF .dep/main.o.d main.c -o main.o
main.c:14: fatal error: opening dependency file .dep/main.o.d: No such file or directory
compilation terminated.
make.exe: *** [main.o] Error 1"

I cannot find that ./dep/main.o.d anywhere..
Should I not be able to "makeAll" with the TinyUsb programmer connedted, but no chip connected to the programmer?

ANY help is greatly appriciated.

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

> I cannot find that ./dep/main.o.d anywhere..

That's the reason you get that error.

You have a problem in your Makefile with dependencies generation/usage. It's no problem in programmer's notepad.

Many Makefiles are written in an idd way: They generate dependencies for the /next/ make run; yet they include dependencies in the current run.

This leads to artifacts if files are added/removed or when you start from scratch.

avrfreaks does not support Opera. Profile inactive.

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

Yep.. right. :-)
I got it to work now.
1) Got msys-1.0-vista64.zip and copied the unzipped file to C:\WinAVR-20100110\utils\bin
2) Made a shortcut to Programmers Notepad, settings:
Run in Win XP SP2-mode
Run as admin

Now it runs, even with Defender on. I'll kill the Defender if anything start to fail now and again.
Thanks. :-)

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

Additional note:
I wanted to run the "Make all" with usbtiny programmer connected, but without chips for two reasons:
1) Make sure that this half of the system is running ok.
2) I havn't received the chips yet, so...