From e3c7f6c66397213d9701e161659d3e71b4d79c05 Mon Sep 17 00:00:00 2001 From: Marco Oliverio Date: Wed, 14 May 2025 19:09:55 +0200 Subject: [PATCH] hal: clean hal tests and PIC32C*.ld linker script --- hal/hal.c | 6 +++--- hal/pic32ck.ld | 6 ------ hal/pic32cz.ld | 6 ------ 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/hal/hal.c b/hal/hal.c index 36b30152..0865023d 100644 --- a/hal/hal.c +++ b/hal/hal.c @@ -40,7 +40,7 @@ int hal_flash_test(void) { int ret = 0; - uint32_t i, len; + uint32_t i; uint8_t* pagePtr = (uint8_t*)TEST_ADDRESS; static uint8_t pageData[TEST_SZ]; @@ -110,7 +110,7 @@ int hal_flash_test_write_once(void) hal_flash_lock(); if (ret != 0) { - wolfBoot_printf("Write failed at byte %d, bit %d: Ret %d\n", i, b, ret); + wolfBoot_printf("Write failed at bit %d: Ret %d\n", b, ret); return -1; } @@ -185,7 +185,7 @@ int hal_flash_test_align(void) int hal_flash_test_dualbank(void) { int ret = 0; - uint32_t i, len; + uint32_t i; uint8_t cur_fill = 0xb0; uint8_t new_fill = 0xf0; uint8_t fill; diff --git a/hal/pic32ck.ld b/hal/pic32ck.ld index d83a843a..2d94a02f 100644 --- a/hal/pic32ck.ld +++ b/hal/pic32ck.ld @@ -15,11 +15,6 @@ SECTIONS . = ALIGN(4); _end_text = .; } > FLASH - .edidx : - { - . = ALIGN(4); - *(.ARM.exidx*) - } > FLASH .edidx : { @@ -27,7 +22,6 @@ SECTIONS *(.ARM.exidx*) } > FLASH - _stored_data = .; .data : AT (_stored_data) { diff --git a/hal/pic32cz.ld b/hal/pic32cz.ld index d83a843a..2d94a02f 100644 --- a/hal/pic32cz.ld +++ b/hal/pic32cz.ld @@ -15,11 +15,6 @@ SECTIONS . = ALIGN(4); _end_text = .; } > FLASH - .edidx : - { - . = ALIGN(4); - *(.ARM.exidx*) - } > FLASH .edidx : { @@ -27,7 +22,6 @@ SECTIONS *(.ARM.exidx*) } > FLASH - _stored_data = .; .data : AT (_stored_data) {