Skip to content

Instantly share code, notes, and snippets.

@vlad-ivanov-name
Created September 13, 2016 21:04
Show Gist options
  • Save vlad-ivanov-name/5d2eaea0588ffdbd150616acda1eb51c to your computer and use it in GitHub Desktop.
Save vlad-ivanov-name/5d2eaea0588ffdbd150616acda1eb51c to your computer and use it in GitHub Desktop.
Eclipse with esp-open-rtos
  1. Create a new esp-open-rtos project by copying the example project, add empty user_init
  2. Build the project
  3. Create a new C project in Eclipse (toolchain — GNU GCC Cross Toolchain, prefix xtensa-lx106-elf-)
  4. In the project properties - C/C++ Build - Settings set the following options
Compiler — Preprocessor — Add ICACHE_FLASH definition
Compiler — Includes — Add:
  esp-open-rtos/include
  esp-open-rtos/FreeRTOS/Source/include
  esp-open-rtos/FreeRTOS/Source/portable/esp8266
  esp-open-rtos/libc/xtensa-lx106-elf/include
  esp-open-rtos/core/include
  esp-open-rtos/open_esplibs/include
  esp-open-rtos/lwip/include
  esp-open-rtos/lwip/lwip/src/include/ipv4
  esp-open-rtos/lwip/lwip/src/include/posix
  esp-open-rtos/lwip/lwip/src/include/lwip
  esp-open-rtos/lwip/lwip/src/include
Linker — Libraries
  esp-open-rtos/examples/template/build/sdklib
  esp-open-rtos/lib
  esp-open-rtos/libc/xtensa-lx106-elf/lib
Linker — Miscellaneous
  -Wl,-static -Wl,-gc-sections -u call_user_start -u _printf_float -u _scanf_float -Tesp-open-rtos/ld/program.ld -Tesp-open-rtos/ld/rom.ld
Linker
  ${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS} -Wl,--start-group esp-open-rtos/examples/template/build/program.a esp-open-rtos/examples/template/build/freertos.a esp-open-rtos/examples/template/build/lwip.a esp-open-rtos/examples/template/build/core.a esp-open-rtos/examples/template/build/open_esplibs.a esp-open-rtos/examples/template/build/open_esplibs_libmain.a -lhal -lgcc -lc -lmain -lnet80211 -lphy -lpp -lwpa -Wl,--end-group
@oscarcreativeshop
Copy link

Hi,
A big favor,

Im trying to create an esp-open-rtos project using eclipse following the above, but have not been successful. Can you help me understand how do we configure the make process to compile?

Thanks
Oscar

@vlad-ivanov-name
Copy link
Author

@oscarcreativeshop I know I'm replying almost two months late but if anyone else has this question, a good way to start is to refer to esp-open-rtos docs: https://github.com/SuperHouse/esp-open-rtos/#quick-start

@kumarmohan7
Copy link

Hi,
Please Help to integrate Eclipse with esp-open-rtos,
I already using esp-nonos-sdk in Eclipse
if u have already integrated Eclipse with esp-open-rtos projects, please attach the eclipse projects,
I will try do same procedure,
Please Help...

Thanks,
Mohankumar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment