assembly Error in Atmel studio 6.1

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

in atmel studio 6.1 this error is occured :
unknown register name 'r28' in asm

Can anyone help me?

thanks for helps

Attachment(s): 

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

Look at the .s file to get an idea of how the asm() has been interpreted.

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

this cod in atmel studio 6 is correct and compile without any error!!!!!!
but in atmel studio 6.1 this error is for all r registers

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

Is the 6.1 project an avr-gcc project or an Atmel assembler project?

Your screen shot does not show compiler errors, but error markings from the "Naggy" plugin. Do you have Naggy installed in Atmel Studio 6.0.

Please clean and build the project. Then click on the Output tab, copy its entire content and paste it in a post here.

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

OUTPUT:
------ Rebuild All started: Project: TelephoneFinal, Configuration: Debug AVR ------
Build started.
Project "TelephoneFinal.cproj" (ReBuild target(s)):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreRebuild" in file "C:\Program Files (x86)\Atmel\Atmel Studio 6.1\Vs\Compiler.targets" from project "E:\My Projects\TelephoneFinal\TelephoneFinal\TelephoneFinal.cproj" (target "ReBuild" depends on it):
Task "RunCompilerTask"
C:\Program Files (x86)\Atmel\Atmel Studio 6.1\shellUtils\make.exe clean all
rm -rf ff.o mmc.o TelephoneFinal.o uart.o xitoa.o
rm -rf ff.d mmc.d TelephoneFinal.d uart.d xitoa.d
rm -rf "TelephoneFinal.elf" "TelephoneFinal.a" "TelephoneFinal.hex" "TelephoneFinal.lss" "TelephoneFinal.eep" "TelephoneFinal.map" "TelephoneFinal.srec"
Building file: .././ff.c
Invoking: AVR/GNU C Compiler : 3.4.3
"C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.3.1005\avr8-gnu-toolchain\bin\avr-gcc.exe" -funsigned-char -funsigned-bitfields -DDEBUG -DF_CPU=11059200 -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=atmega32 -c -std=gnu99 -MD -MP -MF "ff.d" -MT"ff.d" -MT"ff.o" -o "ff.o" ".././ff.c"
Finished building: .././ff.c
Building file: .././mmc.c
Invoking: AVR/GNU C Compiler : 3.4.3
"C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.3.1005\avr8-gnu-toolchain\bin\avr-gcc.exe" -funsigned-char -funsigned-bitfields -DDEBUG -DF_CPU=11059200 -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=atmega32 -c -std=gnu99 -MD -MP -MF "mmc.d" -MT"mmc.d" -MT"mmc.o" -o "mmc.o" ".././mmc.c"
Finished building: .././mmc.c
Building file: .././TelephoneFinal.c
Invoking: AVR/GNU C Compiler : 3.4.3
"C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.3.1005\avr8-gnu-toolchain\bin\avr-gcc.exe" -funsigned-char -funsigned-bitfields -DDEBUG -DF_CPU=11059200 -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=atmega32 -c -std=gnu99 -MD -MP -MF "TelephoneFinal.d" -MT"TelephoneFinal.d" -MT"TelephoneFinal.o" -o "TelephoneFinal.o" ".././TelephoneFinal.c"
Finished building: .././TelephoneFinal.c
Building file: .././uart.c
Invoking: AVR/GNU C Compiler : 3.4.3
"C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.3.1005\avr8-gnu-toolchain\bin\avr-gcc.exe" -funsigned-char -funsigned-bitfields -DDEBUG -DF_CPU=11059200 -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=atmega32 -c -std=gnu99 -MD -MP -MF "uart.d" -MT"uart.d" -MT"uart.o" -o "uart.o" ".././uart.c"
Finished building: .././uart.c
Building file: .././xitoa.S
Invoking: AVR32/GNU Assembler : 3.4.3
"C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.3.1005\avr8-gnu-toolchain\bin\avr-gcc.exe" -Wa,-gdwarf2 -x assembler-with-cpp -c -mmcu=atmega32 -MD -MP -MF "xitoa.d" -MT"xitoa.d" -MT"xitoa.o" -Wa,-g -o "xitoa.o" ".././xitoa.S"
Finished building: .././xitoa.S
Building target: TelephoneFinal.elf
Invoking: AVR/GNU Linker : 3.4.3
"C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.3.1005\avr8-gnu-toolchain\bin\avr-gcc.exe" -o TelephoneFinal.elf ff.o mmc.o TelephoneFinal.o uart.o xitoa.o -Wl,-Map="TelephoneFinal.map" -Wl,--start-group -Wl,-lm -Wl,--end-group -Wl,--gc-sections -mmcu=atmega32
Finished building target: TelephoneFinal.elf
"C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.3.1005\avr8-gnu-toolchain\bin\avr-objcopy.exe" -O ihex -R .eeprom -R .fuse -R .lock -R .signature "TelephoneFinal.elf" "TelephoneFinal.hex"
"C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.3.1005\avr8-gnu-toolchain\bin\avr-objcopy.exe" -j .eeprom --set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex "TelephoneFinal.elf" "TelephoneFinal.eep" || exit 0
"C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.3.1005\avr8-gnu-toolchain\bin\avr-objdump.exe" -h -S "TelephoneFinal.elf" > "TelephoneFinal.lss"
"C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.3.1005\avr8-gnu-toolchain\bin\avr-objcopy.exe" -O srec -R .eeprom -R .fuse -R .lock -R .signature "TelephoneFinal.elf" "TelephoneFinal.srec"
"C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.3.1005\avr8-gnu-toolchain\bin\avr-size.exe" "TelephoneFinal.elf"
text data bss dec hex filename
10874 184 1335 12393 3069 TelephoneFinal.elf
Done executing task "RunCompilerTask".
Task "RunOutputFileVerifyTask"
Program Memory Usage : 11058 bytes 33.7 % Full
Data Memory Usage : 1519 bytes 74.2 % Full
Done executing task "RunOutputFileVerifyTask".
Done building target "CoreRebuild" in project "TelephoneFinal.cproj".
Target "PostBuildEvent" skipped, due to false condition; ('$(PostBuildEvent)' != '') was evaluated as ('' != '').
Target "ReBuild" in file "C:\Program Files (x86)\Atmel\Atmel Studio 6.1\Vs\Avr.common.targets" from project "E:\My Projects\TelephoneFinal\TelephoneFinal\TelephoneFinal.cproj" (entry point):
Done building target "ReBuild" in project "TelephoneFinal.cproj".
Done building project "TelephoneFinal.cproj".

