Can't compile with a new plugin (PZEM004T)

Moderators: BertB, rtenklooster, Voyager, Stuntteam, Martinus

Post Reply
Message
Author
goldriver
Normal user
Posts: 8
Joined: 14 Jan 2018, 22:55

Can't compile with a new plugin (PZEM004T)

#1 Post by goldriver » 14 Jan 2018, 23:12

Hi,
First I would like to say that I am new to the ESP world and second I am new to compiling of firmware and ... english is not my primary language so please bare with me...

I'm trying to build a firmware that would include the PZEM004T plugin, I installed the Atom environment together with the PlateformIO and I have been able to build the vanilla ESPeasy bin file, not without issues (I had errors with the some IR that I removed from the build to fix) but I got it to build a firmware.

Then, I dowloaded the PZEM004T.io thast i added in the src directory and I also dowloaded the PZEM004.ZIP (containing the librairies, .h files etc) that I put in the lib directory and tried building a normal 4096 file and I got the following errors:

pioenvs\normal_ESP8266_4096\libf16\libEspSoftwareSerial_ID168.a(SoftwareSerial.o): In function `sws_isr_0()':
SoftwareSerial.cpp:(.iram.text+0xf8): multiple definition of `sws_isr_0()'
.pioenvs\normal_ESP8266_4096\lib076\libSoftwareSerial.a(ESPeasySoftwareSerial.o):ESPeasySoftwareSerial.cpp:(.iram.
text+0xd4): first defined here
.pioenvs\normal_ESP8266_4096\libf16\libEspSoftwareSerial_ID168.a(SoftwareSerial.o): In function `sws_isr_1()':
SoftwareSerial.cpp:(.iram.text+0x110): multiple definition of `sws_isr_1()'
.pioenvs\normal_ESP8266_4096\lib076\libSoftwareSerial.a(ESPeasySoftwareSerial.o):ESPeasySoftwareSerial.cpp:(.iram.
text+0xec): first defined here
.pioenvs\normal_ESP8266_4096\libf16\libEspSoftwareSerial_ID168.a(SoftwareSerial.o): In function `sws_isr_2()':
SoftwareSerial.cpp:(.iram.text+0x128): multiple definition of `sws_isr_2()'
.pioenvs\normal_ESP8266_4096\lib076\libSoftwareSerial.a(ESPeasySoftwareSerial.o):ESPeasySoftwareSerial.cpp:(.iram.
text+0x104): first defined here
collect2.exe: error: ld returned 1 exit status
*** [.pioenvs\normal_ESP8266_4096\firmware.elf] Error 1

I have no clue as to what might be my problem,

can anyone please give me some hints ?

thanks a lot

mrhaefele
Normal user
Posts: 1
Joined: 26 Feb 2018, 00:22

Re: Can't compile with a new plugin (PZEM004T)

#2 Post by mrhaefele » 26 Feb 2018, 00:26

Hi,

I have exactly the same issue (and also new to that topic). Did you get any help or could you solve it?

BR Udo

goldriver
Normal user
Posts: 8
Joined: 14 Jan 2018, 22:55

Re: Can't compile with a new plugin (PZEM004T)

#3 Post by goldriver » 26 Feb 2018, 01:17

I used the latest build and it worked for me

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests