From b99a9213997c3bfbfacb43554ff4722ff851ef2f Mon Sep 17 00:00:00 2001 From: Sihyung Woo <75494566+sihyung-maxim@users.noreply.github.com> Date: Fri, 11 Oct 2024 11:28:36 -0500 Subject: [PATCH] fix(Examples): Fix warning in MAX32655/UART_DMA example, and increase Bootloader app size for MAX32665 (#1224) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sadik Ozer Signed-off-by: dependabot[bot] Signed-off-by: Anıl Kara Signed-off-by: Maureen Helm Signed-off-by: Furkan Akkiz Signed-off-by: Tahsin Mutlugun Signed-off-by: Michael Perkins Signed-off-by: Kevin Townsend Co-authored-by: Lorne Smith <65424047+lorne-maxim@users.noreply.github.com> Co-authored-by: Jake Carter Co-authored-by: Sadik Ozer <46590392+ozersa@users.noreply.github.com> Co-authored-by: Jake Carter Co-authored-by: ahmetyazicii <83782637+ahmetyazicii@users.noreply.github.com> Co-authored-by: Brent K <129296493+BrentK-ADI@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Omercan Kilic <134288264+kilicomercan@users.noreply.github.com> Co-authored-by: EricB-ADI <122300463+EricB-ADI@users.noreply.github.com> Co-authored-by: Jake-Carter Co-authored-by: Anıl Kara Co-authored-by: Brandon Hurst <82959533+Brandon-Hurst@users.noreply.github.com> Co-authored-by: EricB-ADI Co-authored-by: Victor Loginov <65688219+vicloginov@users.noreply.github.com> Co-authored-by: lorne-maxim Co-authored-by: Sadik Ozer Co-authored-by: Maureen Helm Co-authored-by: Furkan AKKIZ <94184469+hfakkiz@users.noreply.github.com> Co-authored-by: isztldav Co-authored-by: JC-282-AD Co-authored-by: Oğuzhan Büyüksolak Co-authored-by: JC-282-AD Co-authored-by: Mehmet Ozgun Kanal <123065567+OzgunKanal@users.noreply.github.com> Co-authored-by: Ozgun Co-authored-by: Noxi123 <61051098+Noxi123@users.noreply.github.com> Co-authored-by: Changmin Jeon Co-authored-by: ersahatmacaa <146827243+ersahatmacaa@users.noreply.github.com> Co-authored-by: Kevin Gillespie Co-authored-by: Kevin Gillespie Co-authored-by: Kalvin McCallum <137926624+kmccalluADI@users.noreply.github.com> Co-authored-by: Omer Demir Co-authored-by: sihyung-maxim Co-authored-by: EricB-ADI Co-authored-by: Tahsin Türker Mutlugün Co-authored-by: Michael Perkins <157516771+perkinsmg@users.noreply.github.com> Co-authored-by: Kevin Townsend Co-authored-by: Bobby Co-authored-by: Bobby Counts Co-authored-by: Mert Ekren Co-authored-by: Anıl Kara Co-authored-by: Ozan Durgut <49796358+ozan956@users.noreply.github.com> Co-authored-by: Cristian Cruz <71054319+crsz20@users.noreply.github.com> --- Examples/MAX32655/UART_DMA/main.c | 2 +- Examples/MAX32665/Bluetooth/Bootloader/README.md | 4 ++-- Examples/MAX32665/Bluetooth/Bootloader/boot_lower.S | 2 +- Examples/MAX32665/Bluetooth/Bootloader/bootloader.ld | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Examples/MAX32655/UART_DMA/main.c b/Examples/MAX32655/UART_DMA/main.c index c9e8753cdfe..dbf0f168034 100644 --- a/Examples/MAX32655/UART_DMA/main.c +++ b/Examples/MAX32655/UART_DMA/main.c @@ -71,7 +71,7 @@ void readCallback(mxc_uart_req_t *req, int error) READ_FLAG = error; } -void buttonHandler(void) +void buttonHandler(void *pb) { buttonPressed = 1; } diff --git a/Examples/MAX32665/Bluetooth/Bootloader/README.md b/Examples/MAX32665/Bluetooth/Bootloader/README.md index 2470f1b421e..8e57af49fbd 100644 --- a/Examples/MAX32665/Bluetooth/Bootloader/README.md +++ b/Examples/MAX32665/Bluetooth/Bootloader/README.md @@ -9,12 +9,12 @@ the main flash section is erased and replaced with the update image. If no valid is identified, the Bootloader will boot the exiting image in the main flash space. __0x10000000__: Bootloader -__0x10004000__: Main flash space +__0x10008000__: Main flash space __0x10080000__: Update flash space ## Setup -This Bootloader application needs to be loaded to the first two flash pages. The main application +This Bootloader application needs to be loaded at the beginning of Flash. The main application will run on top of this application. The linker file for the main application must coincide with the memory sections defined in this application. The main application is responsible for updating the update flash space. diff --git a/Examples/MAX32665/Bluetooth/Bootloader/boot_lower.S b/Examples/MAX32665/Bluetooth/Bootloader/boot_lower.S index 6a2646f91c4..1dff366bfd1 100644 --- a/Examples/MAX32665/Bluetooth/Bootloader/boot_lower.S +++ b/Examples/MAX32665/Bluetooth/Bootloader/boot_lower.S @@ -31,7 +31,7 @@ /* Boot from the lower flash array */ Boot_Lower: - ldr r0,=0x10004000 /* Address for main flash image */ + ldr r0,=0x10008000 /* Address for main flash image */ ldr r1,=0xE000ED08 /* Address for SCB_VTOR_REG */ /* First 32-bit word in image is initial stack pointer */ diff --git a/Examples/MAX32665/Bluetooth/Bootloader/bootloader.ld b/Examples/MAX32665/Bluetooth/Bootloader/bootloader.ld index d8f82785125..400c2bc3cbe 100644 --- a/Examples/MAX32665/Bluetooth/Bootloader/bootloader.ld +++ b/Examples/MAX32665/Bluetooth/Bootloader/bootloader.ld @@ -19,7 +19,7 @@ ******************************************************************************/ BOOTLOADER_ORIGIN = 0x10000000; -BOOTLOADER_LEN = 0x4000; +BOOTLOADER_LEN = 0x8000; FLASH_SECTION_LEN = 0x80000 - BOOTLOADER_LEN; FLASH0_ORIGIN = BOOTLOADER_ORIGIN + BOOTLOADER_LEN;