Filling memory and vector table with RETI

Technical Note 20883

Targets:
AVR

Component:
IDE

Updated:
6/15/2009 9:08 AM

Introduction

In IAR Embedded Workbench for AVR, after turning on fill (Project Options -> Linker -> Processing Tab) you get:

Fatal Error[e38]: Option -H must not be defined more than once: -H1895

Possible solution

Disable "Initialize unused interrupt vectors with RETI instructions." (Project Options -> General Options -> System).

Background

Filling the interrupt vector table with RETI uses the same -H option, and only one is allowed.

Related Tech Notes

© IAR Systems 1995-2016 - All rights reserved.