http://erika.tuxfamily.org/wiki/index.p ... pplication
per impostare tutto l'ambiente su Windows Vista.
Quello che mi succede e che Ecpilse non riesce a compilare i progetti d'esempio ho provato con 2 progetti Task Demo sotto OOExamples e Simple Periodic Task sotto Flex.
Utilizzo una Flex Full e la versione di Erika è l'ultima la 1.6.1.
Posto i log della console, come si nota non riesce a trovare le funzioni _FOSC e _FOSCSEL tipiche del microcontrollore
Log di Task Demo:
Code: Select all
**** Build of configuration Default for project pov ****
C:\Users\WISTA\flexworkspace\pov\Debug\make_launcher.bat all
C:\cygwin\bin\bash found!
cygwin warning:
MS-DOS style path detected: C:\Users\WISTA\flexworkspace\pov\Debug
Preferred POSIX equivalent is: /cygdrive/c/Users/WISTA/flexworkspace/pov/Debug
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Using erika files in /cygdrive/c/Users/WISTA/Desktop/EE_RT-~1.1-I/eclipse/plugins/COB887~1.201/ee_files
CPP ee_flex_demoboard.c
In file included from C:\Users\WISTA\Desktop\EE_RT-~1.1-I\eclipse\plugins\COB887~1.201\ee_files\pkg\board\ee_flex\src\ee_flex_demoboard.c:256:
C:/Users/WISTA/Desktop/EE_RT-~1.1-I/eclipse/plugins/COB887~1.201/ee_files/pkg/mcu/microchip_dspic/inc/ee_utils.h: In function 'EE_read_foscsel':
C:/Users/WISTA/Desktop/EE_RT-~1.1-I/eclipse/plugins/COB887~1.201/ee_files/pkg/mcu/microchip_dspic/inc/ee_utils.h:138: error: '_FOSCSEL' undeclared (first use in this function)
C:/Users/WISTA/Desktop/EE_RT-~1.1-I/eclipse/plugins/COB887~1.201/ee_files/pkg/mcu/microchip_dspic/inc/ee_utils.h:138: error: (Each undeclared identifier is reported only once
C:/Users/WISTA/Desktop/EE_RT-~1.1-I/eclipse/plugins/COB887~1.201/ee_files/pkg/mcu/microchip_dspic/inc/ee_utils.h:138: error: for each function it appears in.)
C:/Users/WISTA/Desktop/EE_RT-~1.1-I/eclipse/plugins/COB887~1.201/ee_files/pkg/mcu/microchip_dspic/inc/ee_utils.h: In function 'EE_read_fosc':
C:/Users/WISTA/Desktop/EE_RT-~1.1-I/eclipse/plugins/COB887~1.201/ee_files/pkg/mcu/microchip_dspic/inc/ee_utils.h:154: error: '_FOSC' undeclared (first use in this function)
make: *** [obj/pkg/board/ee_flex/src/ee_flex_demoboard.o] Error 1
**** Build Finished ****
Code: Select all
**** Build of configuration Default for project lol ****
C:\Users\WISTA\flexworkspace\lol\Debug\make_launcher.bat all
C:\cygwin\bin\bash found!
cygwin warning:
MS-DOS style path detected: C:\Users\WISTA\flexworkspace\lol\Debug
Preferred POSIX equivalent is: /cygdrive/c/Users/WISTA/flexworkspace/lol/Debug
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
Using erika files in /cygdrive/c/Users/WISTA/Desktop/EE_RT-~1.1-I/eclipse/plugins/COB887~1.201/ee_files
CPP ee_utils.c
In file included from C:\Users\WISTA\Desktop\EE_RT-~1.1-I\eclipse\plugins\COB887~1.201\ee_files\pkg\mcu\microchip_dspic\src\ee_utils.c:43:
C:/Users/WISTA/Desktop/EE_RT-~1.1-I/eclipse/plugins/COB887~1.201/ee_files/pkg/mcu/microchip_dspic/inc/ee_utils.h: In function 'EE_read_foscsel':
C:/Users/WISTA/Desktop/EE_RT-~1.1-I/eclipse/plugins/COB887~1.201/ee_files/pkg/mcu/microchip_dspic/inc/ee_utils.h:138: error: '_FOSCSEL' undeclared (first use in this function)
C:/Users/WISTA/Desktop/EE_RT-~1.1-I/eclipse/plugins/COB887~1.201/ee_files/pkg/mcu/microchip_dspic/inc/ee_utils.h:138: error: (Each undeclared identifier is reported only once
C:/Users/WISTA/Desktop/EE_RT-~1.1-I/eclipse/plugins/COB887~1.201/ee_files/pkg/mcu/microchip_dspic/inc/ee_utils.h:138: error: for each function it appears in.)
C:/Users/WISTA/Desktop/EE_RT-~1.1-I/eclipse/plugins/COB887~1.201/ee_files/pkg/mcu/microchip_dspic/inc/ee_utils.h: In function 'EE_read_fosc':
C:/Users/WISTA/Desktop/EE_RT-~1.1-I/eclipse/plugins/COB887~1.201/ee_files/pkg/mcu/microchip_dspic/inc/ee_utils.h:154: error: '_FOSC' undeclared (first use in this function)
make: *** [obj/pkg/mcu/microchip_dspic/src/ee_utils.o] Error 1
**** Build Finished ****
Avendo windows vista ho letto che ci possono essere dei problemi con i path, per il workspace di eclipse ho impostato C:\Users\<NomeUtente>\flexworkspace che dovrebbe essere giusto, almeno secondo il tutorial però il compilatore della Microchip è in C:\Program Files\Microchip che sarebbe non percorso non ammissibile perchè contiene degli spazi, anche se è l'equivalente della stringa Programmi in cui si installano tipicamente i programmi. E' questo che può provocare problemi?
Infine vorrei farvi vedere l'IDE, che non credo si presenti bene perchè mi da tutti i riferimenti dei registri del microcontrollore come errati
E' normale anche questo?
Grazie :)