Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 67759c6439 | |||
| b88ba38dcd |
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,7 +1,6 @@
|
||||
venv/
|
||||
venv_win/
|
||||
venv_linux/
|
||||
venv*/
|
||||
build/
|
||||
build_win/
|
||||
build_linux/
|
||||
__pycache__/
|
||||
*.xml
|
||||
@ -15,3 +15,7 @@
|
||||

|
||||
|
||||
Для ускорения процесса прошивки скрипт позволяет при помощи map-файла вырезать из отправляемого hex-файла команды записи данных в неиспользуемую область памяти перед некэшируемой областью. Полный набор опций доступен в справке при запуске скрипта с опцией –-help.
|
||||
|
||||
# необходимые для сборки пакеты
|
||||
|
||||
ubuntu18.04: zlib1g-dev patchelf scons
|
||||
1
build_linux.sh
Normal file → Executable file
1
build_linux.sh
Normal file → Executable file
@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
rm -rf build_linux
|
||||
python -m nuitka ./elbear_uploader.py \
|
||||
--output-dir=build_linux \
|
||||
--output-filename="elbear_uploader" \
|
||||
|
||||
@ -77,7 +77,7 @@ DEFAULT_BAUDRATE = 230400
|
||||
|
||||
def createParser():
|
||||
parser = argparse.ArgumentParser(
|
||||
prog='bootloader.py',
|
||||
prog='elbear_uploader.py',
|
||||
description='''Script for writing to external flash on SPIFI interface'''
|
||||
)
|
||||
|
||||
@ -235,7 +235,7 @@ if namespace.hexpath:
|
||||
# printProgressBar(progress, 100, prefix = 'Upload:', suffix = 'Complete', length = 50)
|
||||
if time.time() > timestart + resolution:
|
||||
timestart += resolution
|
||||
print(f'Uploaded {int(progress)}%')
|
||||
print(f'Uploaded {int(progress)}%', flush=True)
|
||||
if progress == 100:
|
||||
all_showed = True
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user