Announcement

Collapse
No announcement yet.

Fatal error can't proceed pls help

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • risquare
    started a topic Fatal error can't proceed pls help

    Fatal error can't proceed pls help

    I'm getting this error and can't proceed further. All libraries are downloaded and installed properly. Pls help. I'm very excited about this plug-in and want to try it asap.

    C:\Program Files (x86)\Arduino\libraries\SoftPWM/SoftPWM_timer.h:22:20: fatal error: avr/io.h: No such file or directory

  • justinm001
    replied
    Originally posted by rprade View Post
    Support for the NodeMCU is only in the beta version, I think. The latest production release is 1.0.0.131. You will need to go to the beta section of the updater and select 1.0.0.148. You will also need to read the instrucions carefully as you will need to use IDE 1.8.1 and download the board definitions.
    Thanks this was exactly what I needed. Didn't realize NodeMCU was beta only since in normal PDF documentation. Followed instructions exactly and finally online

    Leave a comment:


  • rprade
    replied
    Originally posted by justinm001 View Post

    I'm having the exact same issue as you but using the older version of arduino ide in the docs. What did you select in the plug-in menu? I only see Arduino and Arduino API options
    Support for the NodeMCU is only in the beta version, I think. The latest production release is 1.0.0.131. You will need to go to the beta section of the updater and select 1.0.0.148. You will also need to read the instrucions carefully as you will need to use IDE 1.8.1 and download the board definitions.

    Leave a comment:


  • justinm001
    replied
    Originally posted by risquare View Post
    Hurray !!! Finally managed to flash NodeMCU ESP8266 based board. The problem was that I didn't bother to select Board type at the HS3 plug-in menu leaving it to the default. The reason (for me at least) was that there is a lot of information there that one has no way of knowing beforehand for example MAC address, IP address. That's why I thought that all this info will be retrieved from the board once it get flashed and connects.
    Still a mystery to me what is board's real IP address and real MAC address. I kept the provisional ones that were in the setup menu and they didn't change in same when board got connected. I can't imagine that the plug-in will somehow force my DHCP router to assign the random IP address in the plug-in setup menu.
    Other than that it does work. Tried basic functions. Will continue tomorrow as it's 2:30 AM here in San Diego.
    Thanks for the support and the patience.
    I'm having the exact same issue as you but using the older version of arduino ide in the docs. What did you select in the plug-in menu? I only see Arduino and Arduino API options

    Leave a comment:


  • risquare
    replied
    Originally posted by khriss75 View Post

    Should be a great improvement! Respect nodemcu, ESP32 has a lot of GPIO more and 18ADC pins...
    In addition to that ESP32 is the only viable solution among them all for battery operated wireless devices such as remote keypads, motion sensors etc.

    Leave a comment:


  • khriss75
    replied
    Originally posted by enigmatheatre View Post
    I might try and get an ESP32 based board to try when I get a moment.
    Should be a great improvement! Respect nodemcu, ESP32 has a lot of GPIO more and 18ADC pins...

    Leave a comment:


  • risquare
    replied
    Thanks rprade. It all makes sense. As I said I'm putting this case to rest but I will remain active with question and suggestions by separate threads in this sub-forum. I do have more than a dozen ESP8266 and ESP32 based boards deployed already that communicate with my HS3 (based on other embedded software that I've commissioned).

    Leave a comment:


  • rprade
    replied
    Originally posted by risquare View Post
    Hurray !!! Finally managed to flash NodeMCU ESP8266 based board. The problem was that I didn't bother to select Board type at the HS3 plug-in menu leaving it to the default. The reason (for me at least) was that there is a lot of information there that one has no way of knowing beforehand for example MAC address, IP address. That's why I thought that all this info will be retrieved from the board once it get flashed and connects.
    Still a mystery to me what is board's real IP address and real MAC address. I kept the provisional ones that were in the setup menu and they didn't change in same when board got connected. I can't imagine that the plug-in will somehow force my DHCP router to assign the random IP address in the plug-in setup menu.
    Other than that it does work. Tried basic functions. Will continue tomorrow as it's 2:30 AM here in San Diego.
    Thanks for the support and the patience.
    You must choose the correct board and firmware type on the config page so that the plug-in can generate the correct sketch. The libraries are different between an Arduino and a NodeMCU and an API sketch is different than a basic function sketch.

    The board’s IP address and MAC address are hard coded into the sketch from what you enter on the config page when you download it. If you look at the sketch in the IDE you can see the values in the edit screen. When you upload the sketch to the board it sets the IP of the board. The IP must be static and available. It will not be affected by your router’s DHCP assignment. You chose the IP based on what is available on your network. The MAC address is simply arbitrarily suggested by the plug-in and can be anything you want - same with the port.

    On my system I picked a block of IP addresses corresponding to board numbers XXX.XXX.XXX.151 for board 1, .152 for board 2 and so on. I picked an address range outside of my DHCP pool that was not used for any other devices. I used similar methodologies with the MAC and port. The MAC address is unimportant, they could all be the same or anything you chose. My ports are up in the 55000 range, but the 8900 range suggested by the plug-in work fine.

    Leave a comment:


  • risquare
    replied
    Greig thanks again. The issue at hand here is resolved and case is closed for me. As I continue testing I may have more questions/comments that I will post in separate threads.

    Leave a comment:


  • enigmatheatre
    replied
    The boards need a static IP which you need to put into the plugin config page then you need to download the sketch because as you have found the plugin configures the sketch for each board. All other info like pin setup is done on the fly and the sketch upload is not needed.

    Greig.

    Leave a comment:


  • risquare
    replied
    Hurray !!! Finally managed to flash NodeMCU ESP8266 based board. The problem was that I didn't bother to select Board type at the HS3 plug-in menu leaving it to the default. The reason (for me at least) was that there is a lot of information there that one has no way of knowing beforehand for example MAC address, IP address. That's why I thought that all this info will be retrieved from the board once it get flashed and connects.
    Still a mystery to me what is board's real IP address and real MAC address. I kept the provisional ones that were in the setup menu and they didn't change in same when board got connected. I can't imagine that the plug-in will somehow force my DHCP router to assign the random IP address in the plug-in setup menu.
    Other than that it does work. Tried basic functions. Will continue tomorrow as it's 2:30 AM here in San Diego.
    Thanks for the support and the patience.

    Leave a comment:


  • risquare
    replied
    Originally posted by enigmatheatre View Post
    try importing them from the IDE menu. Sketch / include Library / add zip Library.

    Greig
    I've tried that too but I've got this error

    Error compiling for board NodeMCU 1.0 (ESP-12E Module).
    Specified folder/zip file does not contain a valid library

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

    Leave a comment:


  • risquare
    replied
    Originally posted by enigmatheatre View Post
    is the SoftPWM that is with the plugin in C:\Program Files (x86)\Arduino\libraries\

    there are multiples of the other libraries. where did you put the plugin ones?

    I am off to bed as it is 1.30am here but will look for your reply tomorrow.

    Greig.
    Arduino IDE came with its own libraries after clean download and install.
    I unzipped the libraries that came from HS3plug-in and put all 5 of them in the Arduino/libraries folder.
    There was no overlapping. I didn't get any message "folder exist do you want to overwrite it".
    Except for that I didn't create/modify/relocate/delete/import any libraries.
    Thanks for your effort to help making this working. It's appreciated.

    Leave a comment:


  • enigmatheatre
    replied
    try importing them from the IDE menu. Sketch / include Library / add zip Library.

    Greig

    Leave a comment:


  • enigmatheatre
    replied
    is the SoftPWM that is with the plugin in C:\Program Files (x86)\Arduino\libraries\

    there are multiples of the other libraries. where did you put the plugin ones?

    I am off to bed as it is 1.30am here but will look for your reply tomorrow.

    Greig.

    Leave a comment:

Working...
X