-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Compiling core at 80Mhz #1142
Comments
You just set it in the options of the board in the IDE. |
|
When I copied the file and tried to load the sketch through the Arduino Ide, an error was displayed: D:/ESPRESSIF/esp-idf/components/esp32/panic.c:648: undefined reference to `xPortInterruptedFromISRContext' collect2.exe: error: ld returned 1 exit status exit status 1 |
How to compare esp-idf versions? |
hello Ilberstone when I do....
then i get this error: |
Return to step 3 and try again. You must do a |
ok thanks! but i didnt unterstand it completely. did i unterstand it right that will change the IDF to the newer or older commit (version) ? |
|
thank you man! <3 |
Hi, this seems to take the menuconfig back to the previous menu system without all the new bluetooth error and memory system... any ideas how to keep the new menus , while using ESPIDF as a component or can we not do that just yet? |
sdkconfig is just a text file that defines those menus. If you diff the sdkconfig.defaults with the sdkconfig in arduino-esp32, it is not hard to pick out what you need to set. |
Hi, I've followed these instructions carefully (both the 23rd Feb and 14th May posts) and I THINK I've done things correctly. However I get a build error, as follows: I have deselected "Autostart Arduino setup and loop on boot". My blink.cpp file is down to: extern "C" void app_main() extern "C" void app_main() I'm running on Ubuntu. |
There is no need to edit blink.c. It should definitely not include Arduino.h. If you will be using the libraries in Arduino IDE, you need to autostart Arduino setup and loop. Maybe you should explain what you are trying to achieve by making these changes. |
The reason why I am trying this is that I have a lot of Arduino code that I would like to convert to C++, but I don't have the time to do it manually. So if I could run the code in the way described here:
it would allow me to do the migration bit by bit. The document gives 2 options, both of which have an include "Arduino.h". I've selected the 2nd option, which is to have an app_main, as this is moving in the right C++ direction. My main program needs to be a .cpp as I will be developing in c++ on Eclipse. |
Please open a separate issue instead of hijacking this thread, which is pretty clearly about recompiling the libraries for 80MHz. |
I'm sorry ... I had no intention of hijacking this thread, but it is referenced in the https://github.com/espressif/arduino-esp32/blob/master/docs/esp-idf_component.md document re Build errors, which is what I am having. I have started a new thread here: #1840 I very much hope that you will give me some help because I have been trying to get help on this with no luck (for instance on the Espressif forum, here: https://www.esp32.com/viewtopic.php?p=30044#p30044). |
|
Maybe I should have specified, but my issue was unrelated to CPU frequency. Your posts helped in fixing some incompatibility issues I was having with Arduino as an ESP-IDF component. |
@lbernstone , |
Yes. That old function should just call the new one. I'll put in a PR. #3007 |
Hi! |
@ionini I'm not sure what you are referring to with IDF issues. This issue is not about IDF but an Arduino provided API. As for IDF 4.0 (aka master of esp-idf), it should mostly work but there are a couple areas which may not. I'd suggest opening a different issue to cover compatibility issues for IDF and not hijack this one for that |
for the record, it's |
Hello, the error produced in 4.3.1 is the following and regards I2C drivers If anybody is so kind to point a way without docker I will then create a very crear guide for anybody that examplains how to do it and also how to encrypt esp32 flash with a sketch that includes OTA spiffs and firware so just following the procedure the person can
|
Please don't hijack comments that have nothing to do with your issue. Be brave, open an issue where the title has something to do with your problem. |
Sorry @lbernstone . I have published here because on the official IDF Arduino components webpage they refer to this very same issue if compilation errors occur. https://docs.espressif.com/projects/arduino-esp32/en/latest/esp-idf_component.html |
Hi, any success with arduino-as-component? BTW: This is strange, that official doc points to unrelevant thread |
@pedros89 @kostuch Please open a new issue for your compilation issue or join us over on gitter and we can assist with your compilation issues. More than likely you are ending up with an incompatible combination of ESP-IDF and arduino-esp32 and PlatformIO is complicating matters further as they have yet to support arduino-esp32 2.0.0. |
Yes, as pointed out by @atanisoft it is exactely an issue of versions of IDF and Arduino component. Please @kostuch refer to this detailed post to compile successfully. I didn't publish on this thread so it more pertinent. If anybody lands here because they are trying to understand how to encrypt esp32 with Arduino, the solution is at this post: |
hello then >8. i did all the tricks everything is ok ... except libesp32.a is nowhere in the buid repertory ... |
Hello, I had problems as well compiling Arduino as IDF components, it was an issue of versions of IDF and Arduino component. In case did you try to follow the guide #4702 (comment) |
Hi! |
Have you enabled BT/BLE and MbedTLS in menuconfig? |
I solved the WiFiSecureClient by enabling MbedTLS in menuconfig. |
So i have managed to rebuild the arduino componend in esp-idf, then i copyied "libfreertos.a" to "Arduino15\packages\esp32\hardware\esp32\2.0.5\tools\sdk\esp32s3\qio_opi" to test everything, and it was ok, but why i did this was because i wanted to use vTaskList(for debbuging, and learning), so i have went back, and added this to sdkconfig: "CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y assert failed: spinlock_acquire spinlock.h:122 (result == core_id || result == SPINLOCK_FREE) Backtrace:0x403778fe:0x3fce18f00x4037aa7d:0x3fce1910 0x40380c85:0x3fce1930 0x4037de0d:0x3fce1a60 0x4037b756:0x3fce1aa0 0x420192f8:0x3fce1ae0 0x4200ae99:0x3fce1b30 ELF file SHA256: 0000000000000000 Rebooting..." |
What is this error |
@dagi0627 that you are using older esp-idf. Use 5.1.2 |
Please fill the info fields, it helps to get you faster support ;)
If you have a Guru Meditation Error, please decode it:
https://github.com/me-no-dev/EspExceptionDecoder
----------------------------- Remove above -----------------------------
Hardware:
Board: ESP32 Dev Module
Core Installation/update date: 11/jul/2017
IDE name: Arduino IDE
Flash Frequency: 40Mhz
Upload Speed: 115200
Description:
Hi,
I have been using Arduino IDE for ESP32. As per my search, ESP32 core for Arduino has been compiled with 240 Mhz clock. I have never used IDF before. Can someone tell the basics steps how to compile a new arduino core for esp32 with 80Mhz clock.
Thanks
The text was updated successfully, but these errors were encountered: