Forums - Debugging Helloworld_demo not hitting the breakpoint for QCA4020

3 posts / 0 new
Last post
Debugging Helloworld_demo not hitting the breakpoint for QCA4020
akshay.b
Join Date: 2 Aug 19
Posts: 62
Posted: Mon, 2019-09-02 04:01

Hello,

While running Helloworld_demo in debug mode on windows, the "Hello World" message is printing on terminal.

But if i place a break point at line PAL_CONSOLE_WRITE_STRING_LITERAL(PAL_OUTPUT_END_OF_LINE_STRING); or any other line the debugger does not stop at the break point while the "Hello World" message continue to print on terminal every scecond.

Please suggest me a solution for this.

Refering a forum link and section 3.7.2.2 Debugging through GDB of document "QCA402x (CDB2x) Development Kit User Guide". i am getting following output on command prompt:

GNU gdb (GNU Tools for ARM Embedded Processors) 7.12.0.20161204-git

Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word".
warning: No executable has been specified and target does not support
determining executable automatically.  Try using the "file" command.
0x000001c0 in ?? ()
JTAG tap: QM4.cpu tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x4)
JTAG tap: auto0.tap tap/device found: 0x300160e1 (mfg: 0x070 (Qualcomm), part: 0x0016, ver: 0x3)
Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
target halted due to debug-request, current mode: Thread
xPSR: 0x81000000 pc: 0x00007106 msp: 0x10032ba0
invalid command name "speed"
invalid command name "endian"
invalid command name "jtagconf"
Breakpoint 1 at 0x100a1052: file /local/mnt/workspace/CRMBuilds/CNSS_W.QZ.3.0-00080-QZHW-2_20181118_181224/b/ioesw_proc/core/boot/build/ioe_ram_ipt/cortex-m4/ARNTRI/sbl//sbl.o.i, line 57.
add symbol table from file "../../../../../bin/cortex-m4/IOE_ROM_IPT_IMG_ARNNRI_patched_syms.elf" at
        .text_addr = 0x10000
