setup MPLAB X IDE

OSTC's running hwOS sport or tech
Post Reply
SirNoahFell
Posts: 5
Joined: Tuesday 17. November 2015, 17:52

setup MPLAB X IDE

Post by SirNoahFell »

Hallo,
ich hänge ein wenig bei der Installation der MPLAB IDE bzw. beim Einrichten.

Ich nutze ein 32Bit Linux.
Die Installation von MPLAB X habe ich erfolgreich abgeschlossen. Leider finde ich keinen C18 Compiler für Linux im Internet. Ich habe nur den XC8 Compiler gefunden und installiert.

Sind die Compiler miteinander kompatibel? Sollte ich zu Windows wechseln? Ist es möglich den GCC zu verwenden?

Lieben Gruß
Florian
heinrichsweikamp
Posts: 4446
Joined: Sunday 13. May 2007, 18:07

Re: setup MPLAB X IDE

Post by heinrichsweikamp »

Hallo,

Ja, der XC8 ist der Nachfolger des "C18" und sollte gehen.

Füge daher alle .asm und .c Dateien als "Source" hinzu und lass das Projekt mit allen aktivierten Optimierungen durchlaufen.

Gruß,
Matthias
SirNoahFell
Posts: 5
Joined: Tuesday 17. November 2015, 17:52

Re: setup MPLAB X IDE

Post by SirNoahFell »

Hi,
leider habe ich das Projekt noch immer nicht zum Laufen gebracht. Den XC8 zu verwenden schent nicht ganz trivial zu sein (http://ww1.microchip.com/downloads/en/D ... 02184A.pdf)

Daher arbeite ich an einem Windows PC mit C18 Toolchain (Version 3.47).

Folgendes Problem tritt beim build auf:
Zuerst bekomme ich eine Popup Fehlermeldung (Error) mit dem Text "Unrecognized error: 32."
In der Konsole erhalte ich an den entsprechenden Stellen ein "Errors while reading string table". Hier ein Ausschnitt des Konsolen-Logs:

[quote]
"C:\Program Files (x86)\Microchip\mplabc18\v3.47\bin\..\mpasm\MPASMWIN.exe" -q -p18F87K22 -l"build/default/production/_ext/1360937237/comm.lst" -e"build/default/production/_ext/1360937237/comm.err" -y -o"build/default/production/_ext/1360937237/comm.o" "../src/comm.asm"
Errors while reading string table
"C:\Program Files (x86)\Microchip\mplabc18\v3.47\bin\..\mpasm\MPASMWIN.exe" -q -p18F87K22 -l"build/default/production/_ext/1360937237/compass_ops.lst" -e"build/default/production/_ext/1360937237/compass_ops.err" -y -o"build/default/production/_ext/1360937237/compass_ops.o" "../src/compass_ops.asm"
Errors while reading string table
[/quote]

Die "Errors while reading string table" Fehler tereten allerdings nicht immer bei den gleichen Dateien auf.
Habt ihr das Problem auch schon festgestellt? Welche Softwareversionen nutzt ihr von MPLAB X und der C18-Toolchain?

Lieben Gruß
Florian

P.S.: Hier nochmal das Ende des Konsolen-Logs:
[quote]
"C:\Program Files (x86)\Microchip\mplabc18\v3.47\bin\mplink.exe" "..\src\18F87K22_hwos.lkr" -p18f87k22 -w -m"dist/default/production/OSTC.X.production.map" -u_EXTENDEDMODE -g -z__MPLAB_BUILD=1 -u_CRUNTIME -l "C:\Program Files (x86)\Microchip\mplabc18\v3.47\bin"\\..\\lib -o dist/default/production/OSTC.X.production.cof build/default/production/_ext/1360937237/aa_fonts.o build/default/production/_ext/1360937237/aa_wordprocessor.o build/default/production/_ext/1360937237/adc_lightsensor.o build/default/production/_ext/1360937237/calibrate.o build/default/production/_ext/1360937237/color_processor.o build/default/production/_ext/1360937237/comm.o build/default/production/_ext/1360937237/compass_ops.o build/default/production/_ext/1360937237/convert.o build/default/production/_ext/1360937237/customview.o build/default/production/_ext/1360937237/divemenu_tree.o build/default/production/_ext/1360937237/divemode.o build/default/production/_ext/1360937237/eeprom_rs232.o build/default/production/_ext/1360937237/external_flash.o build/default/production/_ext/1360937237/gaslist.o build/default/production/_ext/1360937237/ghostwriter.o build/default/production/_ext/1360937237/hwos.o build/default/production/_ext/1360937237/i2c.o build/default/production/_ext/1360937237/icons.o build/default/production/_ext/1360937237/isr.o build/default/production/_ext/1360937237/logbook.o build/default/production/_ext/1360937237/math.o build/default/production/_ext/1360937237/mcp.o build/default/production/_ext/1360937237/menu_processor.o build/default/production/_ext/1360937237/menu_tree.o build/default/production/_ext/1360937237/ms5541.o build/default/production/_ext/1360937237/option_table.o build/default/production/_ext/1360937237/options.o build/default/production/_ext/1360937237/rtc.o build/default/production/_ext/1360937237/simulator.o build/default/production/_ext/1360937237/sleepmode.o build/default/production/_ext/1360937237/start.o build/default/production/_ext/1360937237/strings.o build/default/production/_ext/1360937237/surfmode.o build/default/production/_ext/1360937237/text_multilang.o build/default/production/_ext/1360937237/tft.o build/default/production/_ext/1360937237/tft_outputs.o build/default/production/_ext/1360937237/wait.o build/default/production/_ext/1360937237/compass.o build/default/production/_ext/1360937237/compass_calib.o build/default/production/_ext/1360937237/p2_deco.o
MPLINK 5.00, LINKER
Device Database Version 1.17
Copyright (c) 1998-2013 Microchip Technology Inc.
Error - Coff file './build/default/production/_ext/1360937237/convert.o' could not read string table.
Errors : 1

nbproject/Makefile-default.mk:743: recipe for target 'dist/default/production/OSTC.X.production.hex' failed
make[2]: Leaving directory 'H:/Tauchcomputer/Code/OSTC.X'
nbproject/Makefile-default.mk:76: recipe for target '.build-conf' failed
make[1]: Leaving directory 'H:/Tauchcomputer/Code/OSTC.X'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make[2]: *** [dist/default/production/OSTC.X.production.hex] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 3m 35s)
[/quote]
heinrichsweikamp
Posts: 4446
Joined: Sunday 13. May 2007, 18:07

Re: setup MPLAB X IDE

Post by heinrichsweikamp »

SirNoahFell Wrote:
> Die "Errors while reading string table" Fehler
> tereten allerdings nicht immer bei den gleichen
> Dateien auf.

Das klingt nach einem Compiler oder Speicherproblem. Wenn es jetzt immer bei anderen Dateien passiert hat das eher nichts mit dem Code zu tun...

Gruß,
Matthias
Post Reply