You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue while building Blink.cpp gives a linker error:
Building in release mode
Compiling .pio/build/esp320/esp-idf/src/Blink.cpp.o
Linking .pio/build/esp320/firmware.elf
/home/arjan/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/esp320/esp-idf/esp32/libesp32.a(cpu_start.c.o):(.literal.main_task+0x18): u
/home/arjan/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.2.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/esp320/esp-idf/esp32/libesp32.a(cpu_start.c.o): in function `main_task':
/home/arjan/.platformio/packages/framework-espidf/components/esp32/cpu_start.c:539: undefined reference to `app_main'
collect2: error: ld returned 1 exit status
*** [.pio/build/esp320/firmware.elf] Error 1
In short i kept having linker errors where app_main is not found under conditions when :
sdkconfig:# CONFIG_AUTOSTART_ARDUINO is not set
and and only and
As it was not part of the topic no fix to code was proposed. and i don't want to change topic/revive old issue, so created new issue.
Not sure if it is the best solution to the problem, but it makes the blink
sample compile after having CONFIG_AUTOSTART_ARDUINO unset.
The code seems to cope with both cases CONFIG_AUTOSTART_ARDUINO is set or not.
If agreed on solution, shall i create a pull request for it? (develop
branche i guess?)
Regards,
Arjan
The text was updated successfully, but these errors were encountered:
Not sure if it is the best solution to the problem, but it makes the blink
sample compile after having CONFIG_AUTOSTART_ARDUINO unset.
The code seems to cope with both cases CONFIG_AUTOSTART_ARDUINO is set or not.
Hi, i see in develop branch arduino as component blink.cpp sample the support for #if !CONFIG_AUTOSTART_ARDUINO completely has been removed, which would make a PR to fix it a bit silly i'm afraid.
This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
Just started with the arduino as component (platformio) and working to get a previous
project to run, but ended up with the Blink.cpp sample from:
https://github.com/platformio/platform-espressif32/tree/master/examples/espidf-arduino-blink
for reproducing the issue.
The issue while building Blink.cpp gives a linker error:
In short i kept having linker errors where app_main is not found under conditions when :
and and only and
The solution for this is given on espressif/arduino-esp32#1840
to change the Blink.cpp example from:
to:
As it was not part of the topic no fix to code was proposed. and i don't want to change topic/revive old issue, so created new issue.
Not sure if it is the best solution to the problem, but it makes the blink
sample compile after having CONFIG_AUTOSTART_ARDUINO unset.
The code seems to cope with both cases CONFIG_AUTOSTART_ARDUINO is set or not.
If agreed on solution, shall i create a pull request for it? (develop
branche i guess?)
Regards,
Arjan
The text was updated successfully, but these errors were encountered: