Skip to content

Commit e3c7f6c

Browse files
rizlikdanielinux
authored andcommitted
hal: clean hal tests and PIC32C*.ld linker script
1 parent 1b9ec09 commit e3c7f6c

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

hal/hal.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
int hal_flash_test(void)
4141
{
4242
int ret = 0;
43-
uint32_t i, len;
43+
uint32_t i;
4444
uint8_t* pagePtr = (uint8_t*)TEST_ADDRESS;
4545
static uint8_t pageData[TEST_SZ];
4646

@@ -110,7 +110,7 @@ int hal_flash_test_write_once(void)
110110
hal_flash_lock();
111111

112112
if (ret != 0) {
113-
wolfBoot_printf("Write failed at byte %d, bit %d: Ret %d\n", i, b, ret);
113+
wolfBoot_printf("Write failed at bit %d: Ret %d\n", b, ret);
114114
return -1;
115115
}
116116

@@ -185,7 +185,7 @@ int hal_flash_test_align(void)
185185
int hal_flash_test_dualbank(void)
186186
{
187187
int ret = 0;
188-
uint32_t i, len;
188+
uint32_t i;
189189
uint8_t cur_fill = 0xb0;
190190
uint8_t new_fill = 0xf0;
191191
uint8_t fill;

hal/pic32ck.ld

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,13 @@ SECTIONS
1515
. = ALIGN(4);
1616
_end_text = .;
1717
} > FLASH
18-
.edidx :
19-
{
20-
. = ALIGN(4);
21-
*(.ARM.exidx*)
22-
} > FLASH
2318

2419
.edidx :
2520
{
2621
. = ALIGN(4);
2722
*(.ARM.exidx*)
2823
} > FLASH
2924

30-
3125
_stored_data = .;
3226
.data : AT (_stored_data)
3327
{

hal/pic32cz.ld

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,13 @@ SECTIONS
1515
. = ALIGN(4);
1616
_end_text = .;
1717
} > FLASH
18-
.edidx :
19-
{
20-
. = ALIGN(4);
21-
*(.ARM.exidx*)
22-
} > FLASH
2318

2419
.edidx :
2520
{
2621
. = ALIGN(4);
2722
*(.ARM.exidx*)
2823
} > FLASH
2924

30-
3125
_stored_data = .;
3226
.data : AT (_stored_data)
3327
{

0 commit comments

Comments
 (0)