Copyright ©

Mongoose OS Forum


` 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 <>
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:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /app.elf...usage: [-h] [--port PORT] [--rom ROM] [--rom_addr ROM_ADDR]
                     [--xtensa_addr_fixup XTENSA_ADDR_FIXUP]
                     elf log error: too few arguments
done. 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.

It looks like there is a missing value for --xtensa_addr_fixup in
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


Sign In or Register to comment.