Can't compile with a new plugin (PZEM004T)

Moderators: BertB, rtenklooster, Voyager, Stuntteam, Martinus

Post Reply
Normal user
Posts: 6
Joined: 14 Jan 2018, 22:55

Can't compile with a new plugin (PZEM004T)

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

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 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()'
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()'
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()'
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

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests