forked from espressif/ESP8266_MP3_DECODER
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update version to 0.9.9, have a try.
- Loading branch information
Espressif Systems
committed
Mar 31, 2015
1 parent
97a5314
commit ec75c85
Showing
137 changed files
with
2,231 additions
and
55,413 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,121 @@ | ||
@echo off | ||
set BACKPATH=%PATH% | ||
set PATH=%BACKPATH%;%CD%\..\tools | ||
@echo on | ||
|
||
del /F ..\bin\eagle.app.v6.flash.bin ..\bin\eagle.app.v6.irom0text.bin ..\bin\eagle.app.v6.dump ..\bin\eagle.app.v6.S | ||
echo Please follow below steps(1-5) to generate specific bin(s): | ||
echo STEP 1: choose boot version(0=boot_v1.1, 1=boot_v1.2+, 2=none) | ||
set input=default | ||
set /p input=enter(0/1/2, default 2): | ||
|
||
cd .output\eagle\debug\image | ||
if %input% equ 0 ( | ||
set boot=old | ||
) else ( | ||
if %input% equ 1 ( | ||
set boot=new | ||
) else ( | ||
set boot=none | ||
) | ||
) | ||
|
||
xt-objdump -x -s eagle.app.v6.out > ..\..\..\..\..\bin\eagle.app.v6.dump | ||
xt-objdump -S eagle.app.v6.out > ..\..\..\..\..\bin\eagle.app.v6.S | ||
echo boot mode: %boot% | ||
echo. | ||
|
||
xt-objcopy --only-section .text -O binary eagle.app.v6.out eagle.app.v6.text.bin | ||
xt-objcopy --only-section .data -O binary eagle.app.v6.out eagle.app.v6.data.bin | ||
xt-objcopy --only-section .rodata -O binary eagle.app.v6.out eagle.app.v6.rodata.bin | ||
xt-objcopy --only-section .irom0.text -O binary eagle.app.v6.out eagle.app.v6.irom0text.bin | ||
echo STEP 2: choose bin generate(0=eagle.flash.bin+eagle.irom0text.bin, 1=user1.bin, 2=user2.bin) | ||
set input=default | ||
set /p input=enter (0/1/2, default 0): | ||
|
||
gen_appbin.py eagle.app.v6.out v6 | ||
if %input% equ 1 ( | ||
if %boot% equ none ( | ||
set app=0 | ||
echo choose no boot before | ||
echo generate bin: eagle.flash.bin+eagle.irom0text.bin | ||
) else ( | ||
set app=1 | ||
echo generate bin: user1.bin | ||
) | ||
) else ( | ||
if %input% equ 2 ( | ||
if %boot% equ none ( | ||
set app=0 | ||
echo choose no boot before | ||
echo generate bin: eagle.flash.bin+eagle.irom0text.bin | ||
) else ( | ||
set app=2 | ||
echo generate bin: user2.bin | ||
) | ||
) else ( | ||
if %boot% neq none ( | ||
set boot=none | ||
echo ignore boot | ||
) | ||
set app=0 | ||
echo generate bin: eagle.flash.bin+eagle.irom0text.bin | ||
)) | ||
|
||
xcopy /y eagle.app.v6.irom0text.bin ..\..\..\..\..\bin\ | ||
xcopy /y eagle.app.v6.flash.bin ..\..\..\..\..\bin\ | ||
echo. | ||
|
||
cd ..\..\..\..\ | ||
echo STEP 3: choose spi speed(0=20MHz, 1=26.7MHz, 2=40MHz, 3=80MHz) | ||
set input=default | ||
set /p input=enter (0/1/2/3, default 2): | ||
|
||
if %input% equ 0 ( | ||
set spi_speed=20 | ||
) else ( | ||
if %input% equ 1 ( | ||
set spi_speed=26.7 | ||
) else ( | ||
if %input% equ 3 ( | ||
set spi_speed=80 | ||
) else ( | ||
set spi_speed=40 | ||
))) | ||
|
||
echo spi speed: %spi_speed% MHz | ||
echo. | ||
|
||
echo STEP 4: choose spi mode(0=QIO, 1=QOUT, 2=DIO, 3=DOUT) | ||
set input=default | ||
set /p input=enter (0/1/2/3, default 0): | ||
|
||
if %input% equ 1 ( | ||
set spi_mode=QOUT | ||
) else ( | ||
if %input% equ 2 ( | ||
set spi_mode=DIO | ||
) else ( | ||
if %input% equ 3 ( | ||
set spi_mode=DOUT | ||
) else ( | ||
set spi_mode=QIO | ||
))) | ||
|
||
echo spi mode: %spi_mode% | ||
echo. | ||
|
||
echo STEP 5: choose spi size(0=256KB, 1=512KB, 2=1024KB, 3=2048KB, 4=4096KB) | ||
set input=default | ||
set /p input=enter (0/1/2/3/4, default 1): | ||
|
||
if %input% equ 0 ( | ||
set spi_size=256 | ||
) else ( | ||
if %input% equ 2 ( | ||
set spi_size=1024 | ||
) else ( | ||
if %input% equ 3 ( | ||
set spi_size=2048 | ||
) else ( | ||
if %input% equ 4 ( | ||
set spi_size=4096 | ||
) else ( | ||
set spi_size=512 | ||
)))) | ||
|
||
echo spi size: %spi_size% KB | ||
|
||
touch user/user_main.c | ||
|
||
echo. | ||
echo start... | ||
echo. | ||
|
||
make BOOT=%boot% APP=%app% SPI_SPEED=%spi_speed% SPI_MODE=%spi_mode% SPI_SIZE=%spi_size% | ||
|
||
@echo off | ||
set PATH=%BACKPATH% | ||
@echo on |
Oops, something went wrong.