Ciao Marco,
> Il pic è già montato:le piazzole servono per aggiungere eventuali
> circuiti esterni...per far funzionare il tutto, come ti dicevo, devi
> impostare MPLAB Correttamente:
>
> - Apri MPLAB
> - Vai su Configure->Select Device e scegli il PIC18f45k20
> - Vai su Debugger->Select Tool e scegli PicKit3
> - Vai su Debugger-Settings. Qui scegli il tab Power e spunta "power
> target circuit from pickit3". Dovrebbe darti la tensione di
> alimentazione a 3.250 V (di default). Nota che queste operzioni sono
> uguali se scegli Programmer al posto di Debugger
> - collega la demoboard al pickit3
ok, funziona.
> >> - compili il tuo programma
Ecco, qui mi sono bloccato:
se "assemblo" un file .asm non ho problemi:
----------------------------------------------------------------------
Release build of project `Y:\PicKit3\Prova\prova2.mcp' started.
Language tool versions: MPASMWIN.exe v5.37, mplink.exe v4.37,
mplib.exe v4.37
Tue Feb 21 23:06:57 2012
----------------------------------------------------------------------
Executing: "C:\Programmi\Microchip\MPASM Suite\MPASMWIN.exe" /q /
p16F84A "Y:\PicKit3\DualThermo.asm" /l"DualThermo.lst" /
e"DualThermo.err" /o"DualThermo.o"
----------------------------------------------------------------------
Release build of project `Y:\PicKit3\Prova\prova2.mcp' succeeded.
Language tool versions: MPASMWIN.exe v5.37, mplink.exe v4.37,
mplib.exe v4.37
Tue Feb 21 23:07:01 2012
----------------------------------------------------------------------
BUILD SUCCEEDED
Ma se provo a fare il MAKE per generare il .HEX fallisce:
Release build of project `Y:\PicKit3\Prova\prova2.mcp' started.
Language tool versions: MPASMWIN.exe v5.37, mplink.exe v4.37,
mplib.exe v4.37
Tue Feb 21 23:11:57 2012
----------------------------------------------------------------------
Make: The target "Y:\PicKit3\DualThermo.o" is up to date.
Make: The target "Y:\PicKit3\Prova\DualThermo.cof" is out of date.
Executing: "C:\Programmi\Microchip\MPASM Suite\mplink.exe" /p16F84A "..
\DualThermo.o" /z__MPLAB_BUILD=1 /o"DualThermo.cof" /
M"DualThermo.map" /W /x
MPLINK 4.37, Linker
Copyright (c) 1998-2010 Microchip Technology Inc.
Error - section '.org_3' can not fit the absolute section. Section
'.org_3' start=0x00000004, length=0x000004f2
Errors : 1
Link step failed.
----------------------------------------------------------------------
Release build of project `Y:\PicKit3\Prova\prova2.mcp' failed.
Language tool versions: MPASMWIN.exe v5.37, mplink.exe v4.37,
mplib.exe v4.37
Tue Feb 21 23:11:59 2012
----------------------------------------------------------------------
BUILD FAILED
Il file .asm è lo stesso utilizzato su un vecchio pc Win98 e che ha
generato il .hex con cui ho programmato il PIC con il clone su
parallela.
Hai qualche consiglio per risolvere?
Grazie.