flash.py: temporarily override interrupt vector table
authorDan White <dan@whiteaudio.com>
Mon, 6 May 2013 05:08:44 +0000 (00:08 -0500)
committerDan White <dan@whiteaudio.com>
Mon, 6 May 2013 05:08:44 +0000 (00:08 -0500)
python-lib/flash.py

index 6f090bd97223640be45700829424758ba4eaebc1..4f481bf09d7e5614ac0d3134a79b3981cfabf677 100755 (executable)
@@ -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():