custom_IR_ESP8266_1M builds help needed

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
chromo23
Normal user
Posts: 827
Joined: 10 Sep 2020, 16:02
Location: germany

custom_IR_ESP8266_1M builds help needed

#1 Post by chromo23 » 24 Jan 2024, 11:34

Hey @TDer,
can you tell what the differences are. I don´t know which one i should use....
custom esp.png
custom esp.png (20.24 KiB) Viewed 1456 times
Last edited by chromo23 on 24 Jan 2024, 15:34, edited 1 time in total.

User avatar
chromo23
Normal user
Posts: 827
Joined: 10 Sep 2020, 16:02
Location: germany

Re: differences in custom ESP8266_1M builds

#2 Post by chromo23 » 24 Jan 2024, 11:41

and in addition to that, how would i nowadays make a "custom_IR_ESP8266_1M" build.
I wanted to update an WiFi-socket of mine and realized, that there is no custom ir build anymore for 1M units...

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: differences in custom ESP8266_1M builds

#3 Post by TD-er » 24 Jan 2024, 11:51

274 refers to the Arduino SDK version 2.7.4
"Beta" refers to the latest Arduino SDK version (currently 3.1.2 I think)

Both have their pros and cons.
For example the versions that came after 2.7.4 were flaky at best and quite a bit larger in build size, but the latest ones do have improved significantly. Both in build size as well as stability.

However the 'beta' ones do use quite a bit more RAM.
I have experimented with "2nd heap". It does allow for quite a bit more free memory, but code execution is slower and on some boards (I think it is related to the flash chip used) it may result in quite a lot of watchdog resets.
I have 2nd heap build running on one node here which is running for over a month now, fully packed with sensors and no crashes.

But for IR I don't think you should use a 2nd heap build as the decoding is rather time-sensitive.

I think I have turned off the custom 1M IR build as it didn't fit anymore.
You can change the board definition in the 4M variant and try to make a build.

User avatar
Ath
Normal user
Posts: 3522
Joined: 10 Jun 2018, 12:06
Location: NL

Re: differences in custom ESP8266_1M builds

#4 Post by Ath » 24 Jan 2024, 11:52

chromo23 wrote: 24 Jan 2024, 11:34 Hey @TDer,
can you tell what the differences are. I don´t know which one i should use....
custom esp.png
That's actually explained in the README.md (frontpage) on Github... :lol:
/Ton (PayPal.me)

User avatar
chromo23
Normal user
Posts: 827
Joined: 10 Sep 2020, 16:02
Location: germany

Re: differences in custom ESP8266_1M builds

#5 Post by chromo23 » 24 Jan 2024, 12:01

Thanks!
TD-er wrote: 24 Jan 2024, 11:51 I think I have turned off the custom 1M IR build as it didn't fit anymore.
You can change the board definition in the 4M variant and try to make a build.
Do you think this is ok?

Code: Select all

[env:custom_IR_ESP8266_1M]
extends                   = esp8266_1M
platform                  = ${ir.platform}
platform_packages         = ${ir.platform_packages}
build_flags               = ${ir.build_flags} 
                            ${esp8266_1M.build_flags} 
                            -DPLUGIN_BUILD_CUSTOM
lib_ignore                = ${esp8266_custom_common_274.lib_ignore}
                            ESP8266SdFat
                            SD(esp8266)
                            SD
                            SDFS
                            LittleFS(esp8266)
extra_scripts             = ${esp8266_custom_common_274.extra_scripts}
It builds fine, so maybe i give it a try....
Ath wrote: 24 Jan 2024, 11:52 That's actually explained in the README.md (frontpage) on Github...
Not quite...
The term "beta" is explained as "Arduino Beta release" which was not very clear for me what it exactly means.

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: differences in custom ESP8266_1M builds

#6 Post by TD-er » 24 Jan 2024, 12:04

At first glance the config looks OK.
Make a backup of your settings before uploading, as it might destroy the file system if you pick the wrong layout.

User avatar
chromo23
Normal user
Posts: 827
Joined: 10 Sep 2020, 16:02
Location: germany

Re: differences in custom ESP8266_1M builds

#7 Post by chromo23 » 24 Jan 2024, 15:02

TD-er wrote: 24 Jan 2024, 12:04 At first glance the config looks OK.
Make a backup of your settings before uploading, as it might destroy the file system if you pick the wrong layout.
Flash was successful but I should have made a backup of the whole firmware since there is now no way of going back.
Problem is, that P016 is missing.
So when i try to add it either "#define PLUGIN_BUILD_NORMAL_IR 1" in custom.h or "-DPLUGIN_BUILD_IR" as a build flag i get the same error:
error.png
error.png (101.43 KiB) Viewed 1432 times
Then i thought i just download the old source of the time the build was made and compile myself a new firmware ( the old firmware was called ESP_Easy_mega_20220224_custom_ir_ESP8266_1M)
But no luck either. There is no custom_ir_ESP8266_1M...
How was i able to compile something that was not an option? Strange...
:cry:

