uno R3 et module ENC28J60 sous jeedom


matrixover
 Share

Messages recommandés

c'est quoi ton problème je suis pas pro arduino mais la programmation de pic ou AtMega je maitrise

Lien vers le commentaire
Partager sur d'autres sites

salut

voila je possede un raspberry pi2 sous jeedom et je souhaite faire reconnaitre mon uno r3 ch340 en reseau car apparament non compatible en usb sous jeedom

mon module reseau est le enc28j60

voici le tuto

https://blognote.jeremyblaizeau.com/arduino-uno-jeedom-connecte-reseau-enc28j60-shield-ethernet/

c'est mon premier essais du logiciel arduino ide

donc sous jeedom j'ai recupéré la librairie pour le uno et le module reseau j'ai mis les dossiers dans le dossier librairie de arduino ide

puis toujour sous jeedom j'ai recupéré le sketch du materiel

j'ai donc fait un copier coller puis fais la modification montrer sur le tuto je met et fait televerser

la ca me marque des erreures si je fais pas la modife pas de message d'erreure mais ca fonctionne pas

Lien vers le commentaire
Partager sur d'autres sites

Donne les erreur mais pour commenter c est juste

//la ligne est commmentée

et d apres ce que je comprend il suffit de commenter

//#include <Ethernet.h>

et decommenter cette ligne

#include <UIPEthernet.h>

Lien vers le commentaire
Partager sur d'autres sites

voici le rapport d'erreure


Arduino : 1.6.12 (Windows 10), Carte : "Arduino/Genuino Uno"


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src/UIPEthernet.h:33:0,


from C:\Users\UTILIS~1\AppData\Local\Temp\arduino_modified_sketch_201060\sketch_nov22a.ino:40:


C:\Program Files\Arduino\libraries\UIPEthernet\src/UIPClient.h:25:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "Client.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src/UIPEthernet.h:33:0,


from C:\Users\UTILIS~1\AppData\Local\Temp\arduino_modified_sketch_201060\sketch_nov22a.ino:40:


C:\Program Files\Arduino\libraries\UIPEthernet\src/UIPClient.h:26:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "utility/mempool.h"


^


C:\Program Files\Arduino\libraries\UIPEthernet\src/UIPClient.h:29:4: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "utility/uip.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src/UIPEthernet.h:34:0,


from C:\Users\UTILIS~1\AppData\Local\Temp\arduino_modified_sketch_201060\sketch_nov22a.ino:40:


C:\Program Files\Arduino\libraries\UIPEthernet\src/UIPServer.h:23:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "Server.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src/UIPEthernet.h:34:0,


from C:\Users\UTILIS~1\AppData\Local\Temp\arduino_modified_sketch_201060\sketch_nov22a.ino:40:


C:\Program Files\Arduino\libraries\UIPEthernet\src/UIPServer.h:24:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "UIPClient.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\Dhcp.cpp:8:0:


C:\Program Files\Arduino\libraries\UIPEthernet\src\utility/util.h:5:0: warning: "ntohs" redefined


#define ntohs(x) htons(x)


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPUdp.h:28:0,


from C:\Program Files\Arduino\libraries\UIPEthernet\src\Dhcp.h:7,


from C:\Program Files\Arduino\libraries\UIPEthernet\src\Dhcp.cpp:6:


C:\Program Files\Arduino\libraries\UIPEthernet\src\utility/uip.h:1087:0: note: this is the location of the previous definition


#define ntohs htons


^


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.cpp:22:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "utility/uip-conf.h"


^


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.cpp:23:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "utility/uip.h"


^


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.cpp:24:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "utility/uip_arp.h"


^


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.cpp:25:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "string.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.h:33:0,


from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.cpp:27:


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.h:25:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "Client.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.h:33:0,


from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.cpp:27:


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.h:26:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "utility/mempool.h"


^


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.h:29:4: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "utility/uip.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.h:34:0,


from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.cpp:27:


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPServer.h:23:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "Server.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.h:34:0,


from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.cpp:27:


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPServer.h:24:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "UIPClient.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.h:33:0,


from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.cpp:21:


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.h:25:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "Client.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.h:33:0,


from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.cpp:21:


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.h:26:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "utility/mempool.h"


^


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.h:29:4: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "utility/uip.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.h:34:0,


from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.cpp:21:


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPServer.h:23:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "Server.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.h:34:0,


from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.cpp:21:


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPServer.h:24:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "UIPClient.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.h:33:0,


from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPServer.cpp:19:


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.h:25:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "Client.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.h:33:0,


from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPServer.cpp:19:


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.h:26:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "utility/mempool.h"


^


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.h:29:4: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "utility/uip.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.h:34:0,


from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPServer.cpp:19:


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPServer.h:23:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "Server.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.h:34:0,


from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPServer.cpp:19:


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPServer.h:24:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "UIPClient.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.h:33:0,


from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPUdp.cpp:20:


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.h:25:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "Client.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.h:33:0,


from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPUdp.cpp:20:


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.h:26:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "utility/mempool.h"


^


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPClient.h:29:4: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "utility/uip.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.h:34:0,


from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPUdp.cpp:20:


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPServer.h:23:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "Server.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPEthernet.h:34:0,


from C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPUdp.cpp:20:


C:\Program Files\Arduino\libraries\UIPEthernet\src\UIPServer.h:24:2: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "UIPClient.h"


^


In file included from C:\Program Files\Arduino\libraries\UIPEthernet\src\utility\uip_debug.cpp:4:0:


C:\Program Files\Arduino\libraries\UIPEthernet\src/utility/uip_debug.h:4:4: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "utility/uip.h"


^


C:\Program Files\Arduino\libraries\UIPEthernet\src\utility\uip_debug.cpp:6:4: warning: #import is a deprecated GCC extension [-Wdeprecated]


#import "utility/uip.h"


^


c:\program files\arduino\hardware\tools\avr\bin\../lib/gcc/avr/4.9.2/../../../../avr/bin/ar.exe: unable to rename 'core\core.a'; reason: Permission denied


exit status 1

Erreur de compilation pour la carte Arduino/Genuino Uno


Ce rapport pourrait être plus détaillé avec

l'option "Afficher les résultats détaillés de la compilation"

activée dans Fichier -> Préférences.
Lien vers le commentaire
Partager sur d'autres sites

  • 2 weeks later...

Exécute l'ide Arduino en Admin il a pas les permission pur renommer les fichier

unable to rename 'core\core.a'; reason: Permission denied

 

Ensuite semble que le projet soit vieux car les import son déprécier normalement ça pose pas de problème mais qui sait commence par l’exécuter en admin on verras après

Lien vers le commentaire
Partager sur d'autres sites

Créer un compte ou se connecter pour commenter

Vous devez être membre afin de pouvoir déposer un commentaire

Créer un compte

Créez un compte sur notre communauté. C’est facile !

Créer un nouveau compte

Se connecter

Vous avez déjà un compte ? Connectez-vous ici.

Connectez-vous maintenant
 Share