Цитата
Вкиньте его в туже папку где AVRASM32 в AVRstudio,так как он использует файлы из папки Appnotes.
В ПРОТЕУСЕ просто укажите путь и поменяйте Flags.
Сделал. Flags поменял для всех трех МК.
При попатке выполнить Build All выдало (привожу для одного МК, для остальных тоже самое):
Processing AZ_1_mega32.asm...
AVRASM AZ_1_mega32.asm -FI -L az_1_mega32.lst
C:\PROGRA~1\ATMEL\AVRTOO~1\AVRASS~1\AVRASM2.EXE: illegal option -- F
AVRASM: AVR macro assembler 2.0.8-BETA5 (build 25 Aug 20 2004 11:30:30)
Copyright © 1995-2004 ATMEL Corporation
usage: AVRASM2.EXE [options] file.asm
Options:
-f O|M|I|G - output file format:
-fO Debug info for simulation in AVR Studio (default)
-fM Motorola hex
-fI Intel hex
-fG Generic hex format
-f- No output file
-o ofile Put output in 'ofile'.
-d dfile Generate debug info for simulation in AVR Studio in 'dfile'.
Can only be used with the -f [M|I|G] option.
-l lfile Generate listing in 'lfile'
-m mfile Generate map in 'mfile'
-e efile Place EEPROM contents in 'efile'
-w Relative jumps are allowed to wrap for program ROM
up to 4k words in size
-C ver Specify AVR core version
-c Case sensitive
-1/-2 Turn on/off AVR Assembler version 1 compatibility.
-I dir Preprocessor: Add 'dir' to include search path
-i file Preprocessor: Explicitly pre-include file
-D name[=value] Preprocessor: Define symbol. If =value is
omitted, it is set to 1.
-U name Preprocessor: Undefine symbol.
-v verbosity [0-9][s]:
-vs Include target resource usage statistics
-vl Output low-level assembly code to stdout
-v0 Silent, only error messages printed
-v1 Error and warning messages printed
-v2 Error, warning, and info messages printed (default)
-v3-v9 Unspecified, increasing amounts of assembler internal dumps.
-V Format map and list files for Verilog.
-O i|w|e Overlap report: ignore|warning|error [error]
-W-b|+bo|+bi Byte operand out of range warning disable|overflow|integer
ERROR: avrasm2.exe reported error code (1L).
Extracting debug data from AZ_1_mega32.LST...
Processed 13737 lines.
Цитата
Разобрался я с Вашими "прыжками" по проге.
Нельзя указывать диррективу .org в секторах РАМ и ЕЕПРОМ у AVR раздельная память ,а не общая как
у моторол например.
Блин, у меня по другому никак нельзя - все ячейки строго расположены в памяти, и прога иногда использует именно адреса. Мне придется переделывать практически всё... А на это я пойти не могу.