初始版本
This commit is contained in:
+37132
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<flash_device>
|
||||
<exe>$PROJ_DIR$\config\flashloader\FlashHC32L17X.out</exe>
|
||||
<page>1</page>
|
||||
<block>256 0x200</block>
|
||||
<flash_base>0x00000000</flash_base>
|
||||
<macro>$PROJ_DIR$\config\flashloader\FlashHC32L17X.mac</macro>
|
||||
<aggregate>0</aggregate>
|
||||
</flash_device>
|
||||
@@ -0,0 +1,23 @@
|
||||
setup()
|
||||
{
|
||||
__message "----- setup hardware for Flashloader -----\n";
|
||||
/*Wait*/
|
||||
__delay(5);
|
||||
__emulatorSpeed(0);
|
||||
|
||||
/*Vectors at RAM*/
|
||||
__writeMemory32(0x20000000, 0xE000ED08, "Memory");
|
||||
}
|
||||
|
||||
execUserPreload()
|
||||
{
|
||||
__message "----- execUserPreload -----\n";
|
||||
setup();
|
||||
}
|
||||
|
||||
execUserFlashInit() // Called by debugger before loading flash loader in RAM.
|
||||
{
|
||||
__message "----- execUserFlashInit -----\n";
|
||||
setup();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<flash_board>
|
||||
<pass>
|
||||
<loader>$PROJ_DIR$\config\flashloader\FlashHC32L17X.flash</loader>
|
||||
<range>CODE 0x00000000 0x0001FFFF</range>
|
||||
</pass>
|
||||
</flash_board>
|
||||
@@ -0,0 +1,29 @@
|
||||
/*###ICF### Section handled by ICF editor, don't touch! ****/
|
||||
/*-Editor annotation file-*/
|
||||
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
|
||||
/*-Specials-*/
|
||||
define symbol __ICFEDIT_intvec_start__ = 0x20000000;
|
||||
/*-Memory Regions-*/
|
||||
define symbol __ICFEDIT_region_ROM_start__ = 0x20000000;
|
||||
define symbol __ICFEDIT_region_ROM_end__ = 0x20001FFF;
|
||||
define symbol __ICFEDIT_region_RAM_start__ = 0x20002000;
|
||||
define symbol __ICFEDIT_region_RAM_end__ = 0x20003FFF;
|
||||
/*-Sizes-*/
|
||||
define symbol __ICFEDIT_size_cstack__ = 0x200;
|
||||
define symbol __ICFEDIT_size_heap__ = 0x200;
|
||||
/**** End of ICF editor section. ###ICF###*/
|
||||
|
||||
define memory mem with size = 4G;
|
||||
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
|
||||
define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
|
||||
|
||||
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
|
||||
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
|
||||
|
||||
initialize by copy { readwrite };
|
||||
do not initialize { section .noinit };
|
||||
|
||||
place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
|
||||
|
||||
place in ROM_region { readonly };
|
||||
place in RAM_region { readwrite, block CSTACK, block HEAP };
|
||||
@@ -0,0 +1,8 @@
|
||||
execUserReset()
|
||||
{
|
||||
__message("Executing __hwReset");
|
||||
__hwReset(0);
|
||||
__message("__hwReset done");
|
||||
|
||||
__hwResetWithStrategy(0, 2);
|
||||
}
|
||||
Reference in New Issue
Block a user