An open API service indexing awesome lists of open source software.

https://github.com/redchenjs/bluetooth_flash_programmer_esp32

Bluetooth Flash Programmer | 藍牙Flash編程器 | 基於ESP32的藍牙Flash編程器
https://github.com/redchenjs/bluetooth_flash_programmer_esp32

bluetooth esp32 flash programmer rfcomm sfud spp

Last synced: 10 months ago
JSON representation

Bluetooth Flash Programmer | 藍牙Flash編程器 | 基於ESP32的藍牙Flash編程器

Awesome Lists containing this project

README

          

Bluetooth Flash Programmer
==========================

Bluetooth Flash Programmer based on ESP32 chip.

## Pinmap

| FLASH | CS | SCLK | MOSI | MISO |
| :---- | -: | ---: | ---: | ---: |
| ESP32 | 15 | 14 | 13 | 12 |

## Commands

* `MTD+ERASE:ALL!`: Erase Full Flash Chip
* `MTD+ERASE:0x%x+0x%x`: Erase Flash: Addr Length
* `MTD+WRITE:0x%x+0x%x`: Write Flash: Addr Length
* `MTD+READ:0x%x+0x%x`: Read Flash: Addr Length
* `MTD+INFO?`: Flash Info

## Preparing

### Obtain the Source

```
git clone --recursive https://github.com/redchenjs/bluetooth_flash_programmer_esp32.git
```

### Update an existing repository

```
git pull
git submodule update --init --recursive
```

### Setup the Tools

```
./esp-idf/install.sh
```

## Building

### Setup the environment variables

```
export IDF_PATH=$PWD/esp-idf
source ./esp-idf/export.sh
```

### Configure

```
idf.py menuconfig
```

* All project configurations are under the `Bluetooth Flash Programmer` menu.

### Flash & Monitor

```
idf.py flash monitor
```