Skip to content

Built library is not the same as official one #156

Open
@vinegod

Description

@vinegod

I tried to do test build on my Arch-linux

# Install packages, clone repo
$ git clone git@github.com:espressif/esp32-arduino-lib-builder.git -b release/v4.4
$ cd esp32-arduino-lib-builder 
$ ./build.sh -A idf-release/v4.4 -I release/v4.4 -t esp32

Files from esp32-arduino-lib-builder/out I moved into arduino-esp32 folder with replace.

As result with git diff can see there is difference between sdkconfig files.
Also I'm facing weird problem with platformio build:

*** [.pio/build/esp32dev/bootloader.bin] Source `/home/user/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/bin/bootloader__80m.elf' not found, needed by target `.pio/build/esp32dev/bootloader.bin'.

Can this happens because I have board_build.flash_mode = qio in my platfomio.ini ?

platform.ini file:

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:esp32dev]
platform = espressif32
framework = arduino
platform_packages =
 	framework-arduinoespressif32 @ https://github.com/vinegod/arduino-esp32-custom-bootloader.git#custom_boot

board_build.arduino.upstream_packages = no

board = esp32dev
monitor_speed = 115200
upload_speed = 921600
build_flags = -Os -std=gnu++17 -Wall -Wextra -fno-exceptions
build_unflags = -Og -std=gnu++11 -fno-rtti
build_type = release

board_build.flash_mode = qio
board_build.f_flash = 80000000L
board_build.f_cpu = 240000000L

board_upload.flash_size = 16MB
board_build.partitions = app3M_fat9M_16MB.csv

board_build.mcu = esp32

custom_prog_version = 3.3.4

lib_deps =
	fastled/FastLED@^3.6.0
	rpolitex/ArduinoNvs@^2.5
	homespan/HomeSpan

Can you kindly assist with difference in sdkconfig files?
I want to debug if my library works almost same as default one, however it's not possible with so many changes

Activity

me-no-dev

me-no-dev commented on Feb 20, 2024

@me-no-dev
Member

As result with git diff can see there is difference between sdkconfig files.

and differences are?

You are building the libs with newer IDV v4.4 than it's in the repo, so it is normal for some options to change, be added or removed.

vinegod

vinegod commented on Feb 21, 2024

@vinegod
Author

I made a small PR inside my forked repo: https://github.com/vinegod/arduino-esp32-custom-bootloader/pull/1/files#diff-e841640ecb84f39a6641d517f764d240368658a1c4797a7a09ba0cd333cd4bb7

I'm trying to build exactly same firmware but with option to factory reset OTA and for some reason Wi-Fi is not working (or board just crashes).

Maybe there is problem in libraries, however I started from differences in sdkconfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @me-no-dev@vinegod

        Issue actions

          Built library is not the same as official one · Issue #156 · espressif/esp32-arduino-lib-builder