新增4轮4转-补丁代码

This commit is contained in:
2026-01-09 16:48:24 +08:00
parent 43d95adee5
commit 0442bff0c6
10522 changed files with 4465174 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
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);
}
/*********************************************************************
* execUserFlashInit()
*********************************************************************/
execUserFlashInit()
{
__message "------------------------------ execUserFlashInit ---------------------------------";
tcm_init(0x1900000, 0x1910000);
}
/*********************************************************************
* execUserFlashReset()
*********************************************************************/
execUserFlashReset()
{
__message "------------------------------ execUserFlashReset ---------------------------------";
/* Disable MPU*/
__jtagCP15WriteReg(1, 0, 0, 0, 0x08E7087A);
}

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 0x404000 0x7FFFFF</range>
<abs_offset>0x10008000</abs_offset>
<args>
0
1
0x404000
</args>
</pass>
<pass>
<loader>sf.flash</loader>
<range>CODE 0x10140000 0x106BFFFF</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 0x0 0x6BFFFF</range>
<abs_offset>0x30000000</abs_offset>
<args>
0
0
0x30000000
</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 0x106BFFFF</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>1728 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>