Microchip-MPLAB-Harmony / bootloader_apps_usb

Harmony 3 Bootloader USB examples
https://microchip-mplab-harmony.github.io/bootloader_apps_usb/
Other
5 stars 6 forks source link

bootloader_apps_usb : Debug mode Compilation Error #3

Open gurpreet312 opened 10 months ago

gurpreet312 commented 10 months ago

Hi Team,

I am working on PIC32MK1024GPK1024 MCU and bootloader_apps_usb H3 demo. When building application and bootloader (Loadable Project ) for Release Mode Works fine but got below error in Debug mode. c:\program files\microchip\xc32\v4.21\bin\bin\gcc\pic32mx\8.3.1........\bin/pic32m-ld.exe: section .data VMA [0000000080000010,000000008000006b] overlaps section reserve_data_0_kseg0 VMA [0000000080000000,000000008000036f]

Info: Loading file: ./..\src\config\default\p32MK1024GPK100.ld collect2.exe: error: ld returned 255 exit status make[4]: [dist/default/debug/project.X.debug.elf] Error 255 make[3]: [.build-conf] Error 2 make[2]: [.build-impl] Error 2 make[1]: [.build-subprojects] Error 2 make: *** [.build-impl] Error 2

Thanks

Gurpreet Singh

lesterelectrical commented 9 months ago

I am seeing this issue too.

I am using MPLAB X IDE v6.05 with xc32 version 4.30.

I am trying to run the usb_device_hid_bootloader_pic32mk_mcm_curiosity_pro demo application on a PICK32MK MCM Curiosity Board. I downloaded the repository from here: https://github.com/Microchip-MPLAB-Harmony/bootloader_apps_usb.

The project builds fine. I have S200 is set to USB Device. When I try to run or debug the project I get the following error

`make[1]: Leaving directory 'C:/projects/Microchip/bootloader_apps_usb-master/apps/usb_device_hid_bootloader/bootloader/firmware/pic32mk_mcm_curiosity_pro.X' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed c:\program files\microchip\xc32\v4.30\bin\bin\gcc\pic32mx\8.3.1........\bin/pic32m-ld.exe: section .data VMA [0000000080000010,000000008000026f] overlaps section reserve_data_0_kseg0 VMA [0000000080000000,000000008000036f]

Info: Loading file: ./..\src\config\pic32mk_mcm_curiosity_pro\btl.ld collect2.exe: error: ld returned 255 exit status make[2]: [dist/pic32mk_mcm_curiosity_pro/debug/pic32mk_mcm_curiosity_pro.X.debug.elf] Error 255 make[1]: [.build-conf] Error 2 make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 7s) `

image

hitac10 commented 1 week ago

I ran into the same problem.

Changing the compiler from V4.40 to V2.50 allowed me to build in debug mode. It seems that the XC32 V4.xx compiler no longer allows you to do a debug build of the bootloader.

Project Path: apps/usb_host_msd_bootloader/bootloader/firmware/pic32mz_das_sk.X Connected Hardware Tool: ICD4

hitac10 commented 1 week ago

This was caused by a conflict between the RAM area for the boot loader trigger pattern and the reserved area for the RAM section for the debugger.

A solution has been posted on technical support. https://microchipsupport.force.com/s/article/Link-Error-When-Building-Harmony-3-Bootloader-in-Debug-Mode