ESP8266 - two sdk applications
-
- Posts: 15
- Joined: Thu Jul 12, 2018 2:06 pm
ESP8266 - two sdk applications
Postby sedlacek.david » Tue Jul 24, 2018 4:37 pm
Hi. A simple question. Can I have two NON OS SDK applications on a single esp8266? My custom bootloader (including os libs) and my custom application (also including os libs). Don't want share the libs because of the potential complexity of whole solution.
I can imagine I'll have two iroms in flash. Also I believe the iram section of the first application sits at the beginning of the FLASH and gets copied after the startup.
What I'm not sure about is how can I manage to get the second IRAM section stored in the middle of the flash (application IRAM) to the actual IRAM?
Hope it is clear. Thanks in advance.
I can imagine I'll have two iroms in flash. Also I believe the iram section of the first application sits at the beginning of the FLASH and gets copied after the startup.
What I'm not sure about is how can I manage to get the second IRAM section stored in the middle of the flash (application IRAM) to the actual IRAM?
Hope it is clear. Thanks in advance.
Re: ESP8266 - two sdk applications
Postby Pato » Tue Aug 07, 2018 3:21 pm
Hey !
Yes you can, this is the "OTA" feature of the Esp.
In the SDK you have different bootloaders available. The bootloaders for OTA basivally consider the flash is split in two slots (called user1 and user2 by Espressif), and they will run one of the two applications according to a flag set in Eeprom. There even exist others bootloaders on the net like "rboot", that, if I remember, allows even more applications slots.
Each application is standalone and embeds all the library code it needs (no such thing like shared library).
For your question about IRAM, I'm not sure I understand, I would say the compiler/booloader already take care about loading the righ piece of code in IRAM on startup.
Yes you can, this is the "OTA" feature of the Esp.
In the SDK you have different bootloaders available. The bootloaders for OTA basivally consider the flash is split in two slots (called user1 and user2 by Espressif), and they will run one of the two applications according to a flag set in Eeprom. There even exist others bootloaders on the net like "rboot", that, if I remember, allows even more applications slots.
Each application is standalone and embeds all the library code it needs (no such thing like shared library).
For your question about IRAM, I'm not sure I understand, I would say the compiler/booloader already take care about loading the righ piece of code in IRAM on startup.
-
- Posts: 15
- Joined: Thu Jul 12, 2018 2:06 pm
Re: ESP8266 - two sdk applications
Postby sedlacek.david » Wed Aug 15, 2018 4:00 pm
Hi, thank you for your reply!
I've been scrutinizing how does it work and it is clear now. I have to load the cca 3 volatile sections (IRAM/DRAM..) and reset the stack manually from the FLASH before jumping into my application.
I've been scrutinizing how does it work and it is clear now. I have to load the cca 3 volatile sections (IRAM/DRAM..) and reset the stack manually from the FLASH before jumping into my application.
-
- Posts: 1
- Joined: Tue Aug 28, 2018 8:37 pm
Re: ESP8266 - two sdk applications
Postby JohnyWalter » Tue Aug 28, 2018 8:43 pm
Also thanks,that help me as well.
I want to ask can we establish a nodeMCU module to module communication ? in which one module will act as transmitter and keep sending a string while the second module with the lcd attached receive that string and show it on the lcd?
I want to ask can we establish a nodeMCU module to module communication ? in which one module will act as transmitter and keep sending a string while the second module with the lcd attached receive that string and show it on the lcd?
Who is online
Users browsing this forum: No registered users and 3 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.