Skip to content

Commit 8b51c1f

Browse files
authored
Merge pull request #1225 from analogdevicesinc/fix/warnings
fix(Examples): Fix warning in MAX32655/UART_DMA example and increase Bootloader app size for MAX32665
2 parents b566324 + 71a823a commit 8b51c1f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Examples/MAX32655/UART_DMA/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void readCallback(mxc_uart_req_t *req, int error)
7171
READ_FLAG = error;
7272
}
7373

74-
void buttonHandler(void)
74+
void buttonHandler(void *pb)
7575
{
7676
buttonPressed = 1;
7777
}

Examples/MAX32665/Bluetooth/Bootloader/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ the main flash section is erased and replaced with the update image. If no valid
99
is identified, the Bootloader will boot the exiting image in the main flash space.
1010

1111
__0x10000000__: Bootloader
12-
__0x10004000__: Main flash space
12+
__0x10008000__: Main flash space
1313
__0x10080000__: Update flash space
1414

1515
## Setup
1616

17-
This Bootloader application needs to be loaded to the first two flash pages. The main application
17+
This Bootloader application needs to be loaded at the beginning of Flash. The main application
1818
will run on top of this application. The linker file for the main application must coincide
1919
with the memory sections defined in this application. The main application is responsible
2020
for updating the update flash space.

Examples/MAX32665/Bluetooth/Bootloader/boot_lower.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
/* Boot from the lower flash array */
3232
Boot_Lower:
3333

34-
ldr r0,=0x10004000 /* Address for main flash image */
34+
ldr r0,=0x10008000 /* Address for main flash image */
3535
ldr r1,=0xE000ED08 /* Address for SCB_VTOR_REG */
3636

3737
/* First 32-bit word in image is initial stack pointer */

Examples/MAX32665/Bluetooth/Bootloader/bootloader.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
******************************************************************************/
2020

2121
BOOTLOADER_ORIGIN = 0x10000000;
22-
BOOTLOADER_LEN = 0x4000;
22+
BOOTLOADER_LEN = 0x8000;
2323
FLASH_SECTION_LEN = 0x80000 - BOOTLOADER_LEN;
2424
FLASH0_ORIGIN = BOOTLOADER_ORIGIN + BOOTLOADER_LEN;
2525

0 commit comments

Comments
 (0)