-
-
Notifications
You must be signed in to change notification settings - Fork 345
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
ESP32 on MacOS M2 (ARM) #2682
Comments
I did it.❯ git checkout origin/develop
|
@mikee47 can you help here? |
You'll probably run into other problems building against IDF 5.3, though if you can get it working great! I've found the IDF needs a bit of patching to get it to build properly as many headers aren't stdC++ compliant. Sming only officially builds against IDF 5.0 at present. See https://sming.readthedocs.io/en/latest/_inc/Sming/Arch/Esp32/README.html#idf-versions. (Current stable IDF version is 5.1.1 so any further work should probably target that? Or 5.2?) Regarding the above flash string warnings, IDF 5.0 uses GCC 11.2 which isn't afflicted with this issue. AFAIK the esp32 MMU can handle byte accesses so the workaround in #2671 might work. Easy enough to try, though integrating that into Sming would require proper testing on all esp32 variants, just in case. |
thanks a lot @mikee47. I did a test but with no succes, I've cleaned my installation and cloned The error has changet to the following one ... Any suggestion? Thanks again, regards
|
Use the normal Sming repository (SmingHub/Sming) but use IDF V5 from https://github.com/mikee47/esp-idf.git, branch `sming/release/v5.0'. If you follow the instructions here https://sming.readthedocs.io/en/latest/getting-started/linux/index.html the SDK will be installed for you at /opt/esp-idf. |
thanks I did a test on my M2 using a Parallels VM and everithing is fine. Then I've tried the same test on the M2 machine 'physically' ... I'm not able to understand why it doesn't work ... followinf the error ... Not able to undestand why on physical M2 the following check fail : Any soggestions? Thanks in advance ❯ make SMING_ARCH=Esp32
|
Just a little update ... reverting back the physical machine to Sonoma 14.1.1 it's works as on the VM. Thanks to all |
Probably the final update, With the export the Thanks a lot. |
Dear all,
i've installed esp-idf 5.3 with Sming master branch. when I try to compile a sample like Basic_Blink i receive a lot of error:
any suggestion? I've also tried with SMING_RELEASE=1 without any success.
Thanks in advance for support.
regards
Stefano
❯ make SMING_ARCH=Esp32
Basic_Blink: Invoking 'all' for Esp32/esp32 (debug) architecture
Using configuration 'standard'
ninja: Entering directory `/Users/reggy/sming/Sming/Sming/out/Esp32/esp32/debug/build/esp32/sdk'
[1/4] cd /Users/reggy/sming/Sming/Sming/out/Esp32/esp32/debug/build/esp32/sdk/esp-idf/esptool_py && /Users/reggy/.espressif/python_env/...ebug/build/esp32/sdk/partition_table/partition-table.bin /Users/reggy/sming/Sming/Sming/out/Esp32/esp32/debug/build/esp32/sdk/Sming.bin
Sming.bin binary size 0x24300 bytes. Smallest app partition is 0x100000 bytes. 0xdbd00 bytes (86%) free.
[2/4] Performing build step for 'bootloader'
[1/1] cd /Users/reggy/sming/Sming/Sming/out/Esp32/esp32/debug/build/esp32/sdk/bootloader/esp-idf/esptool_py && /Users/reggy/.espressif/python_env/idf5.3_py3.11_env/bin/python /Users/reggy/sming/esp32/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x1000 /Users/reggy/sming/Sming/Sming/out/Esp32/esp32/debug/build/esp32/sdk/bootloader/bootloader.bin
Bootloader binary size 0x6810 bytes. 0x7f0 bytes (7%) free.
[4/4] Completed 'bootloader'
Copying generated SDK libraries
/Library/Developer/CommandLineTools/usr/bin/make components application
Building /Users/reggy/sming/Sming/Sming/out/Esp32/esp32/debug/lib/clib-Storage-ddb3c2344901dd3c699241077ab0010f.a
C+ /Users/reggy/sming/Sming/Sming/Components/Storage/src/Debug.cpp
/Users/reggy/sming/Sming/Sming/Components/Storage/src/Debug.cpp: In function 'void Storage::Debug::listPartitions(Print&)':
/Users/reggy/sming/Sming/Sming/Components/Storage/src/Debug.cpp:12:20: error: using a dangling pointer to 'buf' [-Werror=dangling-pointer=]
12 | out.println(_F("Registered partitions:"));
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/reggy/sming/Sming/Sming/Components/FlashString/src/include/FlashString/config.hpp:24,
from /Users/reggy/sming/Sming/Sming/Components/FlashString/src/include/FlashString/Utility.hpp:24,
from /Users/reggy/sming/Sming/Sming/Components/FlashString/src/include/FlashString/Object.hpp:24,
from /Users/reggy/sming/Sming/Sming/Components/FlashString/src/include/FlashString/String.hpp:24,
from /Users/reggy/sming/Sming/Sming/Wiring/WString.h:64,
from /Users/reggy/sming/Sming/Sming/Wiring/Print.h:24,
from /Users/reggy/sming/Sming/Sming/Components/Storage/src/include/Storage/Debug.h:3,
from /Users/reggy/sming/Sming/Sming/Components/Storage/src/Debug.cpp:1:
/Users/reggy/sming/Sming/Sming/Wiring/FakePgmSpace.h:86:27: note: 'buf' declared here
86 | LOAD_PSTR(buf, pstr);
| ^~~
/Users/reggy/sming/Sming/Sming/Wiring/FakePgmSpace.h:149:14: note: in definition of macro 'LOAD_PSTR'
149 | char name[ALIGNUP4(sizeof(flash_str))] attribute((aligned(4)));
| ^~~~
/Users/reggy/sming/Sming/Sming/Components/Storage/src/Debug.cpp:12:21: note: in expansion of macro '_F'
12 | out.println(_F("Registered partitions:"));
| ^~
The text was updated successfully, but these errors were encountered: