When I try to flash the board I get the following console output. I think the problem has something to do with the missing files in the first few lines, but I don't now how to fix this.
F:\QCA4020\Project\SDK\QCA4020.OR.3.0_00011.1\target\quartz\demo\Helloworld_demo\build\gcc>flash_openocd.batF:\QCA4020\Project\SDK\QCA4020.OR.3.0_00011.1\target\quartz\demo\Helloworld_demo\build\gcc\output\firmware_table.bin could not be foundF:\QCA4020\Project\SDK\QCA4020.OR.3.0_00011.1\target\quartz\demo\Helloworld_demo\build\gcc\output\generated_partition_table.xml could not be foundF:\QCA4020\Project\SDK\QCA4020.OR.3.0_00011.1\target\quartz\demo\Helloworld_demo\build\gcc\output\generated_fwd_table.xml could not be foundOpen On-Chip Debugger 0.10.0 (2018-07-28) [https://github.com/sysprogs/openocd]Licensed under GNU GPL v2For bug reports, readadapter speed: 5000 kHzInfo : clock speed 5000 kHzInfo : JTAG tap: QM4.cpu tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x4)Info : JTAG tap: auto0.tap tap/device found: 0x300160e1 (mfg: 0x070 (Qualcomm), part: 0x0016, ver: 0x3)Warn : AUTO auto0.tap - use "jtag newtap auto0 tap -irlen 11 -expected-id 0x300160e1"Info : QM4.cpu: hardware has 6 breakpoints, 4 watchpoints[2019-07-03 19:22:11,163] INFO: Checking for files to add to the image for Firmware Descriptor Table 0 File:gen_fwd_table.py:673 Function:gen_xml_programInfo : Listening on port 3333 for g[d2019-07-03 19:22:11,165] INFO: Done Generating XML file to program. File:gen_fwd_table.py:711 Function:gen_xml_programb connectionsInfo : JTAG tap: QM4.cpu tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba0Starting GDB Server....0, ver: 0x4)Info : JTAG tap: auto0.tap tap/device found: 0x300160e1 (mfg: 0x070 (Qualcomm), part: 0x0016, ver: 0x3)Warn : Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support.[2019-07-03 19:22:11,233] INFO: flash_through_gdb.py version 1.0.5 File:flash_through_gdb.py:596 Function:main[2019-07-03 19:22:11,233] ERROR: Path None does not point to a file File:flash_through_gdb.py:483 Function:gdb_check_availability[2019-07-03 19:22:11,234] CRITICAL: The given GDB path is not valid File:flash_through_gdb.py:603 Function:mainFlash Operation Completed Successfully...target halted due to debug-request, current mode: ThreadxPSR: 0x01000000 pc: 0x000001c0 msp: 0x10000154TargetName TypeSUCCESS: The process "openocd.exe" with PID 17776 has been terminated.
While flashing through openocd we will check for "firmware_table.bin", "generated_partition_table.xml" and "generated_fwd_table.xml" under output directory.
If there are no files available we will try to generate during the flashing procedure:
However from the provided logs, the issue is due to invalid path for GDB :
kindly check if GDB is installed and PATH is added to environment variable. (arm-none-eabi-gdb --version)
You should observer below logs if GDB is available: