Imported Studio 4 Project, avrasm attiny10 fails

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

imported AVR Studio 4 project - seemed OK.
tried to debug with simulator and got this output:

------ Build started: Project: Polizei, Configuration: default AVR ------
Build started.
Project "Polizei.avrasmproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Programme\Atmel\AVR Studio 5.0\Vs\AvrAssembler.targets" from project "C:\Dokumente und Einstellungen\Besitzer\Eigene Dateien\AVRStudio\Polizei\Polizei\Polizei.avrasmproj" (target "Build" depends on it):
Task "RunAssembler"
C:\Programme\Atmel\AVR Studio 5.0\avrassembler\AvrAsm2.exe -fI -W+ie -I"..\..\..\ATTiny10_Polizei_complementaryPWM\" -itn10def.inc -d "C:\Dokumente und Einstellungen\Besitzer\Eigene Dateien\AVRStudio\Polizei\Polizei\default/Polizei.obj" "C:\Dokumente und Einstellungen\Besitzer\Eigene Dateien\AVRStudio\Polizei\Polizei\Polizei.asm" -o "C:\Dokumente und Einstellungen\Besitzer\Eigene Dateien\AVRStudio\Polizei\Polizei\default/Polizei.hex"
AVRASM: AVR macro assembler 2.1.43 (build 31 Feb 10 2011 16:10:55)
Copyright (C) 1995-2011 ATMEL Corporation
usage: AvrAsm2.exe [options] file.asm
Type 'avrasm2 -h' for help.
Done executing task "RunAssembler" -- FAILED.
Done building target "CoreBuild" in project "Polizei.avrasmproj" -- FAILED.
Done building project "Polizei.avrasmproj" -- FAILED.

Build FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

It is this project:
https://www.avrfreaks.net/index.p...

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

Hi.

Just an idea:

It might be a problem with having a space in the name of the file you are assembling.

Maybe you could try to assemble the same project in a location where there is no space in the file path?

Regards,

Torleif Sandnes
Atmel Norway

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

It appears that there is a bug in the code that calculates the relative path of the include directory (value of -I). The assembler doesn't seem to like the ending slash.

You can edit the include directory path by going to Project -> Properties -> Toolchain tab -> Assembler -> General. Click on the include path and then click the icon with the pencil on the top (to edit the path). You should get a window with the include path. Paste the following path
..\..\..\..\..\Downloads\Polizei_ATTiny10_complementaryPWM\Polizei_ATTiny10_complementaryPWM
there and hit Build -> Rebuild. You should hopefully see it build now.

I've added a ..\ and removed the trailing slash to the automatically generated path.

Regards

Senthil

 

blog | website

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

@torleifs: I copied the sources to C:\test (no space in the directory name):
------ Build started: Project: Polizei, Configuration: default AVR ------
Build started.
Project "Polizei.avrasmproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Programme\Atmel\AVR Studio 5.0\Vs\AvrAssembler.targets" from project "C:\test\AVRStudio\Polizei\Polizei\Polizei.avrasmproj" (target "Build" depends on it):
Using "RunAssembler" task from assembly "C:\Programme\Atmel\AVR Studio 5.0\Vs\AssemblerLib.dll".
Task "RunAssembler"
C:\Programme\Atmel\AVR Studio 5.0\avrassembler\AvrAsm2.exe -fI -W+ie -I"..\..\..\ATTiny10_Polizei_complementaryPWM\" -itn10def.inc -d "C:\test\AVRStudio\Polizei\Polizei\default/Polizei.obj" "C:\test\AVRStudio\Polizei\Polizei\Polizei.asm" -o "C:\test\AVRStudio\Polizei\Polizei\default/Polizei.hex"
AVRASM: AVR macro assembler 2.1.43 (build 31 Feb 10 2011 16:10:55)
Copyright (C) 1995-2011 ATMEL Corporation
usage: AvrAsm2.exe [options] file.asm
Type 'avrasm2 -h' for help.
Done executing task "RunAssembler" -- FAILED.
Done building target "CoreBuild" in project "Polizei.avrasmproj" -- FAILED.
Done building project "Polizei.avrasmproj" -- FAILED.

========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

