-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sonoff-pow-debug build failure (HW8012.h missing) #10
Comments
I just test it and it worked.
|
Original comment by Jean-Luc A. (Bitbucket: cnxsoft2016, GitHub: Unknown): Thanks for the prompt reply. I've done that, hlw8012 actually installs properly but the error remains the same. See pastebin with all three commands output @ [http://pastebin.com/YTqrcuJS](Link URL) Do I need to configure the path for the lib somewhere? Update: I've tried another Ubuntu 16.04 computer, and the result is the same. node-debug builds fine by the way. |
Original comment by Jean-Luc A. (Bitbucket: cnxsoft2016, GitHub: Unknown): Finally I found a workaround -> platformio/platformio-core#672 (comment) I added <HLW8012.h> in src/main.ino, and the build could complete:
I guess it's not a proper fix though... |
Original comment by Jean-Luc A. (Bitbucket: cnxsoft2016, GitHub: Unknown): I think it's a PlatformIO bug, so I mark it as invalid. |
Have you tested turning on deep scanning, as Ivan suggests? Can't see a reason why this would not work for HLW2012.h but it would for NtpClientLib.h, which is also included from an included file... Still, I can't reproduce the issue so I cannot test the different options... |
Original comment by Jean-Luc A. (Bitbucket: cnxsoft2016, GitHub: Unknown): I had seen that, but I can't find any "deep search" lib_dfcyclic option in platformIO. The bug was filed for 2.x, I'm using 3.x:
I've tested it on three different Ubuntu 16.04 machines by the way. All three have that issue. |
Original comment by Jean-Luc A. (Bitbucket: cnxsoft2016, GitHub: Unknown): FYR. this happens with the latest firmware too, but this time I had to edit espurna.ino, and add:
in order to complete the build. Update, after running:
The problem is gone, and no need to edit espurna.ino. |
It makes no sense this is only failing for the POW, the DebounceEvent and fauxmoESP libraries are common to all builds. You said that after running upgrade & update there is no need to modify the espurna.ino file? |
Original comment by Jean-Luc A. (Bitbucket: cnxsoft2016, GitHub: Unknown): Sorry, for the latest firmware, I did not try the others only POW, and I had to add the new header files manually in the ino file. So I guess it failed for all builds. But anyway, once I update platformio, there is no need to modify espurna.ino, and the build works. So this confirms this was a platformio issue. |
This is the repo: https://bitbucket.org/xoseperez/debounceevent If you just need the library you can download it as a ZIP and install it from the Arduino IDE: https://bitbucket.org/xoseperez/debounceevent/get/1.0.0.zip |
Original comment by sjp770 (Bitbucket: sjp770, GitHub: sjp770): Thanks, that worked to allow me to flash through the Arduino IDE but it |
You have to upload the filesystem image too. Check the "Install the SPIFFS uploader" and "Flashing the filesystem" sections in this wiki page: https://bitbucket.org/xoseperez/espurna/wiki/ArduinoIDE.md |
You can use a standard USB2UART board with an FTDI chip, for instance. Remove the two jumpers that connect the two controllera. But, please. This conversation is not related to ESPurna. You can open an issue in my SonoffSC repo. It certainly needs better documentation. |
Originally reported by: Jean-Luc A. (Bitbucket: cnxsoft2016, GitHub: Unknown)
Building with "run -e sonoff-pow-debug" end with:
It looks like hlw8012 library is not installed automatically even though https://bitbucket.org/xoseperez/hlw8012.git is listed in platformio.ini
The text was updated successfully, but these errors were encountered: