修改上传所有文件

This commit is contained in:
2025-10-21 19:40:27 +08:00
parent 5a84d13ae4
commit 391f81f8fc
8417 changed files with 2995282 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
tcm_init(tcma_base, tcmb_base)
{
__var actlr;
actlr = __jtagCP15ReadReg(1, 0, 0, 1);
actlr &= ~((1 << 25) | (1 << 26) | (1 << 27));
__jtagCP15WriteReg(1, 0, 0, 1, actlr);
__jtagCP15WriteReg(9, 1, 0, 1, tcma_base | 1);
__jtagCP15WriteReg(9, 1, 0, 0, tcmb_base | 1);
}
mpu_disable()
{
__var sctlr;
sctlr = __jtagCP15ReadReg(1, 0, 0, 0);
sctlr &= ~(1 << 0);
__jtagCP15WriteReg(1, 0, 0, 0, sctlr);
}
/*********************************************************************
* execUserFlashInit()
*********************************************************************/
execUserFlashInit()
{
__message "------------------------------ execUserFlashInit ---------------------------------";
mpu_disable();
tcm_init(0x4E0000, 0x4F0000);
}
/*********************************************************************
* execUserFlashReset()
*********************************************************************/
execUserFlashReset()
{
__message "------------------------------ execUserFlashReset ---------------------------------";
/* Disable MPU*/
__jtagCP15WriteReg(1, 0, 0, 0, 0x08E7087A);
}

View File

@@ -0,0 +1,9 @@
h
WCP15Ex 0 1 0 0 0x08E7087A
WCP15Ex 0 1 0 1 0x00000020
WCP15Ex 0 9 1 1 0x4E0001
WCP15Ex 0 9 1 0 0x4F0001
w4 0x4E0000 0xBE00BE00
setpc 0x4E0000
wreg CPSR 0x3F
q

View File

@@ -0,0 +1,13 @@
h
WCP15Ex 0 1 0 0 0x08E7087A
WCP15Ex 0 1 0 1 0x00000020
WCP15Ex 0 9 1 1 0x4E0001
WCP15Ex 0 9 1 0 0x4F0001
exec EnableEraseAllFlashBanks
Erase 0x100C0000 0x100C1000 noreset
Erase 0x104C0000 0x104C1000 noreset
Erase 0x108C0000 0x108C1000 noreset
w4 0x4E0000 0xBE00BE00
setpc 0x4E0000
wreg CPSR 0x3F
q

View File

@@ -0,0 +1,13 @@
h
WCP15Ex 0 1 0 0 0x08E7087A
WCP15Ex 0 1 0 1 0x00000020
WCP15Ex 0 9 1 1 0x4E0001
WCP15Ex 0 9 1 0 0x4F0001
exec EnableEraseAllFlashBanks
Erase 0x10007000 0x10008000 noreset
Erase 0x10407000 0x10408000 noreset
Erase 0x10807000 0x10808000 noreset
w4 0x4E0000 0xBE00BE00
setpc 0x4E0000
wreg CPSR 0x3F
q

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<flash_board>
<pass>
<loader>sfs.flash</loader>
<range>CODE 0x10000000 0x10000080</range>
<abs_offset>0x10000000</abs_offset>
<args>
255
0
</args>
</pass>
<pass>
<loader>sf.flash</loader>
<range>CODE 0x504000 0x57ffff</range>
<abs_offset>0x10008000</abs_offset>
<args>
0
1
0x504000
</args>
</pass>
</flash_board>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<flash_device>
<exe>../../flashloader_norflash.out</exe>
<macro>../../iar_flashmacro.mac</macro>
<page>512</page>
<block>504 0x1000</block>
<flash_base>0x10008000</flash_base>
<aggregate>1</aggregate>
</flash_device>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<flash_device>
<exe>../../flashloader_norflash.out</exe>
<macro>../../iar_flashmacro.mac</macro>
<page>512</page>
<block>1 0x1000</block>
<flash_base>0x10000000</flash_base>
<aggregate>1</aggregate>
</flash_device>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<flash_device>
<exe>../../flashloader_norflash.out</exe>
<macro>../../iar_flashmacro.mac</macro>
<page>512</page>
<block>312 0x1000</block>
<flash_base>0x10008000</flash_base>
<aggregate>1</aggregate>
</flash_device>

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<flash_board>
<pass>
<loader>sfs.flash</loader>
<range>CODE 0x10000000 0x10000080</range>
<abs_offset>0x10000000</abs_offset>
<args>
255
0
</args>
</pass>
<pass>
<loader>bootloader.flash</loader>
<range>CODE 0x504000 0x7FFFFF</range>
<abs_offset>0x10008000</abs_offset>
<args>
0
1
0x504000
</args>
</pass>
<pass>
<loader>sf.flash</loader>
<range>CODE 0x10140000 0x101FFFFF</range>
<abs_offset>0x10140000</abs_offset>
<args>
0
0
0x10140000
</args>
</pass>
</flash_board>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<flash_board>
<pass>
<loader>sf.flash</loader>
<range>CODE 0x10140000 0x101FFFFF</range>
<abs_offset>0x10140000</abs_offset>
<args>
0
0
0x10140000
</args>
</pass>
</flash_board>

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<flash_board>
<pass>
<loader>sfs.flash</loader>
<range>CODE 0x10000000 0x10000080</range>
<abs_offset>0x10000000</abs_offset>
<args>
255
0
</args>
</pass>
<pass>
<loader>bootloader.flash</loader>
<range>CODE 0x10008000 0x1013FFFF</range>
<abs_offset>0x10008000</abs_offset>
<args>
0
1
0x504000
</args>
</pass>
<pass>
<loader>sf.flash</loader>
<range>CODE 0x10140000 0x101FFFFF</range>
<abs_offset>0x10140000</abs_offset>
<args>
0
0
0x10140000
</args>
</pass>
</flash_board>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<flash_device>
<exe>../../flashloader_norflash.out</exe>
<macro>../../iar_flashmacro.mac</macro>
<page>512</page>
<block>192 0x1000</block>
<flash_base>0x10140000</flash_base>
<aggregate>1</aggregate>
</flash_device>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<flash_device>
<exe>../../flashloader_norflash.out</exe>
<macro>../../iar_flashmacro.mac</macro>
<page>512</page>
<block>1 0x1000</block>
<flash_base>0x10000000</flash_base>
<aggregate>1</aggregate>
</flash_device>