Other Initial support for ESP32

Discussion in 'B4R Questions' started by Erel, Jan 8, 2017.

  1. Erel

    Erel Administrator Staff Member Licensed User

    What do you mean? Are you able to compile if you open the generated project with Arduino IDE?
     
  2. positrom2

    positrom2 Active Member Licensed User

    The Arduino example sketch for testing the Adafruit 1306 oled compiles and can be uploaded to the ESP32, rather than the B4r Projekt which gives that error. But I might misunderstand your question. The B4r Projekt can't be compiled in the arduino ide.
    Update:
    I remember about the scr.ino. However, I can't find it. From a B4R compiling project, I find scr.ino.bin and ...elf in the B4R/Objects/bin folder, but not scr.ino, also not in the B4R folder and its subfolders.
    From a non-compiling project like that for the ESP32 there is nothing like those (bin, elf, of course).
     
    Last edited: Jan 17, 2017
  3. positrom2

    positrom2 Active Member Licensed User

    As a follow-up to my post #22 I have some questions about the src.ino file.
    Is that file only created when there is no error in the B4R compilation process?
    Is that file deleted when the compilation was successful?
    What is the file location?
    After a successful compilation I did find a src.bin and a scr.elf file but no src.ino.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    No. It is created during compilation.
    No.
    Objects\src
     
  5. positrom2

    positrom2 Active Member Licensed User

    Thank you.
    It was a little bit confusing that the scr.ino file is keeping the same (old) date for any new compilation.
    Coming back to the question in post #21:
    The project displaying BMP280 data on an OLED 1306 display (listed in post #4) does not compile for the ESP32, both in B4R and in the Arduino IDE, whereas it runs on the ESP8266.
     
    Last edited: Jan 23, 2017
  6. Erel

    Erel Administrator Staff Member Licensed User

    As I'm unable to compile their C example in the Arduino IDE and I did test it with their latest version a few days ago, I'm leaving it open for now.
     
  7. rwblinn

    rwblinn Well-Known Member Licensed User

    FYI
    The site Steps to install Arduino ESP32 support on Windows has been reworked.
    Beside additional get tools being installed, there is also info on how to update to the latest code.

    Have reinstalled completely to ensure latest tools etc.

    Compiled successfully a simple LED Blink program on a ESP32 Dev Module.

    (on my old test machine Toshiba Satellite, Windows Vista, Arduino IDE 1.8.0)
     
    Last edited: Jan 28, 2017
    Erel likes this.
  8. positrom2

    positrom2 Active Member Licensed User

    THE OLED SSD1306 did not work with the ESP32 though it worked in combination with the ESP8266
    and, from the Arduino IDE, with the ESP32.
    Has there been some progress to get the OLED SSD1306 work with B4R with the ESP32?
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    Not yet.
     
  10. rbghongade

    rbghongade Active Member Licensed User

    Dear Friends,
    Received the great Wemos Lolin32 board yesterday! The build is excellent , retaining the reputation of Wemos.
    I updated Arduino IDE as per the instructions at: https://github.com/espressif/arduino-esp32/blob/master/doc/windows.md
    1) Was able to blink the built-in LED (pin 5)
    2) Scan for wi-fi networks
    3) Connect to wi-fi as client
    All using examples from Arduino IDE
    Now the problem part:
    Tried using B4R 1.80 ( it recognises the Lolin board)
    But if I try to compile any code the error message I get is always the same:
    Code:
    B4R version: 1.80
    Parsing code.    (
    0.00s)
    Compiling code.    (
    0.00s)
    Building project    (
    0.04s)
    Compiling & deploying Ino project (WEMOS LOLIN32 - COM32)    Error

    sketch\B4RCore.cpp: 
    In static member function 'static void B4R::BR::varArgsToObject(B4R::Object*, int, va_list)':
    B4RCore.cpp:233: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
          o[index].wrapPointer((const __FlashStringHelper*)va_arg(arguments, void*));
                                                                                   ^
    sketch\B4RCore.cpp:
    5:10: note:   initializing argument 1 of 'B4R::Object* B4R::Object::wrapPointer(void*)'
      Object* Object::wrapPointer(void* p) {
              ^
    exit status 1
    invalid conversion from 
    'const void*' to 'void*' [-fpermissive]
    Even tried using some inline C code but the error is always the same.
    The board is really impressive and if we could get B4R to work with it , we would get the most powerful work-horse of IOT devices at our disposal!
    PS: Was able to implement MQTT (again with Arduino IDE , sadly though!)
    IMG_20170602_113636.jpg
     
    Last edited: Jun 2, 2017
  11. Erel

    Erel Administrator Staff Member Licensed User

    I'll check it.
     
    kolbe and rbghongade like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice