Skip to content
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

esp firmware error FAILED: openhaystack.elf #44

Closed
ju5t3nc4s3 opened this issue Jan 30, 2024 · 7 comments
Closed

esp firmware error FAILED: openhaystack.elf #44

ju5t3nc4s3 opened this issue Jan 30, 2024 · 7 comments

Comments

@ju5t3nc4s3
Copy link

ju5t3nc4s3 commented Jan 30, 2024

i like to compile my own firmware for a newer board ESP32-C2 .were to start cant find that this board is compatable with IDE. i have these nano boards from aliexspress esp8684 wroom 07 . im gona itergrate them into usb cables log output error
[817/819] Linking CXX executable openhaystack.elf

FAILED: openhaystack.elf

cmd.exe /C "cd . && C:\Espressif\tools\riscv32-esp-elf\esp-12.2.0_20230208\riscv32-esp-elf\bin\riscv32-esp-elf-g++.exe -march=rv32imc_zicsr_zifencei -nostartfiles -march=rv32imc_zicsr_zifencei --specs=nosys.specs -Wl,--cref -Wl,--defsym=IDF_TARGET_ESP32C2=0 -Wl,--Map=C:/Users/Ju5t3nc4s3/Documents/macless-haystack-main/firmware/ESP32/build/openhaystack.map -Wl,--no-warn-rwx-segments -fno-rtti -fno-lto -Wl,--gc-sections -Wl,--warn-common -T esp32c2.peripherals.ld -T esp32c2.rom.ld -T esp32c2.rom.api.ld -T esp32c2.rom.rvfp.ld -T esp32c2.rom.newlib.ld -T esp32c2.rom.version.ld -T esp32c2.rom.mbedtls.ld -T esp32c2.rom.newlib-nano.ld -T esp32c2.rom.heap.ld -T memory.ld -T sections.ld @CMakeFiles\openhaystack.elf.rsp -o openhaystack.elf && cd ."

c:/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: esp-idf/freertos/libfreertos.a(app_startup.c.obj): in function `main_task':

C:/Espressif/frameworks/esp-idf-v5.1.2/components/freertos/app_startup.c:206: undefined reference to `app_main'

collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

@ju5t3nc4s3 ju5t3nc4s3 changed the title esp firmware esp firmware error FAILED: openhaystack.elf Jan 31, 2024
@dchristl
Copy link
Owner

Hello,

I don't understand everything what you are trying to achieve, but your error seems, that the folder structure ist not correct. This is because the project is in "platformio"-style and not the default for the esp32 toolchain. You can have a look at my other project the instructions are working here, too. You just have to add your board to platform.ini to compile for ESP32 C2. You can find an example how this is will be done here

Regards,
Danny

@ju5t3nc4s3
Copy link
Author

ju5t3nc4s3 commented Jan 31, 2024

i cant get the board manager to show up for this esp32-c2/esp8684 in platformio or in arduino ide. this is why i tryed to buils the firmware with exspressif ide.py it shows up with 5.1 esp32-c3 board adds but no esp32-c2

@dchristl
Copy link
Owner

dchristl commented Feb 2, 2024

I'm sorry; I don't understand you. If the device is not recognized, it has nothing to do with the IDE (Platformio also uses the Espressif framework under the hood). ArduinoIDE is a different programming language. Do you mean this by board manager:
image

It seems that this board is currently supported, but released yet. But you can find a workaround for that.

Can't really help or test it, because I don't have such a board.

@ju5t3nc4s3
Copy link
Author

is it posable to get this into 2mb flash its showing i need (.1mb)

@dchristl
Copy link
Owner

Sorry, I don't understand what you are trying to say. The firmware is below 1 MB.

@ju5t3nc4s3
Copy link
Author

finaly got it running, when im done this will be the worlds smallest gps tracker, it will be imbeded into a usb charge cable and very undetectable
IMG_20240123_205641__01
IMG_20240211_215209

@supaeasy
Copy link
Contributor

supaeasy commented Mar 4, 2024

Interesting but I don't understand your use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants