From f3ee484944c924a335cd32d2f3b1f528373048e1 Mon Sep 17 00:00:00 2001 From: Dan White Date: Mon, 6 May 2013 00:08:44 -0500 Subject: [PATCH] flash.py: temporarily override interrupt vector table --- python-lib/flash.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/python-lib/flash.py b/python-lib/flash.py index 6f090bd..4f481bf 100755 --- a/python-lib/flash.py +++ b/python-lib/flash.py @@ -243,15 +243,11 @@ if 1: flash.write(min(a), code) # 0xffd0 -- 0xffff are interrupt vectors -# gcc et.al. for some reason do not give a value for 0xfffe word -# the flash loader in ROM jumps to addr pointed here -# force to start of RAM # # the flash uses 256-byte pages, include code from 0xff00 - 0xffcf # as it was excluded above - vectors = ''.join([chr(h[i]) for i in range(0xff00, 0x10000-2)]) - #vectors += '\x00\x40' vectors = ''.join([chr(h[i]) for i in range(0xff00, 0x10000)]) + vectors = '\x00\x40' * 128 flash.write(0xff00, vectors) while not flash.isReady(): -- 2.25.1