Any help is really appreciated.

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: custom_IR_ESP8266_1M builds help needed

#8 Post by TD-er » 24 Jan 2024, 15:59

Code: Select all

[env:custom_IR_ESP8266_1M]
extends                   = esp8266_1M
platform                  = ${ir.platform}
platform_packages         = ${ir.platform_packages}
build_flags               = ${ir.build_flags} 
                            ${esp8266_1M.build_flags} 
                            -DPLUGIN_BUILD_CUSTOM
                            -DPLUGIN_BUILD_IR
lib_ignore                = ESP32_ping
                            ESP32WebServer
                            ServoESP32
                            ESP32HTTPUpdateServer
                            adafruit/Adafruit GFX Library@^1.11.1
                            LOLIN_EPD
                            Adafruit ILI9341 ESPEasy
                            adafruit/Adafruit BusIO
                            Adafruit NeoPixel
                            NeoPixelBus_wrapper
                            NeoPixelBus by Makuna
                            Adafruit NeoMatrix via NeoPixelBus
                            Adafruit Motor Shield V2 Library
                            Adafruit_ST77xx
                            Adafruit NeoMatrix
                            I2C AXP192 Power management
                            EspSoftwareSerial
extra_scripts             = pre:tools/pio/pre_custom_esp82xx_IR.py
                            ${extra_scripts_esp8266.extra_scripts}
                            pre:tools/pio/ir_build_check.py
And then in tools/pio/pre_custom_esp82xx_IR.py:

Code: Select all

  custom_defines=[
    "-DCONTROLLER_SET_ALL",
    "-DNOTIFIER_SET_NONE",
    "-DPLUGIN_SET_NONE",
    "-DUSES_P001",  # Switch
    "-DUSES_P002",  # ADC
    "-DUSES_P003",  # Generic Pulse Counter
    "-DUSES_P004",  # Dallas DS18b20
    "-DUSES_P016",  # IR
    "-DUSES_P026",  # System info
#    "-DUSES_P027",  # INA219
    "-DUSES_P028",  # BME280
#    "-DUSES_P033",  # Dummy
#    "-DUSES_P036",  # FrameOLED
#    "-DUSES_P045",  # MPU6050
#    "-DUSES_P049",  # MHZ19
#    "-DUSES_P052",  # SenseAir
#    "-DUSES_P056",  # SDS011-Dust
#    "-DUSES_P059",  # Encoder
#    "-DUSES_P080",  # Dallas iButton
    "-DUSES_P081",  # Cron
#    "-DUSES_P082",  # GPS
#   "-DUSES_P085",  # AcuDC24x
#    "-DUSES_P098",  # PWM motor
#   "-DUSES_P100",  # Pulse Counter - DS2423
#   "-DUSES_P087",  # Serial Proxy
#   "-DUSES_P094",  # CUL Reader
#   "-DUSES_P095",  # TFT ILI9341
#    "-DUSES_P106",  # BME680
#    "-DUSES_P107",  # SI1145 UV index

#    "-DUSES_P146",  # Cache Reader

#    "-DUSES_C016",  # Cache Controller
#    "-DUSES_C018",  # TTN/RN2483
#   "-DUSES_C015",  # Blynk

#    "-DFEATURE_MDNS=1",
#    "-DFEATURE_SD=1",
#    "-DFEATURE_EXT_RTC=1",
    "-DFEATURE_I2CMULTIPLEXER=0",
    "-DFEATURE_TRIGONOMETRIC_FUNCTIONS_RULES=0",
#    "-DFEATURE_CUSTOM_PROVISIONING=1",

    "-DFEATURE_ESPEASY_P2P=1",

    "-DFEATURE_SETTINGS_ARCHIVE=0"
  ]
  

User avatar
chromo23
Normal user
Posts: 827
Joined: 10 Sep 2020, 16:02
Location: germany

Re: custom_IR_ESP8266_1M builds help needed

#9 Post by chromo23 » 24 Jan 2024, 17:43

THANK YOU! :)

It worked fine.
The only odd thing was, that in AP mode the device was not password protected and the name was also not the same as in the config.h file
TD-er wrote: 24 Jan 2024, 15:59 And then in tools/pio/pre_custom_esp82xx_IR.py:
This i did not need to change.


What do you think about readding the custom_IR_ESP8266_1M back.
There seems to be no issue regarding the size:
size.png
size.png (40.54 KiB) Viewed 1401 times

TD-er
Core team member
Posts: 8756
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: custom_IR_ESP8266_1M builds help needed

#10 Post by TD-er » 24 Jan 2024, 19:30

When stripping almost all from the Python file, then it will fit indeed :)

I will have a look at the factory default settings for the password.

Post Reply

Who is online

Users browsing this forum: No registered users and 29 guests