Skip to content

Commit

Permalink
tests: subsys: debug: coredump backends: add esp32xx overlay
Browse files Browse the repository at this point in the history
Add overlay for esp32xx boards to coredump backends test.

Signed-off-by: Lucas Tamborrino <[email protected]>
  • Loading branch information
LucasTambor authored and nashif committed Jun 21, 2023
1 parent 9ae80aa commit 1ffca30
Show file tree
Hide file tree
Showing 5 changed files with 106 additions and 1 deletion.
25 changes: 25 additions & 0 deletions tests/subsys/debug/coredump_backends/boards/esp32.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/

&flash0 {
partitions {
/*
* Reduce storage_partition to make space for
* coredump_partition
*/

storage_partition: partition@250000 {
label = "storage";
reg = <0x00250000 0x00005000>;
};

coredump_partition: partition@255000 {
label = "coredump-partition";
reg = <0x255000 DT_SIZE_K(4)>;
};

};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/

&flash0 {
partitions {
/*
* Reduce storage_partition to make space for
* coredump_partition
*/

storage_partition: partition@250000 {
label = "storage";
reg = <0x00250000 0x00005000>;
};

coredump_partition: partition@255000 {
label = "coredump-partition";
reg = <0x255000 DT_SIZE_K(4)>;
};

};
};
25 changes: 25 additions & 0 deletions tests/subsys/debug/coredump_backends/boards/esp32s2_saola.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/

&flash0 {
partitions {
/*
* Reduce storage_partition to make space for
* coredump_partition
*/

storage_partition: partition@250000 {
label = "storage";
reg = <0x00250000 0x00005000>;
};

coredump_partition: partition@255000 {
label = "coredump-partition";
reg = <0x255000 DT_SIZE_K(4)>;
};

};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/

&flash0 {
partitions {
/*
* Reduce storage_partition to make space for
* coredump_partition
*/

storage_partition: partition@250000 {
label = "storage";
reg = <0x00250000 0x00005000>;
};

coredump_partition: partition@255000 {
label = "coredump-partition";
reg = <0x255000 DT_SIZE_K(4)>;
};

};
};
7 changes: 6 additions & 1 deletion tests/subsys/debug/coredump_backends/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ tests:
coredump.backends.flash:
filter: CONFIG_ARCH_SUPPORTS_COREDUMP
extra_args: CONF_FILE=prj_flash_partition.conf
platform_allow: qemu_x86
platform_allow:
- qemu_x86
- esp32
- esp32s2_saola
- esp32s3_devkitm
- esp32c3_devkitm
coredump.backends.other:
filter: CONFIG_ARCH_SUPPORTS_COREDUMP
extra_args: CONF_FILE=prj_backend_other.conf
Expand Down

0 comments on commit 1ffca30

Please sign in to comment.