Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

`serve_core.py: error: too few arguments` when debug_coredump esp32

Command line make -C ~/.mos/modules-latest/mongoose-os-latest/fw/platforms/esp32 debug_coredump CONSOLE_LOG=$(ls /var/mos/mini32-js-2.log) ELF_FILE=$(ls $PWD/build/objs/*.elf) BIN_FILE=$(ls $PWD/build/objs/*.bin)

make: Entering directory '/home/liviu/.mos/modules-latest/mongoose-os-latest/fw/platforms/esp32'
GNU gdb (crosstool-NG crosstool-ng-1.22.0-75-gbaf03c2) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-build_pc-linux-gnu --target=xtensa-esp32-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /app.elf...usage: serve_core.py [-h] [--port PORT] [--rom ROM] [--rom_addr ROM_ADDR]
                     [--xtensa_addr_fixup XTENSA_ADDR_FIXUP]
                     elf log
serve_core.py: error: too few arguments
done.
127.0.0.1:1234: Connection timed out.
add symbol table from file "/mongoose-os/common/platforms/esp32/rom/rom.elf" at
        .text_addr = 0x40000000
Reading symbols from /mongoose-os/common/platforms/esp32/rom/rom.elf...(no debugging symbols found)...done.
(gdb)

It looks like there is a missing value for --xtensa_addr_fixup in https://github.com/cesanta/mongoose-os/blob/fdae247ff6aa8e340e6eb5d45fe604cc6ca3541a/fw/platforms/esp32/Makefile#L13
I've modified the Makefile like this to make it work

EXTRA_SERVE_CORE_ARGS = --rom=$(DOCKER_MGOS_PATH)/common/platforms/$(APP_PLATFORM)/rom/rom.bin --rom_addr=0x40000000 \
                        --xtensa_addr_fixup 0

--rom=$(DOCKER_MGOS_PATH)/common/platforms/$(APP_PLATFORM)/rom/rom.bin was --rom=$(DOCKER_MGOS_PATH)/common/platforms/esp8266/rom/rom.bin

Comments

Sign In or Register to comment.