From: Dan White Date: Mon, 6 May 2013 05:08:44 +0000 (-0500) Subject: flash.py: temporarily override interrupt vector table X-Git-Tag: bootrom-initial-submission~6 X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=f3ee484944c924a335cd32d2f3b1f528373048e1;p=430.git flash.py: temporarily override interrupt vector table --- 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():