warning: section .text not found in E:\eclipse-workspace\qca4020-or-3-0_qca_oem_sdk-cdb.git\target\bin\cortex-m4\IOE_ROM_IPT_IMG_ARNNRI_patched_syms.elf
warning: Loadable section "sockcall__i.t_errno" outside of ELF segments
warning: Loadable section "sockcall__i.t_getname" outside of ELF segments
warning: Loadable section "sockcall__i.t_getpeername" outside of ELF segments
warning: Loadable section "sockcall__i.t_getsockname" outside of ELF segments
warning: Loadable section "sockcall__i.t_getsockopt" outside of ELF segments
warning: Loadable section "sockcall__i.t_listen" outside of ELF segments
warning: Loadable section "sockcall__i.t_recv" outside of ELF segments
warning: Loadable section "sockcall__i.t_recvfrom" outside of ELF segments
warning: Loadable section "soselect__i.t_select" outside of ELF segments
warning: Loadable section "sockcall__i.t_send" outside of ELF segments
warning: Loadable section "sockcall__i.t_sendto" outside of ELF segments
warning: Loadable section "sockcall__i.t_setsockopt" outside of ELF segments
warning: Loadable section "sockcall__i.t_shutdown" outside of ELF segments
warning: Loadable section "sockcall__i.t_socket" outside of ELF segments
warning: Loadable section "sockcall__i.t_socketclose" outside of ELF segments
warning: Loadable section "tcp6__i.tcp6_rcv" outside of ELF segments
warning: Loadable section "tcp6__i.tcp6_send" outside of ELF segments
warning: Loadable section "tcp_usr__i.tcp_attach" outside of ELF segments
warning: Loadable section "tcp_timr__i.tcp_canceltimers" outside of ELF segments
warning: Loadable section "tcpcksum__i.tcp_cksum" outside of ELF segments
warning: Loadable section "tcp_subr__i.tcp_close" outside of ELF segments
warning: Loadable section "tcp_zio__i.tcp_data_upcall" outside of ELF segments
warning: Loadable section "tcp_usr__i.tcp_disconnect" outside of ELF segments
warning: Loadable section "tcp_in__i.tcp_dooptions" outside of ELF segments
warning: Loadable section "tcp_subr__i.tcp_drop" outside of ELF segments
warning: Loadable section "tcp_timr__i.tcp_fasttimo" outside of ELF segments
warning: Loadable section "tcp_subr__i.tcp_findbuf" outside of ELF segments
warning: Loadable section "tcp_subr__i.tcp_freeassmq" outside of ELF segments
warning: Loadable section "tcp_subr__i.tcp_getseq" outside of ELF segments
warning: Loadable section "tcp_subr__i.tcp_init" outside of ELF segments
warning: Loadable section "tcp_in__i.tcp_input" outside of ELF segments
warning: Loadable section "tcp_in__i.tcp_mss" outside of ELF segments
warning: Loadable section "tcp_subr__i.tcp_newtcpcb" outside of ELF segments
warning: Loadable section "soselect__i.tcp_notify" outside of ELF segments
warning: Loadable section "tcp_out__i.tcp_output" outside of ELF segments
warning: Loadable section "tcp_zio__i.tcp_pktalloc" outside of ELF segments
warning: Loadable section "tcp_zio__i.tcp_pktfree" outside of ELF segments
warning: Loadable section "tcp_in__i.tcp_pulloutofband" outside of ELF segments
warning: Loadable section "tcp_subr__i.tcp_putseq" outside of ELF segments
warning: Loadable section "tcp_subr__i.tcp_quench" outside of ELF segments
warning: Loadable section "tcp_in__i.tcp_reass" outside of ELF segments
warning: Loadable section "tcp_subr__i.tcp_respond" outside of ELF segments
warning: Loadable section "tcp_out__i.tcp_setpersist" outside of ELF segments
warning: Loadable section "osporttk__i.tcp_sleep" outside of ELF segments
warning: Loadable section "tcp_timr__i.tcp_slowtimo" outside of ELF segments
warning: Loadable section "tcp_subr__i.tcp_template" outside of ELF segments
warning: Loadable section "nptcp__i.tcp_tick" outside of ELF segments
warning: Loadable section "tcp_timr__i.tcp_timers" outside of ELF segments
warning: Loadable section "tcp_usr__i.tcp_usrclosed" outside of ELF segments
warning: Loadable section "tcp_usr__i.tcp_usrreq" outside of ELF segments
warning: Loadable section "osporttk__i.tcp_wakeup" outside of ELF segments
warning: Loadable section "tcp_in__i.tcp_xmit_timer" outside of ELF segments
warning: Loadable section "tcp_zio__i.tcp_xout" outside of ELF segments
warning: Loadable section "tcpport__i.tcpinit" outside of ELF segments
warning: Loadable section "ssl_cert__i.timeCompare" outside of ELF segments
warning: Loadable section "osporttk__i.tk_del" outside of ELF segments
warning: Loadable section "osporttk__i.tk_event_clear" outside of ELF segments
warning: Loadable section "osporttk__i.tk_event_create" outside of ELF segments
warning: Loadable section "osporttk__i.tk_event_delete" outside of ELF segments
warning: Loadable section "osporttk__i.tk_event_set" outside of ELF segments
warning: Loadable section "osporttk__i.tk_event_wait" outside of ELF segments
warning: Loadable section "osporttk__i.tk_get_ticks" outside of ELF segments
warning: Loadable section "osporttk__i.tk_init_os" outside of ELF segments
warning: Loadable section "osporttk__i.tk_msec_delay" outside of ELF segments
warning: Loadable section "osporttk__i.tk_mutex_create" outside of ELF segments
warning: Loadable section "osporttk__i.tk_mutex_free" outside of ELF segments
warning: Loadable section "osporttk__i.tk_mutex_pend" outside of ELF segments
warning: Loadable section "osporttk__i.tk_mutex_post" outside of ELF segments
warning: Loadable section "netmain_mod__i.tk_netmain" outside of ELF segments
warning: Loadable section "nettick__i.tk_nettick" outside of ELF segments
warning: Loadable section "osporttk__i.tk_new" outside of ELF segments
warning: Loadable section "osporttk__i.tk_res_lock" outside of ELF segments
warning: Loadable section "osporttk__i.tk_res_unlock" outside of ELF segments
warning: Loadable section "osporttk__i.tk_sem_create" outside of ELF segments
warning: Loadable section "osporttk__i.tk_sem_free" outside of ELF segments
warning: Loadable section "osporttk__i.tk_sem_pend" outside of ELF segments
warning: Loadable section "osporttk__i.tk_sem_post" outside of ELF segments
warning: Loadable section "osporttk__i.tk_sem_post_isr" outside of ELF segments
warning: Loadable section "osporttk__i.tk_sleep" outside of ELF segments
warning: Loadable section "osporttk__i.tk_stats" outside of ELF segments
warning: Loadable section "osporttk__i.tk_suspend" outside of ELF segments
warning: Loadable section "osporttk__i.tk_wake" outside of ELF segments
warning: Loadable section "osporttk__i.tk_yield" outside of ELF segments
warning: Loadable section "uart_os__i.uart_clock_close" outside of ELF segments
warning: Loadable section "uart_os__i.uart_clock_open" outside of ELF segments
warning: Loadable section "uart__i.uart_close" outside of ELF segments
warning: Loadable section "uart__i.uart_dsr_cb" outside of ELF segments
warning: Loadable section "uart_os__i.uart_get_properties" outside of ELF segments
warning: Loadable section "uart_os__i.uart_issue_power_votes" outside of ELF segments
warning: Loadable section "uart_os__i.uart_mem_bank_issue_vote" outside of ELF segments
warning: Loadable section "uart_os__i.uart_mem_bank_release_vote" outside of ELF segments
warning: Loadable section "uart_os__i.uart_mem_in_ram" outside of ELF segments
warning: Loadable section "uart__i.uart_open" outside of ELF segments
warning: Loadable section "uart__i.uart_receive" outside of ELF segments
warning: Loadable section "uart_os__i.uart_release_power_votes" outside of ELF segments
warning: Loadable section "uart_os__i.uart_tlmm_close" outside of ELF segments
warning: Loadable section "uart_os__i.uart_tlmm_open" outside of ELF segments
warning: Loadable section "uart__i.uart_transmit" outside of ELF segments
warning: Loadable section "udp6__i.udp6_alloc" outside of ELF segments
warning: Loadable section "udp6__i.udp6_chk_mc" outside of ELF segments
warning: Loadable section "udpsock6__i.udp6_chk_overlapped_binding" outside of ELF segments
warning: Loadable section "udpsock6__i.udp6_data_upcall" outside of ELF segments
warning: Loadable section "udp6__i.udp6_deliver_mc" outside of ELF segments
warning: Loadable section "udp6__i.udp6_maxalloc" outside of ELF segments
warning: Loadable section "udp6__i.udp6_open" outside of ELF segments
warning: Loadable section "udp6__i.udp6_rcv" outside of ELF segments
warning: Loadable section "udp6__i.udp6_send" outside of ELF segments
warning: Loadable section "udpsock6__i.udp6_sockaddr" outside of ELF segments
warning: Loadable section "udpsock6__i.udp6_sockbind" outside of ELF segments
warning: Loadable section "udpsock6__i.udp6_socksend" outside of ELF segments
warning: Loadable section "udpsock6__i.udp6_soinput" outside of ELF segments
warning: Loadable section "tcpcksum__i.udp_cksum" outside of ELF segments
warning: Loadable section "udpsock__i.udp_close" outside of ELF segments
warning: Loadable section "udpsock__i.udp_lookup" outside of ELF segments
warning: Loadable section "udpsock__i.udp_socket" outside of ELF segments
warning: Loadable section "udpsock__i.udp_soinerr" outside of ELF segments
warning: Loadable section "udpsock__i.udp_soinput" outside of ELF segments
warning: Loadable section "udpsock__i.udp_usrreq" outside of ELF segments
warning: Loadable section "udp6__i.udpswap" outside of ELF segments
warning: Loadable section "ininit__i.update_packets" outside of ELF segments
warning: Loadable section "quartz_ram_stubs__i.user_post_setup" outside of ELF segments
warning: Loadable section "quartz_ram_stubs__i.user_pre_setup" outside of ELF segments
warning: Loadable section "in_utils__i.uslash" outside of ELF segments
warning: Loadable section "ip6mc__i.v6_lookup_mcast" outside of ELF segments
warning: Loadable section "flash_nor__i.vendor_error_check" outside of ELF segments
warning: Loadable section "strrcl_main__i.vote_for_suspend" outside of ELF segments
warning: Loadable section "api_ioctl__i.wait_for_coex_stats" outside of ELF segments
warning: Loadable section "api_ioctl__i.wait_for_get_stats" outside of ELF segments
warning: Loadable section "api_ioctl__i.wait_scan_done" outside of ELF segments
warning: Loadable section "cust_hw_spi__i.wait_spi_done" outside of ELF segments
warning: Loadable section "coex__i.wlan_coex_callback_handler" outside of ELF segments
warning: Loadable section "cust_stack_iniche__i.wlan_create_device" outside of ELF segments
warning: Loadable section "cust_stack_iniche__i.wlan_dev0_pkt_send" outside of ELF segments
warning: Loadable section "cust_stack_iniche__i.wlan_dev1_pkt_send" outside of ELF segments
warning: Loadable section "cust_stack_iniche__i.wlan_dev_close" outside of ELF segments
warning: Loadable section "cust_stack_iniche__i.wlan_dev_init" outside of ELF segments
warning: Loadable section "cust_stack_iniche__i.wlan_dev_stats" outside of ELF segments
warning: Loadable section "cust_api_stack_txrx__i.wlan_drv_buf_dequeue" outside of ELF segments
warning: Loadable section "cust_api_stack_txrx__i.wlan_drv_buf_enqueue" outside of ELF segments
warning: Loadable section "cust_api_stack_txrx__i.wlan_drv_buf_purge_queue" outside of ELF segments
warning: Loadable section "cust_api_stack_txrx__i.wlan_drv_buf_queue_empty" outside of ELF segments
warning: Loadable section "cust_stack_iniche__i.wlan_pkt_send" outside of ELF segments
warning: Loadable section "quartz_ram_stubs__i.wlan_set_deviceid" outside of ELF segments
warning: Loadable section "wmi__i.wmi_bssfilter_cmd" outside of ELF segments
warning: Loadable section "api_init__i.wmi_cmd_process" outside of ELF segments
warning: Loadable section "wmi__i.wmi_cmd_send" outside of ELF segments
warning: Loadable section "wmi__i.wmi_cmd_start" outside of ELF segments
warning: Loadable section "wmi__i.wmi_config_11v_cmd" outside of ELF segments
warning: Loadable section "wmi__i.wmi_control_rx" outside of ELF segments
warning: Loadable section "wmi__i.wmi_control_rx2" outside of ELF segments
warning: Loadable section "wmi__i.wmi_control_rx_p2p" outside of ELF segments
warning: Loadable section "wmi__i.wmi_control_rx_xtnd" outside of ELF segments
warning: Loadable section "wmi__i.wmi_data_hdr_add" outside of ELF segments
warning: Loadable section "wmi__i.wmi_data_hdr_remove" outside of ELF segments
warning: Loadable section "wmi__i.wmi_dix_2_dot3" outside of ELF segments
warning: Loadable section "wmi__i.wmi_dot3_2_dix" outside of ELF segments
warning: Loadable section "wmi__i.wmi_dset_host_cfg_cmd" outside of ELF segments
warning: Loadable section "wmi__i.wmi_get_control_ep" outside of ELF segments
warning: Loadable section "wmi__i.wmi_implicit_create_pstream" outside of ELF segments
warning: Loadable section "wmi__i.wmi_init" outside of ELF segments
warning: Loadable section "wmi__i.wmi_meta_add" outside of ELF segments
warning: Loadable section "wmi__i.wmi_p2p_set_noa" outside of ELF segments
warning: Loadable section "wmi__i.wmi_p2p_set_oppps" outside of ELF segments
warning: Loadable section "wmi__i.wmi_qos_state_init" outside of ELF segments
warning: Loadable section "wmi__i.wmi_sdpd_send_cmd" outside of ELF segments
warning: Loadable section "wmi__i.wmi_send_socket_cmd" outside of ELF segments
warning: Loadable section "wmi__i.wmi_set_appie_cmd" outside of ELF segments
warning: Loadable section "wmi__i.wmi_set_control_ep" outside of ELF segments
warning: Loadable section "wmi__i.wmi_set_wnm_sleep_period_cmd" outside of ELF segments
warning: Loadable section "wmi__i.wmi_set_wnm_sleep_response_cmd" outside of ELF segments
warning: Loadable section "wmi__i.wmi_shutdown" outside of ELF segments
warning: Loadable section "wmi__i.wmi_socket_cmd" outside of ELF segments
warning: Loadable section "wmi__i.wmi_storerecall_recall_cmd" outside of ELF segments
warning: Loadable section "ram_stubs__i.xport_quartz_shutdown" outside of ELF segments
warning: Loadable section "ram_stubs__i.xport_quartz_start" outside of ELF segments
warning: Loadable section "ROM_FOM_RO_REGION__ro-data" outside of ELF segments
warning: Loadable section "ROM_STDLIBS_RO_REGION" outside of ELF segments
warning: Loadable section "ROM_LINKER_SYMS__ro-data" outside of ELF segments
warning: Loadable section "ROM_MOM_MISSIONROM_RW_REGION__rw-data" outside of ELF segments
warning: Loadable section "ROM_SOM_MISSIONROM_RW_REGION__rw-data" outside of ELF segments
warning: Loadable section "ROM_STDLIBS_RW_REGION" outside of ELF segments
warning: Loadable section "ROM_FOM_MISSIONROM_RW_REGION__rw-data" outside of ELF segments
Breakpoint 2 at 0x100a05aa: file /local/mnt/workspace/CRMBuilds/CNSS_W.QZ.3.0-00080-QZHW-2_20181118_181224/b/ioesw_proc/core/boot/sbl//sbl1_mc.c, line 344.
Breakpoint 3 at 0x10fbc: file /local/mnt/workspace/CRMBuilds/CNSS_W.QZ.1.0.r4-00013-QZFPGA-1_20170509_214818/b/ioesw_proc/core/v2/rom/drivers/debugtools/err/src/apps_proc/arm//err_jettison_core_m4.s, line 83.
(gdb)
  •  

 

  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Tue, 2019-09-03 10:53

Kindly confirm if the deep sleep is disabled as described  in "Seciton 2.7.2 JTAG debug mode" in document QCA402x (CDB2x) Development Kit User Guide 80-YA121-140.

Kindly try to set breakpoint at "app_init" and "app_start" and confirm if the issue is still seen.

  • Up0
  • Down0
akshay.b
Join Date: 2 Aug 19
Posts: 62
Posted: Mon, 2019-09-09 00:44

Hello,

I have tried all your suggestion already still the result is same, please suggest other solution.

As i have referred few forum links and found that many of them are having such problem of debug breakpoint not hitting.

Suggest alternative solution ASAP.

thank you.

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