ESP32
Chips
Micro Processor / Controller (sliding scale)
Design chips, include IP, Fab
Intel/AMD X86-64 CISC
ARM Cortex A7, M0+, M4, M7
MIPS/RISC, 24Kc, RISC-V
TI Texas Instruments CC26xx
Nordic Semiconductor, M4 nrf52840
Silicon Labs, Gecko
ST Micro, STM32 M4
Espressif, Xtensa L7 ESP32 S-C-H
Microchip, Atmel ATMEGA 328P
Microchip, ATSAMR21E18A ARM Cortex®-M0+
Renesas, NEC
Freescale, NXP, Motorola? NXP i.MX8M
Broadcom
Atheros Qualcomm: mips_24kc ath79
Realtek RTL8196E, Lexra RLX4181 MIPS-I
MICROCONTROLLERS
https://github.com/agamrossen/VolAnti
https://thelastoutpostworkshop.github.io/ESPConnect/
SWD / JTAG
https://github.com/walmis/blackmagic-espidf
ESP32
doit esp32 dev kit v1 921600 80Mhz
Espressif
https://www.espressif.com/en/products/modules
https://www.esp32.com/viewforum.php?f=23
| IEEE 802.15.4 | |||||
|---|---|---|---|---|---|
| ESP8266 | Cadence Xtensa LX6 single core | ||||
| ESP32 | Cadence Xtensa LX6 single/dual core | ||||
| S2 | Cadence Xtensa LX7 | ||||
| S3 | Dual | RISC-V | 240Mhz | ||
| H2 | RISC-V | ||||
| C2 | RISC-V | ||||
| C3 | Single | RISC-V | 160Mhz | ||
| C6 | Dual | RISC-V | 160Mhz | Thread |
https://www.flywing-tech.com/blog/esp32-s3-vs-esp32-c3-vs-esp32-c6-which-esp32-variants-are-best/
ESP8266
https://github.com/SmartArduino/SZDOITWiKi/wiki/ESP8266---ESP32
ESP32
DOIT Esp32 DevKit v1 ESP-WROOM32 Xtensa LX6
Arduino
Platform.io
921600 @80Mhz
https://docs.platformio.org/en/latest/boards/espressif32/esp32doit-devkit-v1.html
Buttons: EN (Reset) and BOOT (GPIO0)
https://maker.pro/arduino/tutorial/esp32-c3-super-mini-wifi-fix-3-methods-that-work
USB
https://community.platformio.org/t/esp32-s3-as-usb-host-with-tinyusb/52691/2
https://github.com/espressif/esp-usb/tree/master/host/class/hid/usb_host_hid
LINKS
https://www.esp8266.com/wiki/doku.php
https://github.com/esp8266/esp8266-wiki/wiki/Pin-definition
https://randomnerdtutorials.com/projects-esp32/
RTOS
FreeRTOS
https://github.com/FreeRTOS/FreeRTOS-Kernel
ZephyrOS
https://docs.platformio.org/en/latest/frameworks/zephyr.html#framework-zephyr
Thread
https://www.espressif.com/en/news/ESP32_H2
ESP32-H2 Risc V Thread, Zigbee, Bluetooth LE
ESP32-S3
https://openthread.io/guides/border-router/espressif-esp32
https://github.com/espressif/qemu
https://github.com/Ebiroll/qemu_esp32
ULP ESP32 Ultra Low Power Co-Processor
Photopainter
https://www.waveshare.com/wiki/ESP32-S3-PhotoPainter
[System.IO.Ports.SerialPort]::GetPortNames() | ForEach-Object { "Available: $_" }
QSPI
Python39\Scripts\esptool.exe read_flash --spi-connection HSPI 0 0x400000 flash_dump.bin
esptool.py v3.0 Found 1 serial ports Serial port COM3 Connecting.... Detecting chip type... ESP32 Chip is ESP32-D0WDQ6 (revision 1) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: 24:6f:28:24:22:2c Uploading stub... Running stub... Stub running... Configuring SPI flash mode... 4194304 (100 %) 4194304 (100 %) Read 4194304 bytes at 0x0 in 379.9 seconds (88.3 kbit/s)... Hard resetting via RTS pin...
https://github.com/espressif/esp-idf/tree/master/components/spi_flash
https://my-esp-idf.readthedocs.io/en/latest/api-reference/peripherals/spi_master.html https://github.com/espressif/arduino-esp32/blob/master/tools/sdk/include/esp32/rom/spi_flash.h
ESP32 chip have 4 SPI slave/master
SPI0, SPI1, HSPI and VSPI.
SPI0 is used as an SPI master to access Flash and ext-SRAM
SPI1 is connected to the same hardware lines as SPI0
HSPI and VSPI all have three chip select lines
use 40M clock
SPI Flash can use 2 lines or 4 lines mode. If you use 2 lines mode, you can save two pad SPIHD and SPIWP for gpio.
Common SPI command to configure Flash to QIO mode
miso - Also known as q, this is the input of the serial stream into the ESP32 mosi - Also known as d, this is the output of the serial stream from the ESP32 sclk - Clock signal. Each data bit is clocked out or in on the positive or negative edge of this signal
quadwp - Write Protect signal. Only used for 4-bit (qio/qout) transactions. quadhd - Hold signal. Only used for 4-bit (qio/qout) transactions.
In master mode SPID = MOSI = data out SPIQ = MISO = data in
https://drive.google.com/file/d/11-IH-38VJOXbFJ1ybB1i2Cvcl9n3pSTU/view
SPI.begin
SPI.setBitOrder
SPI.setClockDivider
SPI.setDataMode
SPI.transfer
spi_bus_initialize
https://github.com/espressif/esptool/wiki/SPI-Flash-Modes
https://github.com/espressif/esptool#read-spi-flash-id

