Forums - Cannot debug SDK2.0 from IAR

2 posts / 0 new
Last post
Cannot debug SDK2.0 from IAR
tfields
Join Date: 9 Mar 17
Posts: 1
Posted: Mon, 2018-10-01 07:45

Hi.  We are having trouble downloading and debugging the SDK 2.0 QCLI_demo from IAR Workbench via J-link.  In IAR, the project is called Quartz_4020_v2-FreeRTOS.  We followed the steps in the QCA402x Programmers Guide.  We can compile and build the project successfully.  At Step 3.1.7, we are trying to flash the image via J-link.  The error message is "Failed to get CPU status after 4 retires".  When checking the project options via IAR, we noticed the Target tab only has the Core as "Cortex-M4".  Device is set to "None".  When choosing a Device, we do not see Qualcomm as a manufacturer and cannot locate the QCA4020.  We suspect this as the issue.  We, also, tried running "flash.bat".  This also opens a GUI where the QCA4020 needs to be selected.  However, we cannot locate the board in the options.  The QCA4020 dev board kit we are using contains:  30-YA560-100 A and 10-YA528-13 Rev A.  Any help would be appreciated.  Thank you.

  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Wed, 2018-10-03 14:55

Kindly select the below option as Target Device Settings for GDB server when flashing via flash.bat script.
Manufacurer:  Unspecifed
Device:              Cortex-M4
Core:                  Cortex-M4
NumCores:      1

In case of "Downlad and Debug Option" via IAR

>For error message "Failed to get CPU status after 4 retries" make sure you have set the J-Link/J-Trace speed to "Auto", it will resolve the issue.
>Under Tools->Options->Stack uncheck the "Stack pointer(s) not valid until program reaches" option .

 

  • 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.