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.
Cannot debug SDK2.0 from IAR
Posted: Mon, 2018-10-01 07:45
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 .