Build succeeded.
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

Projects Build Summary
----------------------
Time | Status | Project [Config|platform]
-------------|-----------|---------------------------------------------------------------------------------------------------
00:00:06.85 | Succeeded | TelephoneFinal\TelephoneFinal.cproj [Debug|AVR]

Total Time Elapsed 00:00:07.63

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

ERRORS:
Error 1 1643 : unknown register name 'r30' in asm
Error 3 1643 : unknown register name 'r29' in asm
Error 4 1643 : unknown register name 'r29' in asm
Error 2 1643 : unknown register name 'r28' in asm

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

yes "Naggy" plugin is installed in my atmel studio.

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

The program is compiled successfully, but these errors are displayed. If no problem what are these errors?

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

Have you tried R30 etc.? (capital R)

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

I added xitoa.S to a VS6.1 (no Naggy) project using the 3.4.2 toolchain and got no build/compile/assembler errors.

Perhaps Naggy has become confused. ?

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

Quote:
The program is compiled successfully, but these errors are displayed. If no problem what are these errors?

Yes, it seems that Naggy is failing here.

Please note that the Naggy error marking in the source is from Naggy itself, not from the compiler proper. (Yes, they are completely separate things.) Trust the compiler, since this is what is actually producing your binary.

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 I could ever download it I could check (I can't) but I believe the latest Naggy now has a menu entry to simply switch it off. That was because it's errors sometimes "get in the way". In my case it didn't understand C++.

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

Quote:
C++

We are The Bjarne - you have been assimilated. :wink:

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

js wrote:
Have you tried R30 etc.? (capital R)

yes

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

mikech wrote:
I added xitoa.S to a VS6.1 (no Naggy) project using the 3.4.2 toolchain and got no build/compile/assembler errors.

Perhaps Naggy has become confused. ?

I do not know,Maybe. my program has compiled correctly

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

thanks for johan and all my friends...