View icestorm toolchain
# don't just copy & paste, there's a prompt for the first sudo command
sudo apt-get update
sudo apt-get install build-essential clang bison flex libreadline-dev \
gawk tcl-dev libffi-dev git mercurial graphviz \
xdot pkg-config python python3 libftdi-dev
# create workspace
mkdir -p ~/workspace
cd ~/workspace/
View add_cmd_prompt.reg
Windows Registry Editor Version 5.00
; see https://superuser.com/questions/1201988/how-do-i-change-open-with-powershell-to-open-with-command-prompt-when-shift
; Command Prompt
[HKEY_CLASSES_ROOT\Directory\shell\01MenuCmd]
"MUIVerb"="Command Prompts"
"Icon"="cmd.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd"
View Install_ESP32.bat
:: Arduino IDE 1.8.5
:: see https://learn.sparkfun.com/tutorials/esp32-thing-hookup-guide#installing-the-esp32-arduino-core
:: run as administrator
cd "C:\Program Files (x86)\Arduino\hardware"
mkdir espressif
cd espressif
git clone https://github.com/espressif/arduino-esp32.git esp32
:: run get.exe
View dos_timestamp.bat
:: set the FileStamp variable to the current date: YYMMDD_HHMMSS
:: the simplest method, to use existing TIME ad DATE variables:
:: date = Thu 09/17/2015
:: time = 11:13:15.47
:: 012345678901234567890
::
:: There is no leading zero for single digit hours (e.g. 9:00am), so we need to manually include the zero
:: here |
if "%TIME:~0,1%" == " " set FileStamp=%DATE:~12,2%%DATE:~4,2%%DATE:~7,2%_0%TIME:~1,1%%TIME:~3,2%%TIME:~6,2%
View esp32_promisc.c
// Espressif ESP32 promiscuous mode and packet injection experiments
// by brainstorm at nopcode org
#include "freertos/FreeRTOS.h"
#include "esp_wifi.h"
#include "esp_wifi_internal.h"
#include "lwip/err.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_event_loop.h"
View gist:17b0800e9f643d7f1bb9414d311d0b5e
Sign in to Blogger.
Choose the blog to update.
In the left menu, click Theme.
Under “Live on blog," click Customize.
In the left menu, click Advancedand thenAdd CSS.
Add your code.
On the top right, click Apply to blog.
View esp32-idf-make
#!/bin/bash
export PATH=$PATH:$HOME/esp/xtensa-esp32-elf/bin
export IDF_PATH=~/esp/esp-idf
sudo chmod 777 /dev/ttyUSB0
cd ~/esp/hello_world
make flash
View esp32-idf-gdb.sh
#!/bin/bash
export PATH=$PATH:$HOME/esp/xtensa-esp32-elf/bin
export IDF_PATH=~/esp/esp-idf
find /. -name xtensa-esp32-elf-gdb 2>/dev/null
cd ~/esp/hello_world/build
#xtensa-esp32-elf-gdb -tui -x hello_world.gdb hello-world.elf
xtensa-esp32-elf-gdb  hello-world.elf
# once in gdb enter target remote localhost:3333
# continue
View esp32-idf-openocd.sh
#!/bin/bash
# assumes git clone started in ~\workspace for openocd-esp32
export PATH=$PATH:$HOME/esp/xtensa-esp32-elf/bin
export IDF_PATH=~/esp/esp-idf
cd  ~/workspace/openocd-esp32/tcl
sudo openocd -f interface/ftdi/olimex-arm-usb-ocd-h-1MHz.cfg -c "transport select jtag"  -f target/esp32.cfg
#sudo openocd -f interface/jlink.cfg -f target/esp32.cfg
# or
View find-arm-gdb.sh
#!/bin/bash
find /. -name arm-none-eabi-gdb 2>/dev/null