Closed DominusDRR closed 3 years ago
Hi
I have created a project from scratch with the PIC32MZ2048EFM100, XC32 v2.50 and MPLAB X v 5.50.
With the MHC I have configured the same modules of the example xxx, but when compiling the project I get the following error:
ap_size=2048,--gc-sections,--no-code-in-dinit,--no-dinit-in-serial-mem,-Map="dist/default/production/Shadow.X.production.map",--memorysummary,dist/default/production/memoryfile.xml -mdfp="C:/Users/Fabian/.mchp_packs/Microchip/PIC32MZ-EF_DFP/1.2.51" nbproject/Makefile-default.mk:2912: recipe for target 'dist/default/production/Shadow.X.production.hex' failed make[2]: Leaving directory 'F:/microchip/aws_cloud/apps/Prueba/firmware/Shadow.X' nbproject/Makefile-default.mk:91: recipe for target '.build-conf' failed make[1]: Leaving directory 'F:/microchip/aws_cloud/apps/Prueba/firmware/Shadow.X' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed build/default/production/_ext/682887895/port.o: In functionprvTaskExitError': f:/microchip/aws_cloud/apps/prueba/firmware/src/config/default/amazon-freertos/freertos_kernel/portable/mplab/pic32mz/port.c:217: undefined reference to vAssertCalled' build/default/production/_ext/885703270/aws_iot_defender_api.o: In function_acceptCallback': f:/microchip/aws_cloud/apps/prueba/firmware/src/config/default/amazon-freertos/libraries/c_sdk/aws/defender/src/aws_iot_defender_api.c:546: undefined reference to vAssertCalled' f:/microchip/aws_cloud/apps/prueba/firmware/src/config/default/amazon-freertos/libraries/c_sdk/aws/defender/src/aws_iot_defender_api.c:547: undefined reference tovAssertCalled' build/default/production/_ext/885703270/aws_iot_defender_api.o: In function _rejectCallback': f:/microchip/aws_cloud/apps/prueba/firmware/src/config/default/amazon-freertos/libraries/c_sdk/aws/defender/src/aws_iot_defender_api.c:565: undefined reference tovAssertCalled' build/default/production/_ext/2110771304/heap_4.o: In function pvPortMalloc': f:/microchip/aws_cloud/apps/prueba/firmware/src/config/default/amazon-freertos/freertos_kernel/portable/memmang/heap_4.c:196: undefined reference tovAssertCalled' build/default/production/_ext/2110771304/heap_4.o:f:/microchip/aws_cloud/apps/prueba/firmware/src/config/default/amazon-freertos/freertos_kernel/portable/memmang/heap_4.c:261: more undefined references to `vAssertCalled' follow
ap_size=2048,--gc-sections,--no-code-in-dinit,--no-dinit-in-serial-mem,-Map="dist/default/production/Shadow.X.production.map",--memorysummary,dist/default/production/memoryfile.xml -mdfp="C:/Users/Fabian/.mchp_packs/Microchip/PIC32MZ-EF_DFP/1.2.51" nbproject/Makefile-default.mk:2912: recipe for target 'dist/default/production/Shadow.X.production.hex' failed make[2]: Leaving directory 'F:/microchip/aws_cloud/apps/Prueba/firmware/Shadow.X' nbproject/Makefile-default.mk:91: recipe for target '.build-conf' failed make[1]: Leaving directory 'F:/microchip/aws_cloud/apps/Prueba/firmware/Shadow.X' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed build/default/production/_ext/682887895/port.o: In function
vAssertCalled' build/default/production/_ext/885703270/aws_iot_defender_api.o: In function
vAssertCalled' f:/microchip/aws_cloud/apps/prueba/firmware/src/config/default/amazon-freertos/libraries/c_sdk/aws/defender/src/aws_iot_defender_api.c:547: undefined reference to
_rejectCallback': f:/microchip/aws_cloud/apps/prueba/firmware/src/config/default/amazon-freertos/libraries/c_sdk/aws/defender/src/aws_iot_defender_api.c:565: undefined reference to
pvPortMalloc': f:/microchip/aws_cloud/apps/prueba/firmware/src/config/default/amazon-freertos/freertos_kernel/portable/memmang/heap_4.c:196: undefined reference to
Info: Loading file: ./..\src\config\default\p32MZ2048EFM100.ld collect2.exe: error: ld returned 255 exit status make[2]: [dist/default/production/Shadow.X.production.hex] Error 255 make[1]: [.build-conf] Error 2 make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 27s)`
Supposedly this error is due to the heap related to the ld file.
I have put the same xc32-ld settings from the example in my project, but the problem continues.
The problem is that the main function of my code doesn't contain the main functions of the original example, placing everything necessary, get it to compile and install it in Curiosity MZ version 1.
Hi
I have created a project from scratch with the PIC32MZ2048EFM100, XC32 v2.50 and MPLAB X v 5.50.
With the MHC I have configured the same modules of the example xxx, but when compiling the project I get the following error:
ap_size=2048,--gc-sections,--no-code-in-dinit,--no-dinit-in-serial-mem,-Map="dist/default/production/Shadow.X.production.map",--memorysummary,dist/default/production/memoryfile.xml -mdfp="C:/Users/Fabian/.mchp_packs/Microchip/PIC32MZ-EF_DFP/1.2.51" nbproject/Makefile-default.mk:2912: recipe for target 'dist/default/production/Shadow.X.production.hex' failed make[2]: Leaving directory 'F:/microchip/aws_cloud/apps/Prueba/firmware/Shadow.X' nbproject/Makefile-default.mk:91: recipe for target '.build-conf' failed make[1]: Leaving directory 'F:/microchip/aws_cloud/apps/Prueba/firmware/Shadow.X' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed build/default/production/_ext/682887895/port.o: In function
prvTaskExitError': f:/microchip/aws_cloud/apps/prueba/firmware/src/config/default/amazon-freertos/freertos_kernel/portable/mplab/pic32mz/port.c:217: undefined reference tovAssertCalled' build/default/production/_ext/885703270/aws_iot_defender_api.o: In function
_acceptCallback': f:/microchip/aws_cloud/apps/prueba/firmware/src/config/default/amazon-freertos/libraries/c_sdk/aws/defender/src/aws_iot_defender_api.c:546: undefined reference tovAssertCalled' f:/microchip/aws_cloud/apps/prueba/firmware/src/config/default/amazon-freertos/libraries/c_sdk/aws/defender/src/aws_iot_defender_api.c:547: undefined reference to
vAssertCalled' build/default/production/_ext/885703270/aws_iot_defender_api.o: In function_rejectCallback': f:/microchip/aws_cloud/apps/prueba/firmware/src/config/default/amazon-freertos/libraries/c_sdk/aws/defender/src/aws_iot_defender_api.c:565: undefined reference to
vAssertCalled' build/default/production/_ext/2110771304/heap_4.o: In functionpvPortMalloc': f:/microchip/aws_cloud/apps/prueba/firmware/src/config/default/amazon-freertos/freertos_kernel/portable/memmang/heap_4.c:196: undefined reference to
vAssertCalled' build/default/production/_ext/2110771304/heap_4.o:f:/microchip/aws_cloud/apps/prueba/firmware/src/config/default/amazon-freertos/freertos_kernel/portable/memmang/heap_4.c:261: more undefined references to `vAssertCalled' followInfo: Loading file: ./..\src\config\default\p32MZ2048EFM100.ld collect2.exe: error: ld returned 255 exit status make[2]: [dist/default/production/Shadow.X.production.hex] Error 255 make[1]: [.build-conf] Error 2 make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 27s)`
Supposedly this error is due to the heap related to the ld file.
I have put the same xc32-ld settings from the example in my project, but the problem continues.