Skip to content

Commit 934d239

Browse files
committed
Updated esptool.py
- Add optional '--entry-symbol' option to override entry point symbol name Patch espressif/esptool@8ff0ee6
1 parent a2aef1f commit 934d239

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Espressif/utils/esptool.exe

512 Bytes
Binary file not shown.

Espressif/utils/esptool.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,8 @@ def arg_auto_int(x):
498498
choices = ['qio', 'qout', 'dio', 'dout'], default = 'qio')
499499
parser_write_flash.add_argument('--flash_size', '-fs', help = 'SPI Flash size in Mbit',
500500
choices = ['4m', '2m', '8m', '16m', '32m', '16m-c1', '32m-c1', '32m-c2'], default = '4m')
501+
parser_elf2image.add_argument('--entry-symbol', '-es', help = 'Entry point symbol name (default \'call_user_start\')',
502+
default = 'call_user_start')
501503

502504
parser_run = subparsers.add_parser(
503505
'run',
@@ -657,7 +659,7 @@ def arg_auto_int(x):
657659
args.output = args.input + '-'
658660
e = ELFFile(args.input)
659661
image = ESPFirmwareImage()
660-
image.entrypoint = e.get_symbol_addr("call_user_start")
662+
image.entrypoint = e.get_symbol_addr(args.entry_symbol)
661663
for section, start in ((".text", "_text_start"), (".data", "_data_start"), (".rodata", "_rodata_start")):
662664
data = e.load_section(section)
663665
image.add_segment(e.get_symbol_addr(start), data)

Espressif/utils/library.zip

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)