This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find /. -name arm-none-eabi-gdb 2>/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Can't create a Windows 10 recovery drive. Some required files are missing. | |
:: | |
:: https://answers.microsoft.com/en-us/windows/forum/windows_10-update/cant-create-a-windows-10-recovery-drive-some/6dd29184-2ddd-48f2-803a-a788cf9345b0 | |
:: | |
:: You may need to change "harddisk0" to "harddiskX" where X is the number of your "C" drive and "partition1" to partitionX where X | |
:: is the partition number to conform with your system setup. | |
:: To check go to Control Panel/Administrative Tools/Computer Management/Storage/Diskmanagment. The disk partitions are numbered from | |
:: the left of the screen starting with number 1. | |
:: | |
:: admin prompt in DOS: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fatal: unable to connect to git.qemu-project.org: | |
git.qemu-project.org[0: (my ip address)]: errno=Connection refused | |
firewall may be blocking outbound git:// protocol | |
override with a variety of scopes: | |
git config --global url."https://".insteadOf git:// | |
git config --global url.https://github.com/.insteadOf git://github.com/ | |
git config --global url.https://git.qemu.org/git/.insteadOf git://git.qemu-project.org/ | |
git config --global url.https://anongit.freedesktop.org/git/.insteadOf git://anongit.freedesktop.org/ |