mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
apps/nxdiag: Add dignostic info without esptool support for Espressif devices
This commit is contained in:
parent
f2e5d5c13f
commit
95a8c43b73
4 changed files with 55 additions and 2 deletions
|
|
@ -736,9 +736,14 @@ def generate_header(args):
|
|||
)
|
||||
build_output += "MAC address: {}\n\n".format(info["ESPRESSIF_MAC_ADDR"])
|
||||
|
||||
elif args.espressif_chip_runtime:
|
||||
output += "#define ESPRESSIF_INFO_SIZE 384\n"
|
||||
output += 'static char ESPRESSIF_INFO[ESPRESSIF_TOOLCHAIN_ARRAY_SIZE] =\n{\n 0\n};\n\n'
|
||||
|
||||
if args.espressif_verbose:
|
||||
espressif_verbose(info, build_output)
|
||||
|
||||
|
||||
output += "#endif /* __SYSTEM_INFO_H */\n"
|
||||
|
||||
return output
|
||||
|
|
@ -775,6 +780,10 @@ if __name__ == "__main__":
|
|||
--espressif_chip:
|
||||
Get Espressif specific information about chip.
|
||||
Requires device connection during build.
|
||||
--espressif_chip_runtime:
|
||||
Get Espressif specific information about chip
|
||||
on runtime.
|
||||
Requires device connection during build.
|
||||
--espressif_verbose:
|
||||
Enable printing Espressif-specific information about
|
||||
chip during build.
|
||||
|
|
@ -841,6 +850,12 @@ if __name__ == "__main__":
|
|||
help="Get Espressif specific information about chip. Requires device connection during build.",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--espressif_chip_runtime",
|
||||
action="store_true",
|
||||
help="Get Espressif specific information about chip on runtime. Requires device connection during build.",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--espressif_verbose",
|
||||
action="store_true",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue