Chat freely about anything...

User avatar
By jefazo666
#37709 Hi All,

I've just started the development in Esp8266. I have some doubts that I would like to share with you and you may be able to clear.

I have seen that you can upload your own program to the Esp8266, so you do not need an external processor to communicate via serial and process the input/output data. This is very cool and it is actually what I was looking for. However, I have also seen that you can update the firmware, and my doubts come here. Are the firmware and your personal code, the same? If I upload my code, do I remove the original firmware? if I update the firmware, do I remove my uploaded code?

I have read a lot of pages to figure out this and is not very clear for me. I know that in the Esp8266 chip you have the hardware for the wifi connection, and some standard hardware devices common in other pics (PWM, timers, etc... ), and in the 25Q8... (the other chip) the TCP/IP stack is written. If I am right, this is a flash memory.

I understand that the ESP8266 has its own memory as any other pic (48K in this one if I am not wrong), and this is where my code will go. Then, where is the firmware located? Is the firmware including the AT commands?
is it the case that when uploading a new code, the at commands will not work anymore till the firmware is restored?

Thank you all for your answers.
Kind Regards
User avatar
By eduperez
#37867 Your code (be it an Arduino sketch or a LUA program) gets compiled, linked with as many libraries as needed, and uploaded as a new firmware to the device. The AT commands are served by "the AT firmware", so as soon as you upload your own code, you lose that functionality.