Fixing macroassembler problem for ATMega16A for Multiprog

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

How to fix problem with macroassembler for atmega16a (  same  problem   expected  in the Atmel Studio 7, with atmega8a  and atmega8515  no problems   ): 

 

[CODE]

AVRASM: AVR macro assembler 2.1.42 (build 1796 Sep 15 2009 10:48:36)
Copyright (C) 1995-2009 ATMEL Corporation

C:\AssemblerApplication1\AssemblerApplication1\main1.asm(9): Including file 'C:\AssemblerApplication1\AssemblerApplication1\m16adef.inc'
C:\AssemblerApplication1\AssemblerApplication1\m16adef.inc(48): warning: Preprocessor: Redefinition of macro '__PART_NAME__'
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(9): info: 'C:\AssemblerApplication1\AssemblerApplication1\m16adef.inc' included from here
C:\AssemblerApplication1\AssemblerApplication1\m16adef.inc(47): info: Previous definition of '__PART_NAME__'
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(13): Including file 'C:\AssemblerApplication1\AssemblerApplication1\M16Aregdefs.asm'
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(14): Including file 'C:\AssemblerApplication1\AssemblerApplication1\M16AMacros.asm'
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(57): Including file 'C:\AssemblerApplication1\AssemblerApplication1\M16A_IOsubs.asm'
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(58): Including file 'C:\AssemblerApplication1\AssemblerApplication1\M16A_UART.asm'
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(59): Including file 'C:\AssemblerApplication1\AssemblerApplication1\M16A_powerio.asm'
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(90): Including file 'C:\AssemblerApplication1\AssemblerApplication1\Commands.asm'
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(113): Including file 'C:\AssemblerApplication1\AssemblerApplication1\Menu.asm'
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(130): Including file 'C:\AssemblerApplication1\AssemblerApplication1\M16A_Delays.asm'
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(132): Including file 'C:\AssemblerApplication1\AssemblerApplication1\M16A_testsubs.asm'
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(135): Including file 'C:\AssemblerApplication1\AssemblerApplication1\M16A_M27.asm'
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(137): Including file 'C:\AssemblerApplication1\AssemblerApplication1\M16A_W27.asm'
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(139): Including file 'C:\AssemblerApplication1\AssemblerApplication1\M16A_ROM27256.asm'
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): Including file 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm'
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(926): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(927): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(944): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(954): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(958): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(989): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(990): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(991): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1008): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1016): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1032): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1035): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1037): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1039): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1041): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1043): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1045): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1068): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1069): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1070): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1085): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1093): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1111): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1113): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1115): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1117): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1172): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1173): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1174): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1186): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1196): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1200): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1228): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1229): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1230): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1244): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1256): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1273): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1275): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1277): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1279): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1304): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1305): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1306): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1322): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1333): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1352): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1354): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1356): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1358): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1360): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1362): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1364): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1417): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1418): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1419): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1432): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1442): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1448): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1477): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1478): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1479): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1496): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1508): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1526): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1528): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1530): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1532): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1557): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1558): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1559): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1560): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1577): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1581): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1585): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1586): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1587): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1588): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1590): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1592): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1608): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1610): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1612): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1614): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1616): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1618): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1620): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1662): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1663): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1664): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1667): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1677): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1682): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1685): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1686): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1687): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1690): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1692): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1693): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1722): error: Relative branch out of reach
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm(1722): FATAL: Giving up after 100 errors
C:\AssemblerApplication1\AssemblerApplication1\main1.asm(140): info: 'C:\AssemblerApplication1\AssemblerApplication1\roms82s.asm' included from here
[\CODE]

 

 

Attachment(s): 

Last Edited: Sat. Nov 23, 2019 - 04:07 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

With ATMEGA8A no problems 

 

 

Attachment(s): 

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

Soft for my analog of  MAVR programmer (Multiprog)  for this tool (for debug , fix some bugs , but you can test USART  ).

Attachment(s): 

Last Edited: Sat. Nov 23, 2019 - 04:10 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

First guess is that the AVR make some changes when the flash pass 8k. It have an other layout of ISR table (4 byte not 2) because then rjmp (and rcall) can't reach everywhere.

That also make the code bigger (call and jmp is 4 byte rjmp and rcall only 2 ) so some old code with branches get's too big, and have to be rewritten (reverse test to jump over a jmp) 

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

in the file roms82s.asm , try changing all the " rcall" instructions to "call".

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

My program with fixed  bugs  

Attachment(s): 

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

I try to rebuild it for  'call'  for ATMEGA16a edition

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

Fixed 

Attachment(s): 

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

Very nice---Certainly a big & wonderful learning experience!

 

However, for schematics, never use pen--use pencil!!  Creating a big schematic with pen is a recipe for either disaster or a major mess.

Pencil & eraser keeps it nice and tidy!  Save the pen for the autographs you'll give when the project is working.

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!

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

Version 2 

Attachment(s): 

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

Circuit may be  modifyed for other ICs  (this is a default temporary fragment of  prototype of the circuit  for programming ) . 

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

Fix some bugs in the control algorithm  for circuit  and modify circuit. 

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

You can change time delays for program pulses for other devices, change Vcc,Vpp,Vpe control . 

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

Example of the my editor and hex reader (fix some bugs, change design, for Multiprog ver.>=2  )  :

Attachment(s): 

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

You can use it to rebuild    your MAVR programmer for W27C512 and other ICs (change  Vcc,Vpp,Vpe control, nG,nOE,nP ,nV, ESE2 control ) (prototype      http://kovlev.ru/tools.html#unpr   ,    http://kovlev.ru/tools/mavr.zip         )  and for  modding of the Multiprog  programmer as templates . 

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

Fix bug with button Power on ,Power off  names for appropriate  IDs 

[CPP]

 

 

   CreateWindowEx(WS_EX_CLIENTEDGE,"Button","Turn On power ",WS_CHILD | WS_VISIBLE | WS_TABSTOP| ES_CENTER, 
                 10, 30,120,30,hWnd,(HMENU)IDC_POWER_ON ,NULL,NULL); 

  CreateWindowEx(WS_EX_CLIENTEDGE,"Button","Turn Off power",WS_CHILD | WS_VISIBLE | WS_TABSTOP| ES_CENTER,
  140, 30,120,30,hWnd,(HMENU)IDC_POWER_OFF, NULL,NULL); 

[\CPP]

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

Version with fixed  bugs for Vpp,Vpe  ,Vcc, W27 subs (check for bugs ,optimize hard  , add some subroutines, time delays , add fast mode  , rebuild your MAVR programmer for Erase sub for W27C512, fix some subroutines for  82sxxx (not implemented for ATMEGA16a without 74HC595/597 or  74HC164/165 registers )  series  ).

Attachment(s): 

Last Edited: Sun. Dec 1, 2019 - 11:32 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How to use  program with  modifyed MAVR programmer (8515 edition)

Attachment(s): 

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

Prototypes of  circuits of the adapters  ( and how to use mega8a - circuit with adapter   prg6.gif          )

Attachment(s): 

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

Fixed bug with MAX232

Attachment(s): 

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

You can use  adapters from       http://ra4nal.qrz.ru/acrobat/prg2000.pdf    ,   http://ra4nal.qrz.ru/prgrd2.shtml                                     (or simplified analogs) with some ICs for this circuit  .

Last Edited: Sun. Dec 1, 2019 - 11:44 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Fix problem with PD5 (use buffer TTL) as nP_C1  (27128,2764),nG_C2(27256), nEP_C0 (2716)  : remap this pin on PD3 and add cbi xxx, sbi xxx into macroses for C2 , C1,C0 subroutines and initializing subroutine ,power control sub. ,use pull up for this pin , use PD5 with pull-down for Vpe_F3, use pull-up for PD4 for close outputs, use pull-down for PD5,PD6 for Vpe,Vpp .

For ATMEGA8A fuses LFUSE 0xFF,HFUSE 0xCF,LOCK 0xFF,

for ATMEGA8515 HFUSE 0xFF,LFUSE 0xFF,LOCK 0xFF

for ATMEGA16A LFUSE 0xFF,HFUSE 0x19(0x99,0x89), LOCK 0xFF

Attachment(s): 

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

Fix : nEP_C0 (2716)  map onto the PD5 TTL buffered  (pull down ) ,

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

Edition with  PD3 and PD5  ports ( cyberforum.ru , using modified   MAVR  and Multiprog  prototypes ):

Attachment(s): 

Last Edited: Fri. Dec 6, 2019 - 03:17 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

For fixing problem with address latches for W27C02 with 3 *74HC595  connect nOE_ADDR to 0 V , nRESET - inactive level (log.  1) or to the nRESET MCU , use 5-th  byte of command for additional address pins .

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

You can use ATMEGA16A,ATMEGA48A with 3 (2) latches , as in the circuit for atmega8a for W27C02, rebuild address load  subroutines for 3* shift_byte_sub  (8* shift_bit_sub )  subroutine, fix mask ,use additional register. 

Last Edited: Sat. Dec 7, 2019 - 12:18 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

bit remapper for Multiprog (for  creating your own multipage  ZX Spectrum BIOS with your own GNU OS ,  remap pins for  circuit  and your topology  ).

Attachment(s): 

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

I add "compare buffer with IC"

Attachment(s): 

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

Versions with compare with file

Attachment(s): 

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

For 27c020,27C040,27080 you can use 3* 74HC595 with ATMega16A(ATMega8A/48A) as 2*74HC595 in the Mega8A project and rebuild .asm and .hex for your IC, use 5-th byte of the command for extended address bus (A16-A19) , reload pages manually . 

Attachment(s): 

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

You can rebuild this program for AT27Cxxx, AT27C020,AT27C040,AT27C080 using  rebuilded WriteAT27_F1,WriteAT27_F2, WriteAT27_F3 with tpw subroutine with 50...100 us, use 5-th byte for decoding A16-A19, add power control for programming (+6.5/6.2/6.0 V), use buffers for TTL PD3,PD4, PD5,PD6 minterms, PD6 HV buffer,PD7 for power control  .

 

For   AT27C020 use  modifyed C1 mode ->F1(as for 27128),buffer 65536 bytes ,A16,A17  (nG(nOE)-PD4 TTL,nE(nCE)=0V,nP-PD3 TTL,Vcc,Vpp (PD6 HW buffer,diodes)), tpw=100us,Vcc control during Vpp on via PD6, jumpers(registers) A16,A17 ;

for AT27C040 use modifyed   C2 mode ->F2  (as for 27256),buffer 65536 bytes , A16-A18 ( nG(nOE)-PD3 TTL,nCE(nE)-PD4 TTL,  Vpp  -PD6 HV buffer,diodes), tpw=100us,Vcc control during Vpp on via PD6, jumpers(registers) A16-A18 ;

for AT27C080 use modifyed   C3 mode ->F3(R3 )  (as for 27C512),buffer 65536 bytes ,A16-A19 ( nG(nOE/Vpp)-PD6 HV buffer ,  nCE(nE)-PD4 TTL  ), tpw=50us (100 us, fix for some types of  chips ), Vcc control during Vpp on via PD6, jumpers(registers) A16-A19 .

 

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

Defaul  .hex    for 1 ms pulses (for test and debug only, virtual, for education,  may be incorrect for some chips , change tpw of the program pulse to  100 us or 50..100us  ) and make the project.

Last Edited: Fri. Dec 27, 2019 - 08:08 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

fix problem with reading  2764, 27128

 

 

rcall Del_100mks
 ; cbi  CtrlPortM27, nE_C1 
ClearM27_nP_C1 //add for bug fixing in the read procedure
ClearM27_nG_C1
 
 rcall Del_100mks
 rcall  ReadDataByte ; to the  temp0     
 rcall Del_10t
SetM27_nG_C1
 ; ClearM27, nE_C1  
SetM27_nP_C1      //add for bug fixing  in the read procedure
 
...
M27_ICNext27_C1:     ; reading 
 
SetM27_nP_C1 ; nP=1 
; ClearM27_nE_C1 ; nE=0 
SetM27_nG_C1   ; output disable 
 rcall Del_10t
 
 mov  AHtemp, YH  
 mov  ALtemp , YL
 rcall SendAddr
 
 rcall Del_100mks
ClearM27_nP_C1 //add to
 ClearM27_nG_C1
 
 rcall Del_100mks
  rcall  ReadDataByte ; read to the  temp0
 rcall Del_10t
 
 SetM27_nG_C1
 SetM27_nP_C1 //add to fix bug
 ;SetM27_nE_C1 ; nE=1 
 cpi temp0, 0xFF
 brne M27_NotClear27_C1  
 adiw YH:YL, 1 ; addr++
 sbiw XH:XL, 1
 brne M27_ICNext27_C1
 ldi temp2, 0x43   ;  clear 
...
 
 
M27_CSNext27_C1: 
 
  ; SetM27, nE_C1 
SetM27_nG_C1
 rcall  Del_10t
 mov  AHtemp, YH  
 mov  ALtemp , YL
 rcall SendAddr
 rcall Del_100mks
 ; cbi  CtrlPortM27, nE_C1 
ClearM27_nP_C1  //add to bug fixing
ClearM27_nG_C1
 
 rcall Del_100mks
 rcall  ReadDataByte ; to the  temp0     
 rcall Del_10t
SetM27_nG_C1
 ; ClearM27, nE_C1  
SetM27_nP_C1    //add to bug fixing

 

Last Edited: Fri. Dec 27, 2019 - 12:22 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

fix it in the Mega8, Mega16a,Mega8515 projects

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Sorry, nP durin Read must be=1, ->

 ; cbi  CtrlPortM27, nE_C1 
SetM27_nP_C1  //add to bug fixing
ClearM27_nG_C1 
 
 rcall Del_100mks 
 rcall  ReadDataByte ; to the  temp0     
 rcall Del_10t 
SetM27_nG_C1
 ; ClearM27, nE_C1  
SetM27_nP_C1    //add to bug fixing
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

DoM27256_ReadPageC2:

 call M27_ReadPageC2
jmp Main

DoM27128_ReadPageC1:

 call M27_ReadPageC1
jmp Main

 DoM2764_ReadPageC1:

 call M27_ReadPageC1
jmp Main

 

 

M27_ReadPageC1:

TurnOffM27_Vpp_C1
CtrlPortM27_TurnOnPWR_C1 ; Vcc=5V  ; fix
 ; sbi CtrlPortM27, nE_C1 
SetM27_nP_C1 
SetM27_nG_C1
   
    
              
                           
 call SetAdrBusOut
 call SetDB_As_Input
 call SetDB_InputPullUp

 ldi ADDR_LOW, 0              
 call Del_1ms                  
 
M27_RPNextC1:     
 ;SetM27_nE_C1 
SetM27_nG_C1

 mov  AHtemp, ADDR_HI     
 mov  ALtemp , ADDR_LOW
 call SendAddr
                                

 call Del_100mks
 ; ClearM27, nE_C1 
SetM27_nP_C1
ClearM27_nG_C1
 call Del_100mks ; 

call  ReadDataByte ; to the  temp0

call Del_10t
SetM27_nG_C1

 ; SetM27_nE_C1  
 SetM27_nP_C1
 call Del_10t
  call SendChar         
    

 cpi  ADDR_LOW, 0xFF
 breq M27_RPEndC1
 inc  ADDR_LOW ; Addr++
jmp    M27_RPNextC1

M27_RPEndC1:
 
    ret

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

problem was fixed

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

Edition with 100 us pulse in C1-C3(F1-F3), 50 ms pulse in C0, 1ms pulse in C00

Attachment(s): 

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

Works for read with M2764,M27256,M27512,M2716 for read and checksum reading (using PD3 for 2764,27128,27256 with pull-up, buffers, Mega8515; versions  Mega8a, Mega16a .hex are not tested). Check for bugs .

Last Edited: Fri. Dec 27, 2019 - 01:01 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

For ATMega16A you can rebuild this template  for ATMega8a(see attach), DBin_FLASH/DBOUT_FLASH/DBOUT_PROM use from ATMega16A   ,PD use for control ,PD2 for buffer read/write , use  3*74HC595   with remapping for onoe of the address ports  , other use for   DBin_PROM  82sxxx with I/O buffers (if it is necessary or implemented).

Attachment(s): 

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

Examples for ATMega16a+3*74HC595  (check for bugs, rebuild )

Attachment(s): 

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

Edition  with  /dev/ttyUSB0, /dev/ttyUSB1 , /dev/ttyWCH0.../dev/ttyWCH3   for WineHQ

Attachment(s): 

Last Edited: Sat. Jan 4, 2020 - 09:00 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Test edition for atmega16a with   7372800 Hz, 38400 bd , non inverted output PD7 (turn on Vcc on  1 on the PD7)

Attachment(s): 

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

Fixed problem with Power on for ATMEGA16a circuit with power on if PD7=1, fixed problem with test  for 82Sxxx,check PD3 for some  modes , if it is not used. 

Attachment(s): 

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

rpz3598 wrote:
Fixed problem

Jolly good.

 

Now please mark the solution - see Tip #5 in my signature, below:

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...