Particle Xenon
https://docs.particle.io/xenon/
https://docs.particle.io/troubleshooting/led/xenon/
https://docs.particle.io/tutorials/learn-more/xenon-options/
https://github.com/particle-iot/app-notes/tree/master/AN008-Xenon-Nordic-SDK
https://community.particle.io/t/pairing-setup-of-xenon/45273
https://www.freecodecamp.org/news/meet-pyrinas-an-iot-development-kit-for-your-particle-xenon/
https://support.particle.io/hc/en-us/articles/360044252594-Using-a-Xenon-with-the-Nordic-SDK
https://medium.com/home-wireless/using-segger-studio-and-nordic-sdk-with-particle-xenon-91e34aeb632a
https://learn.sparkfun.com/tutorials/nrf52840-advanced-development-with-the-nrf5-sdk/all
https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52840
https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf52840_dk%2FUG%2Fnrf52840_DK%2Fintro.html
https://www.nordicsemi.com/DocLib/Content/User_Guides/gsg_keil/latest/UG/gsg/install_nrf5x_cltools
https://www.nordicsemi.com/Products/Development-tools/nRF-Util/Download
DFU mode: hold both buttons, release the right one (with usb at the top) and when it's green release the left button.
DFU is usb only, Normal mode has Serial
cd particle\bin ParticleCLI particle.exe serial list particle.exe serial identify particle.exe cloud claim e00fce68baa5180474617b8a particle.exe serial inspect particle.exe flash --usb firmware.bin
cd xenon nrfutil.exe settings display nrfutil.exe dfu nrfutil.exe zigbee
https://docs.particle.io/tutorials/developer-tools/cli/
ZCL
Zigbee stack is based on the ZBOSS stack v3.3 SEGGER J-Link ZCL specification (ver. 7)
- E_ZCL_UINT32 (0x23) – 4 bytes integer.
- E_ZCL_UINT16 (0x21) – 2 bytes integer.
- E_ZCL_UINT8 (0x20) / E_ZCL_ENUM8 (0x30) – 1 byte integer / 1 byte enum value.
- E_ZCL_BOOL (0x10) – 1 bit Boolean value (True/False).
- E_ZCL_ARRAY (0x48) – variable length byte array, using a 1-byte length field.
- 8 bytes – Extended address: Globally unique network address (similar to the Ethernet MAC address).
- 2 bytes – Network address: Short network address that is locally unique in the current ZigBee network.
- 2 bytes – PAN Id: Personal Area Network Identifier, the identifier of the local ZigBee network.
- 1 byte – LQI: Link Quality Indicator in the range of 0-255.
- 3 -bytes – Misc: Other flags, adding up to 16 bytes per record.
Zcl,Req,S=0x137a.11,6,0083000000,64", 35) = 35
Zcl,Req,S=0x137a.11,8,0084000000,64", 35) = 35
Zcl,Req,S=0x137a.11,768,0085000700004001000300040008000240,64", 61) = 61
Zcl,Req,S=0x3351.11,6,0086000000,64", 35) = 35
Zcl,Req,S=0xc193.11,6,0087000000,64", 35) = 35
Zcl,Req,S=0xe117.11,6,0088000000,64", 35) = 35
Zcl,Req,S=0xe117.11,8,0089000000,64", 35) = 35
Zcl,Req,S=0xc472.11,6,008a000000,64", 35) = 35
Zcl,Req,S=0xc472.11,8,008b000000,64", 35) = 35
Zcl,Req,S=0x137a.11,6,008c000000,64", 35) = 35
Zcl,Req,S=0x137a.11,8,008d000000,64", 35) = 35
Zcl,Req,S=0x137a.11,768,008e000700004001000300040008000240,64", 61) = 61
GCC
GCC: GCC ARM Embedded 7.2018 q2 update https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads
IAR: IAR Workbench 7.80.4 SES: SES 4.18 ARM: MDK-ARM version 5.25 nRF Command Line Tools 10.3.0 J-Link: 6.44e
https://github.com/nrfconnect/sdk-nrfxlib/tree/main/nrf_802154
nRF5_SDK_16.0.0_21de520.zip
Softdevice version: s140_nrf52_7.0.1_softdevice.hex
Description Start Address End Address Size (KB) Bootloader Settings 0x000FF000 0x000FFFFF 4 Master Boot Record Params 0x000FE000 0x000FEFFF 4 Bootloader 0x000F4000 0x000FDFFF 40 Application Code 0x00026000 0x000F3FFF 824 SoftDevice 0x00001000 0x00025FFF 148 Master Boot Record 0x00000000 0x00000FFF 4
nrfjprog -f NRF52 --program nrf52840_xxaa_pca10056.hex --chiperase nrfjprog -f NRF52 --reset
Micro:bit
qemu-system-arm -M microbit -device loader,file=test.hex
https://www.qemu.org/docs/master/system/arm/imx25-pdk.html
Bootrom –> SPL –> BL31 –> BL33(u-boot) –> Linux kernel
Makerdiary
https://wiki.makerdiary.com/nrf52840-mdk/
https://wiki.makerdiary.com/nrf52840-mdk-usb-dongle/
https://github.com/makerdiary/nrf52840-mdk-usb-dongle
TF-M M23 / M33
Information
Cortex-M4
RaspPi_OT_Border_Router_Demo_v4.1.0-1.alpha.img https://github.com/NordicSemiconductor/nRF-Sniffer-for-802.15.4/commit/dff6c8d7170a034b09ce2ece361af77c72be4f37
Supported SoftDevices for multiprotocol support: S140 v7.0.1
IEEE_CHANNEL_MASK located in files named main.c
https://infocenter.nordicsemi.com/topic/ug_nrf5x_cltools/UG/cltools/nrf5x_nrfjprogexe.html
Chips
HUE uses QCA9533, which is an ATH79 processor based on a MIPS 24kc, designed by Atheros, bought by Qualcomm
NXP i.MX8 Nano is an ARM A7 processor, designed by Freescale, bought by NXP
https://erik-engheim.medium.com/interesting-random-facts-about-arm-x86-risc-v-and-mips-7e670b249222
https://www.mips.com/products/architectures/mips32-2/
https://www.intel.com/content/www/us/en/developer/articles/technical/intel-sdm.html
https://research.checkpoint.com/2020/dont-be-silly-its-only-a-lightbulb/
IOT / LINUX / Thread Notes
Arduino
Espressif SDK
Platform.IO
Linux
DTD Tree
BSP BoardSupport Package
CPU Support
Linux needs depends on Memory Mapper
STM32 MCUBoot
NRF91 SBSU Boot
RTOS
FreeRTOS
Mynewt
Zephyr
IEEE 802
https://ieeexplore.ieee.org/browse/standards/get-program/page/series?id=68
IEEE 802(R): Overview and Architecture IEEE 802.1: Bridging and Management IEEE 802.3: Ethernet IEEE 802.11: Wireless LANs IEEE 802.15: Wireless PANs IEEE 802.16: Broadband Wireless MANs IEEE 802.19: TV White Space Coexistence Methods IEEE 802.21: Media Independent Handover Services IEEE 802.22: Wireless Regional Area Networks
802.1X
802.1AR
802.3 Ethernet
802.11 WIFI 802.15.4
IEEE 802.15.4
ISM Band, Wifi overlapping channels, Bluetooth 80x1Mhz, BLE 40x2Mhz
Bluetooth Classic Bluetooth BLE Bluetooth Mesh Zigbee ZWave (not 2.4ghz)
Zigbee
https://zigbeealliance.org/wp-content/uploads/2019/11/docs-05-3474-21-0csg-zigbee-specification.pdf
Commisioning LightTouch