This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

NDK helloWorld example Server Daemon does not recognise breakpoints

Hi,

The 6678EVM NDK helloWorld example uses DaemonNew() to launch a task thread as a Server Daemon,  and it works as expected. i.e. it responds to Ping.  

However, CCSv5 does not stop at the hardware or software breakpoints I insert in the server code, nor will it print messages embedded in the server (using printf() or platform_write()) to the console.

I suspect this is something I don't understand rather than a fault. Can someone please explain?

Regards,

Bernard

 

 

  • Hello Bernard,

    I'm not sure what is going on either. Could provide more details so I can try this out? What is the full version number of your CCSv5 installation? What emulator are you using? What version of the NDK are you using?

    Thanks

    ki

  • Ki,

    I am running the TMDXEVM6678LE evaluation board with the XDS560V2 mezzanine emulator using CCSv5.1.0.07001 and ndk_2_20_04_26.

    The problem occurs with the mcsdk NDK example helloWorld which launches dtask_udp_hello() in file udpHello.c as its server daemon. 

    dtask_udp_hello() runs OK as it responds to the Ping commands from the host. However, while I can set breakpoints in dtask_udp_hello(), CCS will not stop on them. Also any printf() or platform_write() commands that I include in dtask_udp_hello() are ignored.

     

    Regards,

    Bernard

     


     

     

  • Ki,

    Problem is sorted. It turns out that the response to the host's Ping does not come from the server daemon (dtask_udp_hello()). When I use the winapps example program provided with ndk, the daemon is called, the breakpoints work and messages print as expected. 

    Regards,

    Bernard