Menu

#91 PIC24 dpp example won't link

QPC
wont-fix
PIC24 (1) dpp (1)
1
2024-08-01
2014-04-13
No

MPLAB X 1.95, XC16 ver.1.20, QP/C 5.3.0

CLEAN SUCCESSFUL (total time: 100ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory `C:/work/programs/qpc/examples/pic24_dspic/vanilla/xc16/dpp-microstick2-pic24.X'
make -j 16 -f nbproject/Makefile-default.mk dist/default/production/dpp-microstick2-pic24.X.production.hex
make[2]: Entering directory `C:/work/programs/qpc/examples/pic24_dspic/vanilla/xc16/dpp-microstick2-pic24.X'
"C:\work\programs\mplabx\xc16_120\bin\xc16-gcc.exe" bsp.c -o build/default/production/bsp.o -c -mcpu=24FJ64GB002 -MMD -MF "build/default/production/bsp.o.d" -g -omf=elf -O0 -I"C:/work/programs/qpc/include" -I"C:/work/programs/qpc/ports/pic24_dspic/vanilla/xc16" -msmart-io=1 -Wall -msfr-warn=off
"C:\work\programs\mplabx\xc16_120\bin\xc16-gcc.exe" main.c -o build/default/production/main.o -c -mcpu=24FJ64GB002 -MMD -MF "build/default/production/main.o.d" -g -omf=elf -O0 -I"C:/work/programs/qpc/include" -I"C:/work/programs/qpc/ports/pic24_dspic/vanilla/xc16" -msmart-io=1 -Wall -msfr-warn=off
"C:\work\programs\mplabx\xc16_120\bin\xc16-gcc.exe" philo.c -o build/default/production/philo.o -c -mcpu=24FJ64GB002 -MMD -MF "build/default/production/philo.o.d" -g -omf=elf -O0 -I"C:/work/programs/qpc/include" -I"C:/work/programs/qpc/ports/pic24_dspic/vanilla/xc16" -msmart-io=1 -Wall -msfr-warn=off
"C:\work\programs\mplabx\xc16_120\bin\xc16-gcc.exe" table.c -o build/default/production/table.o -c -mcpu=24FJ64GB002 -MMD -MF "build/default/production/table.o.d" -g -omf=elf -O0 -I"C:/work/programs/qpc/include" -I"C:/work/programs/qpc/ports/pic24_dspic/vanilla/xc16" -msmart-io=1 -Wall -msfr-warn=off
"C:\work\programs\mplabx\xc16_120\bin\xc16-gcc.exe" -o dist/default/production/dpp-microstick2-pic24.X.production.elf build/default/production/bsp.o build/default/production/main.o build/default/production/philo.o build/default/production/table.o C:\work\programs\qpc\ports\pic24_dspic\vanilla\xc16\dbg\libqp_24FJ64GB002.a -mcpu=24FJ64GB002 -omf=elf -Wl,--defsym=__MPLAB_BUILD=1,,--script=p24FJ64GB002.gld,--stack=16,--check-sections,--data-init,--pack-data,--handles,--isr,--no-gc-sections,--fill-upper=0,--stackguard=16,--library=qp_24FJ64GB002,--library-path="C:/work/programs/qpc/ports/pic24_dspic/vanilla/xc16/dbg",--no-force-link,--smart-io,--report-mem
build/default/production/table.o(.text+0xe): In function `.LSM2':
undefined reference to `_QActive_ctor'
build/default/production/philo.o(.text+0x20): In function `.LSM3':
undefined reference to `_QActive_ctor'
make[2]: *** [dist/default/production/dpp-microstick2-pic24.X.production.hex] Error 255
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

Program Memory [Origin = 0x200, Length = 0xa9f6]

section address length (PC units) length (bytes) (dec)
------- ------- ----------------- --------------------
.text 0x200 0x1ba 0x297 (663)
.const 0x3ba 0x178 0x234 (564)
.text 0x532 0x10a0 0x18f0 (6384)
.dinit 0x15d2 0x38 0x54 (84)
.text 0x160a 0x28 0x3c (60)

                 Total program memory used (bytes):         0x1e4b  (7755) 11%

Data Memory [Origin = 0x800, Length = 0x2000]

section address alignment gaps total length (dec)
------- ------- -------------- -------------------
.nbss 0x800 0 0x194 (404)

                    Total data memory used (bytes):          0x194  (404) 4%

Dynamic Memory Usage

region address maximum length (dec)
------ ------- ---------------------
heap 0 0 (0)
stack 0x994 0x1e6c (7788)

                    Maximum dynamic memory (bytes):         0x1e6c  (7788)

make[2]: Leaving directory C:/work/programs/qpc/examples/pic24_dspic/vanilla/xc16/dpp-microstick2-pic24.X' make[1]: Leaving directoryC:/work/programs/qpc/examples/pic24_dspic/vanilla/xc16/dpp-microstick2-pic24.X'

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

Discussion

  • Quantum Leaps

    Quantum Leaps - 2014-04-13

    As already explained in Bug #90, it seems that you are trying to build the example with an incomplete QP/C library.

    Specifically, as described in the Release Notes for QP/C 5.x, this version of QP/C library must contain additional files: qa_ctor.c and qma_ctor.c. These two files seem to be missing in the QP/C library that you are using.

    This problem is not really a bug, but rather a misunderstanding of the backwards-compatibility of QP/C ports. The issue will be fixed once the PIC24/dsPIC port will be updated for QP/C 5.x.

    --MMS

     

    Last edit: Quantum Leaps 2014-04-13
  • Quantum Leaps

    Quantum Leaps - 2017-11-15
    • status: open --> closed
    • assigned_to: Quantum Leaps
     
  • Quantum Leaps

    Quantum Leaps - 2017-11-15

    This problem is no longer tracked, as PIC24 is no longer officially supported.
    The PIC24 port and examples have been moved to the legacy QDKs.
    --MMS

     

    Last edit: Quantum Leaps 2017-11-15
  • Quantum Leaps

    Quantum Leaps - 2017-11-15
    • status: closed --> wont-fix
     

Anonymous
Anonymous

Add attachments
Cancel





Monday.com Logo