@saaadhu:
I removed the trailing \ from the include path and ended up with a different error:
------ Build started: Project: Polizei, Configuration: default AVR ------
Build started.
Project "Polizei.avrasmproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Programme\Atmel\AVR Studio 5.0\Vs\AvrAssembler.targets" from project "C:\test\AVRStudio\Polizei\Polizei\Polizei.avrasmproj" (target "Build" depends on it):
Task "RunAssembler"
C:\Programme\Atmel\AVR Studio 5.0\avrassembler\AvrAsm2.exe -fI -W+ie -I"../../../ATTiny10_Polizei_complementaryPWM" -itn10def.inc -d "C:\test\AVRStudio\Polizei\Polizei\default/Polizei.obj" "C:\test\AVRStudio\Polizei\Polizei\Polizei.asm" -o "C:\test\AVRStudio\Polizei\Polizei\default/Polizei.hex"
AVRASM: AVR macro assembler 2.1.43 (build 31 Feb 10 2011 16:10:55)
Copyright (C) 1995-2011 ATMEL Corporation
[builtin](2): Including file 'C:\Programme\Atmel\AVR Studio 5.0\avrassembler\include\tn10def.inc'
C:\test\AVRStudio\Polizei\Polizei\Polizei.asm(1): Including file 'C:\Programme\Atmel\AVR Studio 5.0\avrassembler\include\tn10def.inc'
C:\test\AVRStudio\Polizei\Polizei\Polizei.asm(105): Including file 'C:\test\AVRStudio\Polizei\Polizei\playRAW.asm'
C:\test\AVRStudio\Polizei\Polizei\playRAW.asm(1): Including file 'C:\Programme\Atmel\AVR Studio 5.0\avrassembler\include\tn10def.inc'
C:\test\AVRStudio\Polizei\Polizei\Polizei.asm(109,0): Cannot find include file: pol_low.mix.16000.inc
C:\test\AVRStudio\Polizei\Polizei\Polizei.asm(113,0): Cannot find include file: pol_high.mix.16000.inc
Assembly failed, 2 errors, 0 warnings
The command exited with code 1.
Done executing task "RunAssembler" -- FAILED.
Done building target "CoreBuild" in project "Polizei.avrasmproj" -- FAILED.
Done building project "Polizei.avrasmproj" -- FAILED.

Build FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

In other words, there is a problem with relative include paths. I changed the path to absolute (it contains spaces!) and it works:
------ Build started: Project: Polizei, Configuration: default AVR ------
Build started.
Project "Polizei.avrasmproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Programme\Atmel\AVR Studio 5.0\Vs\AvrAssembler.targets" from project "C:\Dokumente und Einstellungen\Besitzer\Eigene Dateien\AVRStudio\Polizei\Polizei\Polizei.avrasmproj" (target "Build" depends on it):
Using "RunAssembler" task from assembly "C:\Programme\Atmel\AVR Studio 5.0\Vs\AssemblerLib.dll".
Task "RunAssembler"
C:\Programme\Atmel\AVR Studio 5.0\avrassembler\AvrAsm2.exe -fI -W+ie -I"C:\Dokumente und Einstellungen\Besitzer\Eigene Dateien\ATTiny10_Polizei_complementaryPWM" -itn10def.inc -d "C:\Dokumente und Einstellungen\Besitzer\Eigene Dateien\AVRStudio\Polizei\Polizei\default/Polizei.obj" "C:\Dokumente und Einstellungen\Besitzer\Eigene Dateien\AVRStudio\Polizei\Polizei\Polizei.asm" -o "C:\Dokumente und Einstellungen\Besitzer\Eigene Dateien\AVRStudio\Polizei\Polizei\default/Polizei.hex"
AVRASM: AVR macro assembler 2.1.43 (build 31 Feb 10 2011 16:10:55)
Copyright (C) 1995-2011 ATMEL Corporation
[builtin](2): Including file 'C:\Programme\Atmel\AVR Studio 5.0\avrassembler\include\tn10def.inc'
C:\Dokumente und Einstellungen\Besitzer\Eigene Dateien\AVRStudio\Polizei\Polizei\Polizei.asm(1): Including file 'C:\Programme\Atmel\AVR Studio 5.0\avrassembler\include\tn10def.inc'
C:\Dokumente und Einstellungen\Besitzer\Eigene Dateien\AVRStudio\Polizei\Polizei\Polizei.asm(105): Including file 'C:\Dokumente und Einstellungen\Besitzer\Eigene Dateien\AVRStudio\Polizei\Polizei\playRAW.asm'
C:\Dokumente und Einstellungen\Besitzer\Eigene Dateien\AVRStudio\Polizei\Polizei\playRAW.asm(1): Including file 'C:\Programme\Atmel\AVR Studio 5.0\avrassembler\include\tn10def.inc'
C:\Dokumente und Einstellungen\Besitzer\Eigene Dateien\AVRStudio\Polizei\Polizei\Polizei.asm(109): Including file 'C:\Dokumente und Einstellungen\Besitzer\Eigene Dateien\ATTiny10_Polizei_complementaryPWM\pol_low.mix.16000.inc'
C:\Dokumente und Einstellungen\Besitzer\Eigene Dateien\AVRStudio\Polizei\Polizei\Polizei.asm(113): Including file 'C:\Dokumente und Einstellungen\Besitzer\Eigene Dateien\ATTiny10_Polizei_complementaryPWM\pol_high.mix.16000.inc'
[...]
Build succeeded.
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

Thank you both for the help.