What should I do to compile custom firmware?
Posted: 14 Oct 2019, 14:24
First of all, I am not very good at English, so the following texts are all translations. I hope everyone can understand. I am still learning how to use 8266 and how to build a custom firmware, so the questions that may be asked are rather stupid.I hope that you can help me with the solution. I will study hard and try to understand every word you say, thank you again.
I have a 8266 and I try to access 5 sensors to monitor the air quality in my home.
I have BMP280, BH1750, SDS110, WZ-S and CCS811. ESPEASY is a good platform that allows me to easily connect BMP280, BH1750 and SDS110, but WZ-S and CCS811 do not add these two plug-ins in the three versions of ESPEASY officially. I have to try to compile a custom firmware.
So, I installed ATOM according to the tutorial given by the official WIKI and installed PlatformIO in ATOM, downloaded the ZIP file package from GPEUB of ESPEASY, decompressed, tried to press F7, ATOM reported many errors.
So, I installed ATOM according to the tutorial given by the official WIKI and installed PlatformIO in ATOM, downloaded the ZIP file package from GPEUB of ESPEASY, decompressed, tried to press F7, ATOM reported many errors.
UnicodeEncodeError: 'gbk' codec can't encode character '\xe2' in position 850838: illegal multibyte sequence:
File "C:\Users\39931\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 126:
env.SConscript("$BUILD_SCRIPT")
File "C:\Users\39931\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 605:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\39931\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\39931\.platformio\platforms\espressif8266@src-d2f6a4ecb96f34425e5e701de09dc0a9\builder\main.py", line 203:
target_elf = env.BuildProgram()
File "C:\Users\39931\.platformio\packages\tool-scons\script\..\engine\SCons\Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "C:\Users\39931\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 110:
env.BuildFrameworks(env.get("PIOFRAMEWORK"))
File "C:\Users\39931\.platformio\packages\tool-scons\script\..\engine\SCons\Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "C:\Users\39931\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 288:
env.ConvertInoToCpp()
File "C:\Users\39931\.platformio\packages\tool-scons\script\..\engine\SCons\Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "C:\Users\39931\.platformio\penv\lib\site-packages\platformio\builder\tools\piomisc.py", line 198:
out_file = c.convert(ino_nodes)
File "C:\Users\39931\.platformio\penv\lib\site-packages\platformio\builder\tools\piomisc.py", line 57:
return self.process(contents)
File "C:\Users\39931\.platformio\penv\lib\site-packages\platformio\builder\tools\piomisc.py", line 80:
assert self._gcc_preprocess(contents, out_file)
File "C:\Users\39931\.platformio\penv\lib\site-packages\platformio\builder\tools\piomisc.py", line 90:
fp.write(contents)
I tried installing a different version of PYTHON (I don't know if it was caused by my PYTHON), I also tried Google search for a solution, but I didn't find a solution in the last post that raised this question in the forum. Also invalid. So I sent the question again, I hope everyone can tell me how to fix this error, need to modify those files, or add those characters. Thanks~
I have a 8266 and I try to access 5 sensors to monitor the air quality in my home.
I have BMP280, BH1750, SDS110, WZ-S and CCS811. ESPEASY is a good platform that allows me to easily connect BMP280, BH1750 and SDS110, but WZ-S and CCS811 do not add these two plug-ins in the three versions of ESPEASY officially. I have to try to compile a custom firmware.
So, I installed ATOM according to the tutorial given by the official WIKI and installed PlatformIO in ATOM, downloaded the ZIP file package from GPEUB of ESPEASY, decompressed, tried to press F7, ATOM reported many errors.
So, I installed ATOM according to the tutorial given by the official WIKI and installed PlatformIO in ATOM, downloaded the ZIP file package from GPEUB of ESPEASY, decompressed, tried to press F7, ATOM reported many errors.
UnicodeEncodeError: 'gbk' codec can't encode character '\xe2' in position 850838: illegal multibyte sequence:
File "C:\Users\39931\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 126:
env.SConscript("$BUILD_SCRIPT")
File "C:\Users\39931\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 605:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\39931\.platformio\packages\tool-scons\script\..\engine\SCons\Script\SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "C:\Users\39931\.platformio\platforms\espressif8266@src-d2f6a4ecb96f34425e5e701de09dc0a9\builder\main.py", line 203:
target_elf = env.BuildProgram()
File "C:\Users\39931\.platformio\packages\tool-scons\script\..\engine\SCons\Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "C:\Users\39931\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 110:
env.BuildFrameworks(env.get("PIOFRAMEWORK"))
File "C:\Users\39931\.platformio\packages\tool-scons\script\..\engine\SCons\Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "C:\Users\39931\.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 288:
env.ConvertInoToCpp()
File "C:\Users\39931\.platformio\packages\tool-scons\script\..\engine\SCons\Environment.py", line 224:
return self.method(*nargs, **kwargs)
File "C:\Users\39931\.platformio\penv\lib\site-packages\platformio\builder\tools\piomisc.py", line 198:
out_file = c.convert(ino_nodes)
File "C:\Users\39931\.platformio\penv\lib\site-packages\platformio\builder\tools\piomisc.py", line 57:
return self.process(contents)
File "C:\Users\39931\.platformio\penv\lib\site-packages\platformio\builder\tools\piomisc.py", line 80:
assert self._gcc_preprocess(contents, out_file)
File "C:\Users\39931\.platformio\penv\lib\site-packages\platformio\builder\tools\piomisc.py", line 90:
fp.write(contents)
I tried installing a different version of PYTHON (I don't know if it was caused by my PYTHON), I also tried Google search for a solution, but I didn't find a solution in the last post that raised this question in the forum. Also invalid. So I sent the question again, I hope everyone can tell me how to fix this error, need to modify those files, or add those characters. Thanks~