contrib/loaders/flash/hpmicro: add hpmicro device xpi support

- add xpi flash support for hpmicro devices

Change-Id: I3531fdf20a34561c6f3fe6ac0b9af988d483aae7
Signed-off-by: Ryan QIAN <jianghao.qian@hpmicro.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8695
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
Ryan QIAN
2025-01-07 15:09:18 +08:00
committed by Tomas Vanek
parent 41e165eee2
commit 8e11797618
12 changed files with 1374 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
/* SPDX-License-Identifier: BSD-3-Clause */
/*
* Copyright (c) 2021 HPMicro
*/
ENTRY(_init)
SECTIONS
{
.text : {
*(.func_table)
KEEP(*(.flash_algo.text*))
KEEP(*(.rodata))
KEEP(*(.rodata*))
KEEP(*(.flash_algo.data*))
*(.text)
*(.text*)
__etext = .;
}
.discard : {
__noncacheable_start__ = .;
__noncacheable_bss_start__ = .;
__bss_start__ = .;
__bss_end__ = .;
__noncacheable_bss_end__ = .;
_end = .;
__noncacheable_init_start__ = .;
__data_start__ = .;
__data_end__ = .;
__noncacheable_init_end__ = .;
__noncacheable_end__ = .;
__heap_start__ = .;
__heap_end__ = .;
__ramfunc_start__ = .;
__ramfunc_end__ = .;
__noncacheable_bss_start__ = .;
__noncacheable_bss_end__ = .;
__noncacheable_init_start__ = .;
__noncacheable_init_end__ = .;
__tdata_start__ = .;
__tdata_end__ = .;
__tbss_start__ = .;
__tbss_end__ = .;
__data_load_addr__ = .;
__fast_load_addr__ = .;
__tdata_load_addr__ = .;
__noncacheable_init_load_addr__ = .;
}
}