<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>how to set cursor in c file</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/35363/how-to-set-cursor-in-c-file</link><description> 
 
Debug mode cursor doesn&amp;#39;t show in C code file 
 
Hi,everyone, 
When i use ST-Link Debugger to debug code,the current cursor show in
disassembly code windows. 
I want to set cursor show in c code file,what should i do? 

 
 i configure Options-&amp;gt;Load</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: how to set cursor in c file</title><link>https://community.arm.com/thread/121152?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2017 17:55:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1fd68fe6-b144-4e9e-9c51-98adead22fb7</guid><dc:creator>kyle young</dc:creator><description>&lt;p&gt;&lt;p&gt;
Before getting in the loop,I sent a msg which can be read bu PC
com tool,through USART1.&lt;br /&gt;
After that,it gets stuck in the loop.But the cursor alsways stay in
assembler code.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set cursor in c file</title><link>https://community.arm.com/thread/118746?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2017 08:28:29 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bcdcd7a3-32ae-4204-a22a-5a1beff12f1d</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
Is the USART1 reference a typo?&lt;/p&gt;

&lt;p&gt;
It gets stuck in this loop? Or doesn&amp;#39;t get there?&lt;/p&gt;

&lt;p&gt;
If it is not getting to this loop, then pay attention to where it
is getting, and what it might be doing there. Check that clocks are
enabled, etc.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set cursor in c file</title><link>https://community.arm.com/thread/94151?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2017 18:12:58 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ca9b83d8-29c5-40c9-a76e-c8b26b91bcc7</guid><dc:creator>kyle young</dc:creator><description>&lt;p&gt;&lt;p&gt;
after initialation,program run in while loop,and i get massage
from UART3 and analyze the data.&lt;/p&gt;

&lt;pre&gt;
while (1) {
        ...
        if (USART3_ready_buf_ok){
                USART_SendChars(USART1,USART3_ready_buf,USART3_ready_buf_len);
                McuProtocolUnpack(USART3_ready_buf,USART3_ready_buf_len);
                USART3_ready_buf_ok = 0;
        }
}
&lt;/pre&gt;
&lt;pre&gt;
0x08001FD6 2032      MOVS     r0,#0x32
0x08001FD8 F7FFFADE  BL.W     0x08001598
0x08001FDC 4814      LDR      r0,[pc,#80]  ; @0x08002030
0x08001FDE 7800      LDRB     r0,[r0,#0x00]
0x08001FE0 B168      CBZ      r0,0x08001FFE
0x08001FE2 4814      LDR      r0,[pc,#80]  ; @0x08002034
0x08001FE4 8802      LDRH     r2,[r0,#0x00]
0x08001FE6 4914      LDR      r1,[pc,#80]  ; @0x08002038
0x08001FE8 4810      LDR      r0,[pc,#64]  ; @0x0800202C
0x08001FEA F7FFFAB7  BL.W     0x0800155C
0x08001FEE 4811      LDR      r0,[pc,#68]  ; @0x08002034
0x08001FF0 8801      LDRH     r1,[r0,#0x00]
0x08001FF2 4811      LDR      r0,[pc,#68]  ; @0x08002038
0x08001FF4 F7FEFB94  BL.W     0x08000720
0x08001FF8 2000      MOVS     r0,#0x00
0x08001FFA 490D      LDR      r1,[pc,#52]  ; @0x08002030
0x08001FFC 7008      STRB     r0,[r1,#0x00]
0x08001FFE E7EA      B        0x08001FD6
&lt;/pre&gt;
&lt;pre&gt;



&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set cursor in c file</title><link>https://community.arm.com/thread/86193?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2017 06:46:18 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7c4c452b-31ce-45a4-9d9e-8238ec0a0146</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
Perhaps there is no source code associated with the place where it
is stopped? Code in assembler or from libraries is not going to
display C code, as this is unavailable.&lt;/p&gt;

&lt;p&gt;
So where is it actually stopped? What is the code at the
disassembly cursor? Scrolling back, or expanding the window, can you
see any function names? Addresses?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>