added massive comment in memory.h about how memory is laid out to work with the bootloader. more code cleanup
This commit is contained in:
@@ -90,7 +90,7 @@
|
||||
<property key="default-bitfield-type" value="true"/>
|
||||
<property key="default-char-type" value="true"/>
|
||||
<property key="define-macros" value=""/>
|
||||
<property key="disable-optimizations" value="false"/>
|
||||
<property key="disable-optimizations" value="true"/>
|
||||
<property key="extra-include-directories"
|
||||
value="..\src;..\..\common_src;..\src\minimal_usb_driver"/>
|
||||
<property key="favor-optimization-for" value="-speed,+space"/>
|
||||
@@ -105,7 +105,7 @@
|
||||
<property key="optimization-debug" value="false"/>
|
||||
<property key="optimization-invariant-enable" value="false"/>
|
||||
<property key="optimization-invariant-value" value="16"/>
|
||||
<property key="optimization-level" value="-O1"/>
|
||||
<property key="optimization-level" value="-O0"/>
|
||||
<property key="optimization-speed" value="false"/>
|
||||
<property key="optimization-stable-enable" value="false"/>
|
||||
<property key="pack-struct" value="true"/>
|
||||
@@ -131,7 +131,7 @@
|
||||
<property key="calibrate-oscillator-value" value="0x3400"/>
|
||||
<property key="clear-bss" value="true"/>
|
||||
<property key="code-model-external" value="wordwrite"/>
|
||||
<property key="code-model-rom" value="default,-2000-7FFF"/>
|
||||
<property key="code-model-rom" value="default,-1400-7FFF"/>
|
||||
<property key="create-html-files" value="false"/>
|
||||
<property key="data-model-ram" value=""/>
|
||||
<property key="data-model-size-of-double" value="32"/>
|
||||
|
||||
@@ -20,14 +20,14 @@
|
||||
;//High priority interrupt vector remapping
|
||||
PSECT HiVector,class=CODE,delta=1,abs
|
||||
org 0x08
|
||||
goto 0x2008 ;Resides at 0x0008 (hardware high priority interrupt vector), and causes PC to jump to 0x2008 upon a high priority interrupt event
|
||||
goto 0x1408 ;Resides at 0x0008 (hardware high priority interrupt vector), and causes PC to jump to application's interrupt vector upon a high priority interrupt event
|
||||
|
||||
|
||||
;//Low priority interrupt vector remapping, as well as bootloader mode absolute
|
||||
;//entry point (located at 0x001C).
|
||||
PSECT LoVector,class=CODE,delta=1,abs
|
||||
org 0x18
|
||||
goto 0x2018 ;Resides at 0x0018 (hardware low priority interrupt vector), and causes PC to jump to 0x2018 upon a low priority interrupt event
|
||||
goto 0x1418 ;Resides at 0x0018 (hardware low priority interrupt vector), and causes PC to jump to application's interrupt vector upon a low priority interrupt event
|
||||
goto 0x30 ;Resides at 0x001C //Serves as absolute entry point from application program into the bootloader mode
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user