-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
Support for ESP-IDF style ESP8266_RTOS_SDK #125
Comments
@WallaceWilliam could you help us with PR? I see you are working on https://github.com/WallaceWilliam/framework-esp8266-rtos-sdk-idf-platformio No need to rename framework to |
this is my hobby. I am ready to do everything in my capabilities. |
Yes – it will be better to replace the old ESP8266_RTOS_SDK rather than have this custom version.
Thanks.
Sent from Mail for Windows 10
From: WallaceWilliam
Sent: Monday, March 4, 2019 6:34 AM
To: platformio/platform-espressif8266
Cc: srini1948; Author
Subject: Re: [platformio/platform-espressif8266] Support for ESP-IDF styleESP8266_RTOS_SDK (#125)
this is my hobby. I am ready to do everything in my capabilities.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
version ESP8266_RTOS_SDK in https://github.com/platformio/platform-espressif8266 is 1.5.0-beta |
I am still having problems with the “custom8266” version – it already has the “option” true setting in platform.json.
Once I install this custom platform the new project Wizard of PlatformIO in Visual Studio Code shows Arduino as the only option for ESP8266 boards!
It seems to remove the three other options: Simba, RTOS and NORTOS
It does not show the newly installed Custom platform at all. I guess a fake Arduino project has to be created and its Platform.ini has to be manually edited.
I don’t need the 1.5 version. It will be great if as you suggest framework-esp8266-rtos-sdk will itself be replaced by the 3.2.0
Thanks.
Sent from Mail for Windows 10
From: WallaceWilliam
Sent: Monday, March 4, 2019 7:21 AM
To: platformio/platform-espressif8266
Cc: srini1948; Author
Subject: Re: [platformio/platform-espressif8266] Support for ESP-IDF styleESP8266_RTOS_SDK (#125)
version ESP8266_RTOS_SDK in https://github.com/platformio/platform-espressif8266 is 1.5.0-beta
version ESP8266_RTOS_SDK in https://github.com/WallaceWilliam/framework-esp8266-rtos-sdk-idf-platformio is current branch (v3.2.dev-...) of https://github.com/espressif/ESP8266_RTOS_SDK
These versions are not compatible. and all projects written on the old version (1.5.0) will not work.
I have projects in both versions.
for you I can make a separate branch where the framework version 3.2.0 will be framework-esp8266-rtos-sdk. not framework-esp8266-rtos-sdk-idf
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
You can control the framework version using |
I rename framework from esp8266-rtos-sdk-idf to esp8266-rtos-sdk |
Could you provide PR => https://github.com/platformio/platform-espressif8266/pulls? |
While trying to install Wallace’s latest version I get an error saying unknown package “tool-esptoolpy”
Sent from Mail for Windows 10
From: Ivan Kravets
Sent: Monday, March 4, 2019 1:25 PM
To: platformio/platform-espressif8266
Cc: srini1948; Author
Subject: Re: [platformio/platform-espressif8266] Support for ESP-IDF styleESP8266_RTOS_SDK (#125)
Could you provide PR => https://github.com/platformio/platform-espressif8266/pulls?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
Thanks – it worked finally!
Sent from Mail for Windows 10
From: WallaceWilliam
Sent: Monday, March 4, 2019 3:53 PM
To: platformio/platform-espressif8266
Cc: srini1948; Author
Subject: Re: [platformio/platform-espressif8266] Support for ESP-IDF styleESP8266_RTOS_SDK (#125)
While trying to install Wallace’s latest version I get an error saying unknown package “tool-esptoolpy”
run platformio platform update
and trying again to install
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I tried (because I really really want to develop something with FreeRTOS) to install per above notes with no success. `Processing nodemcuv2 (framework: esp8266-rtos-sdk; platform: custom8266; board: nodemcuv2)PackageManager: Installing framework-esp8266-rtos-sdk |
edit File "C:\Users\Gerrit.platformio\platforms\custom8266\builder\frameworks\esp8266-rtos-sdk.py" |
That results in
|
in the file "C:\Users\Gerrit.platformio\platforms\custom8266\builder\frameworks\esp8266-rtos-sdk.py" |
That now gives: |
If I delete the there is no bootloader.map file in the directories. |
please, update paltform: (in terminal) compile project again put it here |
error in this |
Awesome progress! Linking .pioenvs\8266\firmware.elf There is a bootloader.map present now. |
please, update paltform: (in terminal) |
Great work! |
I did that several times, forgot to tell you. It does nothing (Instead I copy/pasted the .py file that you modified today) `Platform custom Espressif 8266Updating custom8266 @ 1.0.0 [Detached] So I deleted the package, which got reinstalled with latest. Same result. missing firmware.map file |
Updating custom8266 @ 1.0.0 [Detached] - is not good try delete path C:\Users\Gerrit.platformio\platforms\custom8266 P.S. after manual change .py file, update platform us run platformio platform update dont work. |
Ok, that did it!!!! Result is an upload attempt to my device, that failed unfortunately due to having space in file path :-( ` |
update platform and try again Platform custom Espressif 8266 |
Uploaded, yippee..... Again, thank you soo much for the work and help. |
@WallaceWilliam any clue why PlatformIO on VS Code won't find the tools from the toolchain when trying to "build" code? `Processing nodemcuv2 (framework: esp8266-rtos-sdk; platform: custom8266; board: nodemcuv2)PackageManager: Installing toolchain-xtensa-lx106-elf-520 @ >5.0.0 What strikes me is that each time I try to build it thinks it needs to reinstall the toolchain again. Also when I do a `Platform custom Espressif 8266Updating custom8266 @ 1.0.0 [Detached] |
please, post platforms\custom8266\platform.json |
The problem lies in the fact that your implementation so far is only aimed at Windows. As I’m on a Mac it could obviously not install the required tools. I have been working on 2 forks of your repositories to also support the osx toolchain. I will come back on this later. |
@DrywFiltiarn I redisign platform.json and add support for OSX |
@WallaceWilliam the systems for OSX will be: "darwin_x86_64" or "darwin_i386" both use the same toolchain download. What you configured now for the manifast is invalid. needs to be You could add Linux as well, but that would require you to copy the correct tar.gz from espressif and modifity it to contain the correct package.json. The manifest in my fork https://github.com/DrywFiltiarn/xtensa-lx106-elf-1.22.0-92-g8facf4c-5.2.0/blob/master/manifest.json is configured correctly for osx. |
@WallaceWilliam Hi, After an update on platformio i'm stuck with "fatal error: spiffs.h: No such file or directory". Also i needed to add in generated sdkconfig.h "#define CONFIG_ESP8266_PHY_MAX_WIFI_TX_POWER 20" to reach this step.
Processing d1_mini (platform: custom8266; board: d1_mini; framework: esp8266-rtos-sdk)Verbose mode can be enabled via
compilation terminated.
compilation terminated. ==================================================================================================== [ERROR] Took 5.92 seconds ==================================================================================================== Terminal will be reused by tasks, press any key to close it. |
Hi |
Thanks @WallaceWilliam ! My first solution was to delete spiffs folder from sdk components(because i don't need this feature in my porject). #define CONFIG_USING_SPIFFS 1 |
Hi all!
© https://github.com/espressif/ESP8266_NONOS_SDK What about updating RTOS in platformio to the up to date version (release/v3.3)? Can you concentrate your forces in support of a single framework, please? I'm trying to write wemos d1 mini pro firmware for a couple of days with different approaches. Thanks. |
I installed the platform using the command
I created a new project, selecting a board from the custom8266 section, and went to compile.
EDIT: I fixed this by copying the indentation of the line below it to this line with the error. Then I received this;
The README goes on to say install CMake, install GNU Make, rename src to main, build project using idf.py… So - then to build a project, it is no longer using PlatformIO…? I have to use this same CMakeLists.txt file in every Project? Then what was the purpose of the WallaceWilliam Platform? I’m confused… |
Greetings. |
in fact, vscode is used as a text editor |
Sorry, I didn't mean to sound ungrateful. I'm just confused as to what your platform provides. |
the project in its current state has no advantages |
Maybe a approach like the platform-espressif32 and ESP-IDF build script can be taken -- instead of re-implementing everything in Python, call into the native CMake environment (https://github.com/platformio/platform-espressif32/blob/e542df17d188a4545965ca8bafe6d0882e31d1c0/builder/frameworks/espidf.py#L631-L640). That is very robust against changes. @ivankravets This topic of an outtdated ESP8266-RTOS-SDK has also appeared in https://community.platformio.org/t/update-to-esp8266-rtos-sdk/6485 recently |
Maybe this is better discussed on the community forum, but I'd like to try and keep the ESP8266 alive and kicking, if there's not too much work involved. The Non-OS version is deprecated, but the version based on FreeRTOS still has potential, IMO. The ESP32 world is now CMake-driven, it seems, which adds considerable overhead in PIO (in terms of slowing down the edit-run dev cycle), whereas on ESP8266 it's still a very snappy build and upload (1.843 MBaud works fine here). For me, the 8266 offers a way to develop rapidly, while working on code which should also port well to ESP32. And depending on where you're coming from, 100 kB flash + 40 kB RAM free for application code, while having an RTOS-based TCP/IP is pretty useful. (For reference: I've been doing most of my recent dev work on STM32, and the 1-sec dev cycles are so effective that I really want to get to comparable cycle times on the other systems. On ESP8266-RTOS it's under 5s, which is still very decent.) |
any plans for this yet? |
The current ESP8266 on PlatformIO is very old. Could you please consider adding the new ESP-IDF style ESP8266_RTOS_SDK. The SDK structure is similar to that of ESP32-IDF.
The text was updated successfully, but these errors were encountered: