Posted on May 17, 2011 at 10:01Aaron, The problem is with IAR's program loader. It is only made to support bank 0 which has 64k sector sizes. When it tries to program bank 1 (which has 8k sector sizes) it fails at the beginning of the second bank ...
Posted on May 17, 2011 at 10:01The code you posted to remap the Flash banks must be executed from some place other than the code Flash which is being remapped. Internal RAM is typically where this is done.