Jump to content
tschak909

PLATFORM.IO ESP-IDF 3.3.2 changes. Please help build and test!

Recommended Posts

For anyone who is building the firmware: Can you:

 

(1) make sure you've upgraded to latest ESP-IDF

(2) make sure you've fixed dirent.h as here: https://gist.github.com/tschak909/1ad20255c17ac321bbd6fbfde9dac2c3

(3) delete your copy of the sdkdefaults.fujinet-v1

(4) pull the latest fujinet-platformio

(5) clean

(6) build and make sure that the fujinet completely initializes?

 

I had to make a change to sdkdefaults to tweak static memory allocation parameters, with the latest ESP-IDF framework, and would like a few more pairs of eyes to see if things are still ok after the latest change.

 

https://github.com/FujiNetWIFI/fujinet-platformio/commit/dfc7374ee6881fa5d27f828addf849c3ec9c2516#diff-828575c709a84e0dfe49845ee9030bcc01f12e9220029d91761990595de011a1

 

  • Like 1

Share this post


Link to post
Share on other sites

Thanks for that! I just did fresh install, followed wiki but was getting following error:

Archiving .pio/build/fujinet-v1/lib209/libhardware.a
Indexing .pio/build/fujinet-v1/lib209/libhardware.a
Archiving .pio/build/fujinet-v1/lib45e/libsio.a
Indexing .pio/build/fujinet-v1/lib45e/libsio.a
Archiving .pio/build/fujinet-v1/libaca/libhttp.a
Indexing .pio/build/fujinet-v1/libaca/libhttp.a
Linking .pio/build/fujinet-v1/firmware.elf
/home/user/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/fujinet-v1/lib916/libFileSystem.a(fnFsSPIF.o):(.literal._ZN16FileSystemSPIFFS8dir_openEPKcS1_t+0x0): undefined reference to `opendir(char const*)'
/home/user/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/fujinet-v1/lib916/libFileSystem.a(fnFsSPIF.o):(.literal._ZN16FileSystemSPIFFS8dir_readEv+0x0): undefined reference to `readdir(DIR*)'
/home/user/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/fujinet-v1/lib916/libFileSystem.a(fnFsSPIF.o):(.literal._ZN16FileSystemSPIFFS9dir_closeEv+0x0): undefined reference to `closedir(DIR*)'
/home/user/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/fujinet-v1/lib916/libFileSystem.a(fnFsSPIF.o): in function `FileSystemSPIFFS::dir_open(char const*, char const*, unsigned short)':
/home/user/Projects/fujinet-platformio/lib/FileSystem/fnFsSPIF.cpp:16: undefined reference to `opendir(char const*)'
/home/user/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/fujinet-v1/lib916/libFileSystem.a(fnFsSPIF.o): in function `FileSystemSPIFFS::dir_read()':
/home/user/Projects/fujinet-platformio/lib/FileSystem/fnFsSPIF.cpp:28: undefined reference to `readdir(DIR*)'
/home/user/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/fujinet-v1/lib916/libFileSystem.a(fnFsSPIF.o): in function `FileSystemSPIFFS::dir_close()':
/home/user/Projects/fujinet-platformio/lib/FileSystem/fnFsSPIF.cpp:57: undefined reference to `closedir(DIR*)'
collect2: error: ld returned 1 exit status
*** [.pio/build/fujinet-v1/firmware.elf] Error 1
============================================================================ [FAILED] Took 88.48 seconds ============================================================================

Environment    Status    Duration
-------------  --------  ------------
fujinet-v1     FAILED    00:01:28.477
======================================================================= 1 failed, 0 succeeded in 00:01:28.477 =======================================================================
The terminal process "platformio 'run', '--environment', 'fujinet-v1'" terminated with exit code: 1.

(pasting here so it will be easier for others to find if looking for same error)

 

after modifying dirent.h all is working as expected. Thanks!

Share this post


Link to post
Share on other sites
3 hours ago, myriadcs said:

Thanks for that! I just did fresh install, followed wiki but was getting following error:

Archiving .pio/build/fujinet-v1/lib209/libhardware.a
Indexing .pio/build/fujinet-v1/lib209/libhardware.a
Archiving .pio/build/fujinet-v1/lib45e/libsio.a
Indexing .pio/build/fujinet-v1/lib45e/libsio.a
Archiving .pio/build/fujinet-v1/libaca/libhttp.a
Indexing .pio/build/fujinet-v1/libaca/libhttp.a
Linking .pio/build/fujinet-v1/firmware.elf
/home/user/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/fujinet-v1/lib916/libFileSystem.a(fnFsSPIF.o):(.literal._ZN16FileSystemSPIFFS8dir_openEPKcS1_t+0x0): undefined reference to `opendir(char const*)'
/home/user/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/fujinet-v1/lib916/libFileSystem.a(fnFsSPIF.o):(.literal._ZN16FileSystemSPIFFS8dir_readEv+0x0): undefined reference to `readdir(DIR*)'
/home/user/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/fujinet-v1/lib916/libFileSystem.a(fnFsSPIF.o):(.literal._ZN16FileSystemSPIFFS9dir_closeEv+0x0): undefined reference to `closedir(DIR*)'
/home/user/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/fujinet-v1/lib916/libFileSystem.a(fnFsSPIF.o): in function `FileSystemSPIFFS::dir_open(char const*, char const*, unsigned short)':
/home/user/Projects/fujinet-platformio/lib/FileSystem/fnFsSPIF.cpp:16: undefined reference to `opendir(char const*)'
/home/user/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/fujinet-v1/lib916/libFileSystem.a(fnFsSPIF.o): in function `FileSystemSPIFFS::dir_read()':
/home/user/Projects/fujinet-platformio/lib/FileSystem/fnFsSPIF.cpp:28: undefined reference to `readdir(DIR*)'
/home/user/.platformio/packages/toolchain-xtensa32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/fujinet-v1/lib916/libFileSystem.a(fnFsSPIF.o): in function `FileSystemSPIFFS::dir_close()':
/home/user/Projects/fujinet-platformio/lib/FileSystem/fnFsSPIF.cpp:57: undefined reference to `closedir(DIR*)'
collect2: error: ld returned 1 exit status
*** [.pio/build/fujinet-v1/firmware.elf] Error 1
============================================================================ [FAILED] Took 88.48 seconds ============================================================================

Environment    Status    Duration
-------------  --------  ------------
fujinet-v1     FAILED    00:01:28.477
======================================================================= 1 failed, 0 succeeded in 00:01:28.477 =======================================================================
The terminal process "platformio 'run', '--environment', 'fujinet-v1'" terminated with exit code: 1.

(pasting here so it will be easier for others to find if looking for same error)

 

after modifying dirent.h all is working as expected. Thanks!

Thanks, yes. the 4.3.x IDF (that's packaged with platformio-espidf 3.x) has been a never ending stream of fixes like this as the underlying behavior changes.

-Thom

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...