avra icon indicating copy to clipboard operation
avra copied to clipboard

8KB devices

Open PeterWurmi opened this issue 1 year ago • 1 comments

Hello

I'm working with 8KB avr devices (4K words flash , currently m8515). I see this error on rjmp/rcall instructions:

Error : Relative address out of range (-2048 <= k <= 2047)

I think that is problem with avra assembler, that not support "wrap mode" (-w option) for 8KB devices like avrassembler from Atmel. But on 8KB devices entire flash memory can be reach by rjmp/rcall instructions by nature. But assembler must allow wrap relative addresss by 2K address space.

From manual AVRASM2: -w Wrap relative jumps. This option is obsoleted, because AVRASM2 automatically determines when to wrap relative jumps, based on program memory size. The option is recognized but ignored.

PeterWurmi avatar Jul 23 '23 15:07 PeterWurmi