Xcc700: Self-Hosted C Compiler For The ESP32/Xtensa

With two cores at 240 MHz and about 8.5 MB of non-banked RAM if you’re using the right ESP32-S3 version, this MCU seems at least in terms of specifications to be quite the mini PC. Obviously …

Hackaday

Xcc700: Self-hosting mini C compiler for ESP32 (Xtensa) in 700 lines

https://github.com/valdanylchuk/xcc700

#HackerNews #Xcc700 #ESP32 #SelfHosting #Compiler #Xtensa #GitHub

GitHub - valdanylchuk/xcc700: mini C compiler for esp32

mini C compiler for esp32. Contribute to valdanylchuk/xcc700 development by creating an account on GitHub.

GitHub
Hi everyone. I don't understand the following #ESP32 #Xtensa assembly code and looking for explanations. I am not sure the Ghidra decompiler is doing the right thing here. Having trouble understanding the loop mnemonic here (`loop a5, LAB_400f7cd4`). a5 holds the loop count for the zero overhead loop. But what does the label hold? The end, i.e. where to continue after all iterations? Where does the loop begin and where is the end of an iteration? I am confused by the docs.
#reverseEngineering

Все мои Ардуинки: часть третья, ESP8266 и ESP32

И снова, уже в третий раз ( здесь у нас первый , вон там второй ) вашему вниманию предлагается моя коробочка с Ардуинками. На этот раз будем извлекать из неё и рассматривать под светом допросной лампы платы на микроконтроллерах ESP8266 и ESP32. Также изучим краткую историю появления этих контроллеров, некоторые их особенности и роль в мировой революции место в экосистеме Arduino.

https://habr.com/ru/companies/ruvds/articles/863990/

#ruvds_статьи #arduino #arduino_ide #arduino_uno #arduino_nano #arduino_mega #arduino_leonardo #arduino_pro_mini #arduino_pro_micro #lilypad #freeduino #ардуино #ардуинщик #ардуино_головного_мозга #attiny #atmega #stm8s #blue_pill #stm8blue #stm32duino #micronucleus #mhtiny #esp8266 #esp32 #esp32cam #espressif #esp32s2 #esp32s3 #esp32c3 #xtensa #riscv #nodemcu

Все мои Ардуинки: часть третья, ESP8266 и ESP32

И снова, уже в третий раз ( здесь у нас первый , вон там второй ) вашему вниманию предлагается моя коробочка с Ардуинками. На этот раз будем извлекать из неё и рассматривать под светом допросной лампы...

Хабр

Milestone!!

This rather unspectacular screenshot shows my #FreeBSD desktop running #ArduinoIDE and #compiling #ESP8266 code (#Zimodem firmware). Serial communication also works, which is absolutely brilliant!

It's been quite a ride until I got it all to work. It's a combination of the steps documented here:

https://forums.freebsd.org/threads/a-guide-for-installing-esp8266-for-arduino-on-freebsd.78411/

with additional info (checkout of #espressif 2.7.4 codebase) from here:

https://imin.red/2021/05/12/compile-esp8266-esp32-arduino-code-with-gmake-on-freebsd/

but it also required me to set up #Linux compatibility (for the #xtensa compiler which is a Linux x86_64 binary) and modify arduino-builder before installing it from #ports

I'll write down my steps in the next days, until then - if you have any questions - please comment. Thank you!

A guide for installing esp8266 for Arduino on FreeBSD

Today I will tell you how to install ESP8266 with Arduino on FreeBSD. It works very well. Ok let's start the guide. You need to compile arduino18 from ports devel/arduino18 Keep the following patch files in /usr/ports/devel/arduino18/files directory and delete the other files...

The FreeBSD Forums

Выполняем сторонние программы на микроконтроллерах с Гарвардской архитектурой: как загружать программы без знания ABI?

Зачастую в процессе разработки собственных устройств или моддинга уже существующих, встаёт задача выполнения стороннего кода: будь то ваши собственные программы с SD-флэшек, или программы, написанные другими пользователями с помощью SDK для вашего устройства. Тема компиляторов и кодогенерации достаточно сложная: чтобы просто загрузить ELF или EXE (PE) программу, вам нужно досконально разбираться в особенностях вашей архитектуры: что такое ABI, релокации, GOT, отличие -fPIE от -fPIC, как писать скрипты для ld и т. п. Недавно я копал SDK для первых версий Symbian и основываясь на решениях из этой ОС понял, каким образом можно сделать крайне «дешевую» загрузку любого нативного кода практически на любом микроконтроллере, совершенно не вникая в особенности кодогенерации под неё! Сегодня мы с вами: узнаем, что происходит в процессе загрузки программы ядром Linux, рассмотрим концепцию, предложенную Symbian Foundation и реализуем её на практике для относительно малоизвестной архитектуры — XTensa (хотя она используется в ESP32, детали её реализации «под капотом» для многих остаются загадкой). Интересно? Тогда добро пожаловать под кат!

https://habr.com/ru/companies/timeweb/articles/784408/

#timeweb_статьи #bodyawm_ништячки #микроконтроллеры #микропроцессоры #esp32 #elf #binary #бинарные_файлы #exe #dll #so #executable #исполняемый_файл #программа #программы #загрузчик #линкер #linker #ld #gnu_ld #gcc #cc #xtensa #esp8266 #avr #atmega #attiny #pic #компоновщик #C #C++ #системное_программирование

Выполняем сторонние программы на микроконтроллерах с Гарвардской архитектурой: как загружать программы без знания ABI?

Зачастую в процессе разработки собственных устройств или моддинга уже существующих, встаёт задача выполнения стороннего кода: будь то ваши собственные программы с SD-флэшек, или программы, написанные...

Хабр

First 10 patches to add Xtensa support inside LLVM have been merged upstream, https://github.com/search?q=repo%3Allvm%2Fllvm-project+Xtensa&type=commits \o/.

#llvm #xtensa #espressif #compiler

Ultra-portable thermal camera dev kit with
* Melexis MLX90640 far-infrared (FIR) thermal sensor
* 1.14" 135×240 resolution color TFT
* Powered by #ESP32 -PICO-D4 sporting two Tensilica #Xtensa LX6 cores, #BLE
* $79 @ #M5Stack store

#microcontrollers #mcu #embedded #makers #devkit #DevBoards

https://www.hackster.io/news/m5stack-launches-pocket-friendly-esp32-based-m5stick-t-lite-thermal-camera-development-kit-823e432133f2

M5Stack Launches Pocket-Friendly ESP32-Based M5Stick-T Lite Thermal Camera Development Kit

Combining two of the company's existing designs, the new pocket-sized tool offers live thermal imaging with remote data transfer.

Hackster.io
LLVM Lands New Backend For Xtensa Architecture

@Wintermute_BBS

re "esp-open-sdk" sounds like perhaps a question for @ishotjr @sad_electronics who might have some ideas about building #XTensa for #esp8266 development.

(maybe look at https://github.com/esp-open-sdk/esp-open-sdk ? it looks like a much more recently updated fork, and there are some fresh discussions of the build process & patches for same here:

https://github.com/esp-open-sdk/esp-open-sdk/issues/10

GitHub - esp-open-sdk/esp-open-sdk: Free and open (as much as possible) integrated SDK for ESP8266/ESP8285 chips

Free and open (as much as possible) integrated SDK for ESP8266/ESP8285 chips - GitHub - esp-open-sdk/esp-open-sdk: Free and open (as much as possible) integrated SDK for ESP8266/ESP8285 chips

GitHub