Forum > Embedded
Setting up Xtensa-FreeRTOS for ESP8266
ccrause:
--- Quote from: Mongkey on October 03, 2022, 08:32:43 am ---I want to know what linux do you used by the way? Could you explain your detail env on linux, may be mirroring your env, help me out this problem :D
--- End quote ---
I run Linux Mint Mate 20.2. I don't install FPC or Lazarus via the package manager, but have several different versions of both that I compiled from source - this obviously requires a working binary FPC compiler to get going initially. While I can give more information on my setup, it is specific to my computer and would be difficult to adapt to a generic form. In general I followed the Linux installation guides for FPC and Lazarus to get going initially. Things got a little bit more complicated when I started playing around with cross compilers for embedded targets (because of the different units per subarch).
--- Quote ---I know the problem already if you use ubuntu 20(focal fossa), after you build and assign component your lazarus not work anymore, but it has different story if we build on ubuntu 18, all work ok, but no libgc2.65, installed, those lib are my recent problem on ubuntu 18 for extensa.
--- End quote ---
I don't understand, libgc is a garbage collector for C/C++, this should not be a requirement for building Lazarus? Which widget set are you compiling for (GTK2, QT...)? This I think should be discussed under the Lazarus IDE board. There are many Linux users using Lazarus, getting Lazarus working on Linux should not be difficult once the required library dependencies are installed.
Edit: fixed formatting
Mongkey:
On ubuntu 18, after linking it got message that i need at least libgc 2.65 to do, since i'm not linux expert, i didn't know what is libgc 2.65 for, after installing ubuntu 20, it problem disapear, because in ubuntu 20 got built in > libgc 2.65.
krolikbest:
Hi
Interesting thread, currently I do not have a "free space" for any project in this direction however based on my curiosity, how to use the i2c protocol, does the freertos library already have features to allow i2c communication with extrenal devices (like oled dsplay)? If I try to develop something for esp8266 then for sure would use fpcupdeluxe under Win10, however so far I've not tried xtensa+freertos yet.. so don't know what surprises are waiting for me
ccrause:
--- Quote from: krolikbest on June 12, 2023, 11:17:59 am ---Hi
Interesting thread, currently I do not have a "free space" for any project in this direction however based on my curiosity, how to use the i2c protocol, does the freertos library already have features to allow i2c communication with extrenal devices (like oled dsplay)?
--- End quote ---
Yes, see e.g. https://github.com/ccrause/fpc-esp-freertos/blob/master/freertos-fpc/esp8266-idf/i2c.pp
Unfortunately not many i2c device drivers yet...
--- Quote --- If I try to develop something for esp8266 then for sure would use fpcupdeluxe under Win10, however so far I've not tried xtensa+freertos yet.. so don't know what surprises are waiting for me
--- End quote ---
Unfortunately xtensa on Windows via fpcupdeluxe is not yet supported. One can of course do a manual setup on Windows, but it is a little bit involved.
krolikbest:
Thank you for info. According to fpcupdeluxe I see there options to check for xtensa and freertos, so I understand that despite I'm able to check them for installation I would not be able to compile program writen for xtensa (to put it another way-it is not as simply as for example, writing for Raspberry Pi under Windows), right ?
Navigation
[0] Message Index
[#] Next page
[*] Previous page