-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.bat
47 lines (34 loc) · 1.21 KB
/
run.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@ECHO off
Echo this script build firmware and build certs.bin from NVS.CSV and flash all bin files
SET COM=COM17
SET FWNAME=gatt_server_service_table_demo.bin
ECHO -------------------------------
ECHO -- Building regular firmware --
ECHO -------------------------------
idf.py build
ECHO ---------------------------------------------
ECHO -- Building Certitificates to store in NVS --
ECHO ---------------------------------------------
cd .\build\
python C:\Espressif\frameworks\esp-idf-v5.0.1\components\nvs_flash\nvs_partition_generator\nvs_partition_gen.py generate ^
"C:\Espressif\frameworks\esp-idf-v5.0.1\workspace2\SIM800_ESP\nvs.csv" certs.bin 16384
ECHO --------------------
ECHO -- Flashing Start --
ECHO --------------------
python C:\Espressif\frameworks\esp-idf-v5.0.1\components\esptool_py\esptool\esptool.py ^
-p %COM% ^
-b 921600 ^
--before default_reset ^
--after hard_reset ^
--chip esp32 write_flash ^
--flash_mode dio ^
--flash_freq 40m ^
--flash_size detect ^
0x10000 %FWNAME% ^
0x1000 bootloader\bootloader.bin ^
0x8000 partition_table\partition-table.bin ^
0x9000 certs.bin
cd..
ECHO -----------------------
ECHO -- Flashing Finished --
ECHO -----------------------