Forums - Problem with environment configuration

2 posts / 0 new
Last post
Problem with environment configuration
ArneTM
Join Date: 28 Feb 19
Posts: 2
Posted: Sun, 2019-06-16 12:35

I am trying to set up my development environment. While  following the steps from the User Guide I faced a problem. When I am executing the flash_openocd.bat file I get the following output:

Quote:

F:\QCA4020\Project\SDK\QCA4020.OR.3.0_00011.1\target\quartz\demo\Helloworld_demo\build\gcc\output\firmware_table.bin could not be found
Open On-Chip Debugger 0.10.0 (2018-07-28) [https://github.com/sysprogs/openocd]
Licensed under GNU GPL v2
For bug reports, read
F:\QCA4020\Project\SDK\QCA4020.OR.3.0_00011.1\target\quartz\demo\Helloworld_demo\build\gcc\output\generated_partition_table.xml could not be found
F:\QCA4020\Project\SDK\QCA4020.OR.3.0_00011.1\target\quartz\demo\Helloworld_demo\build\gcc\output\generated_fwd_table.xml could not be found
adapter speed: 5000 kHz
embedded:startup.tcl:21: Error: target requires -dap parameter instead of -chain-position!
in procedure 'script'
at file "embedded:startup.tcl", line 60
in procedure 'target' called at file "qca402x_openocd.cfg", line 81
in procedure 'ocd_bouncer'
at file "embedded:startup.tcl", line 21
[2019-06-16 21:03:02,480] INFO: Checking for files to add to the image for Firmware Descriptor Table 0 File:gen_fwd_table.py:673 Function:gen_xml_program
[2019-06-16 21:03:02,483] INFO: Done Generating XML file to program. File:gen_fwd_table.py:711 Function:gen_xml_program
Starting GDB Server....
[2019-06-16 21:03:02,540] INFO: flash_through_gdb.py version 1.0.5 File:flash_through_gdb.py:596 Function:main
[2019-06-16 21:03:02,542] ERROR: Path None does not point to a file File:flash_through_gdb.py:483 Function:gdb_check_availability
[2019-06-16 21:03:02,542] CRITICAL: The given GDB path is not valid File:flash_through_gdb.py:603 Function:main

 

 

Flash Operation Completed Successfully...

 
 

Can someone tell me what I have done wrong ? 

Thanks

 
  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Wed, 2019-06-19 16:47

The instructions mention in qca402x_openocd.cfg are verified for openocd version (2017-06-09).

Since you are using the latest version, the configuration file is not valide. Kindly modify  openocd configuration file (qca402x_openocd.cfg ) as below:

Line #81:  // comment the chain-position and create dap param to attach with target.
***************************************

#target create $_TARGETNAME cortex_m -chain-position $_TARGETNAME
 
dap create $_CHIPNAME.dap -chain-position $_TARGETNAME
target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap

****************************************


After the above changes, you should be able to flash successfully using flash_openocd.bat

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.