logo elektroda
logo elektroda
X
logo elektroda

Eclipse Environment: AVR Microcontroller Hobbyist Seeking ESP8266 Embedded Programming Guidance

henryxxl 4917 13
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16461764
    henryxxl
    Level 26  
    Hello.
    I am a hobbyist programming avr microcontrollers in eclipse environment.
    I fancy esp8266 programming but directly embedded microcontroller in the module.
    The problem is that I am unable to get eclipse to program esp8266 and I have not found a detailed description of how to do it.
    I know that there is also an option to install virualbox + download the machine from the manufacturer's website, but for me linux is a bit of a difficult topic and I don't know how to deal with it.
    I started the environment on Arduino but it does not suit me very well.
    Regards and I am asking for help or to indicate cool tutorials on how to program esp.
  • ADVERTISEMENT
  • #2 16462628
    excray
    Level 41  
    It is worth taking an interest in the ESP competitor, the new Realtek system - RTL8710.
  • #3 16463274
    henryxxl
    Level 26  
    Thank you, my friend, for the information that there is competition for esp but I have two such modules and I would like to use them.
    Maybe a colleague can tell you more about RTL8710.
    greetings
  • ADVERTISEMENT
  • #5 16463876
    ostrytomasz
    Level 24  
    SDK configuration instructions included with toolchain + Eclipse for Windows: http://www.esp8266.com/viewtopic.php?t=820. There are quite a few examples in the package.
    Personally, I prefer Code :: Blocks: http://tomeko.net/other/ESP8266/native.php.
    They say that the grass is greener on the other side - arduino may not suit you, but the SDK has its problems like incompatibility between versions, which made the version change something so that the project working with SDK 1.4.1 does not compile on the go with SDK 1.5.0 etc. - these are minor but annoying problems.
  • #6 16463949
    krzbor
    Level 27  
    I found some interesting information here: Link . From the first comments: you need a JTAG interface for programming, ESP8266 can be programmed via UART. The interesting thing is that this chip has Flash built in, unlike ESP where I have concerns about the quality of the external Flash memory.
  • #7 16464125
    henryxxl
    Level 26  
    However, I am convinced of the arduino. Mainly due to the simplicity of installation, in addition, I can see that arduino for esp has an additional advantage that my colleague Ostrythomasz writes about.
    greetings

    edit.

    How in Arduino Ide to use uart2 for communication, e.g. with a sim modem?
  • #8 16466305
    ostrytomasz
    Level 24  
    krzbor wrote:
    this chip has Flash built in, unlike ESP where i have concerns about the quality of external flash memory

    ESP also has a version with built-in memory - ESP8285. I would have concerns about the built-in memory, as neither for RTL8710 nor for ESP8285 I can not find information about the number of write or retention cycles. In the case of external memory, even if the memory is a fake, it can be replaced for pennies (winbond memory: 100k P / E cycles, 20 years of retention), in extreme cases use FRAM memory.
  • #9 16466383
    tronics
    Level 38  
    @ostrytomasz - and fram has no read operations limit? In fact, the read operation destroys the written information, so each read means at the same time a re-writing of the same value, which means that the write limit may decrease due to the readings. However, while the built-in memory is convenient, as much as the factory gives, we have. In the case of the external one, we give as much as we want.
  • ADVERTISEMENT
  • #10 16466416
    henryxxl
    Level 26  
    For me personally, I miss some information about esp8266.
    I just put the first page in html and esp ;)
    I have a question if my colleagues have an idea how to solve my problem? I want to save contacts to eeprom via the website but I have no idea how to do it.
    I read in the esp specification that the second uart is only for preview.
    Greetings.
  • ADVERTISEMENT
  • #11 16466466
    krzbor
    Level 27  
    ostrytomasz wrote:
    krzbor wrote:
    this chip has Flash built in, unlike ESP where i have concerns about the quality of external flash memory

    ESP also has a version with built-in memory - ESP8285. I would have concerns about the built-in memory, as neither for RTL8710 nor for ESP8285 I can not find information about the number of write or retention cycles. In the case of external memory, even if the memory is a fake, it can be replaced for pennies (winbond memory: 100k P / E cycles, 20 years of retention), in extreme cases use FRAM memory.

    I read about the extremely low number of write cycles in ESP-01 modules - it will definitely be better in the built-in one. Thanks for the info about ESP8285 - I didn't know about this system. My question - is it possible to block flash reading in it as in AVR?
  • #12 16466467
    ostrytomasz
    Level 24  
    tronics wrote:
    and fram has no limit for read operations?

    10 ^ 14 ... 10 ^ 15 cycles. At 1 million cycles per second (probably a rather wasteful estimate, considering that the chip has some cache memory), this is 30 years of life.

    @henryxxl: Lots of contacts? Maybe the emulated EEPROM is enough:
    https://github.com/esp8266/Arduino/blob/master/doc/libraries.md#eeprom
    http://www.esp8266.com/wiki/doku.php?id=arduino-docs
    If the external EEPROM is I2C or SPI, not UART.

    krzbor wrote:
    can it block flash reading as in AVR?

    If you want to do something closed, the arduino is probably not suitable:
    https://github.com/esp8266/Arduino/issues/1848
  • #13 16466494
    henryxxl
    Level 26  
    I've seen examples of how to write and read eeprom, but I don't know how to do it with a page in html yet. The first page in html is esp, that's why I'm still gray in these topics so far it's only avr c.
    The number of contacts is a maximum of 60 and it can be without names, but only numbers to then read them and send text messages.
    I did something like this on atmega32 + fifibom g510 modem but I liked esp and I see potential in configuring the device like routers.
    I did not know that esp has emulated eeprom (what is its maximum drinkability?), Maybe a better idea would be to use an outer cube but it's still too difficult for me.

Topic summary

A hobbyist experienced in programming AVR microcontrollers using the Eclipse environment seeks guidance on programming the ESP8266 module directly. The user expresses difficulty in configuring Eclipse for ESP8266 programming and mentions challenges with Linux. While exploring alternatives like Arduino, the user prefers a more suitable environment. Responses include suggestions for resources, such as a starter course for LUA and Arduino, SDK configuration instructions for Eclipse, and discussions about the ESP8285 and RTL8710 modules. The conversation also touches on EEPROM usage, UART communication, and the limitations of built-in memory in ESP modules.
Summary generated by the language model.
ADVERTISEMENT