<?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>Testing binary serial input in µVision4 debugger</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/28622/testing-binary-serial-input-in-vision4-debugger</link><description> 
I wrote a piece of code which uses small memory model. It compiles
to 65 bytes data and 1646 bytes code. I&amp;#39;m using 3 register banks and
all 16 bytes of bit addressable memory. My SP is initialized to
address 30h. My main only initializes the hardware</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Testing binary serial input in µVision4 debugger</title><link>https://community.arm.com/thread/145318?ContentTypeID=1</link><pubDate>Sun, 20 May 2012 13:02:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:11590ce1-69c0-4609-ab82-de6bd413a61d</guid><dc:creator>jameel hak</dc:creator><description>&lt;p&gt;&lt;p&gt;
thx mate. you are ace.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Testing binary serial input in µVision4 debugger</title><link>https://community.arm.com/thread/143170?ContentTypeID=1</link><pubDate>Sun, 20 May 2012 12:51:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:df0023d2-01f5-4c76-9c39-4afd5264f426</guid><dc:creator>Miloš Rašic</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yeah, you import reg51.h and you get a bunch of variables mapped
to registers.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Testing binary serial input in µVision4 debugger</title><link>https://community.arm.com/thread/140260?ContentTypeID=1</link><pubDate>Sun, 20 May 2012 12:48:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9dcb80c5-013f-47ea-86a6-0657be7e5be2</guid><dc:creator>jameel hak</dc:creator><description>&lt;p&gt;&lt;p&gt;
i understand now. same like the register.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Testing binary serial input in µVision4 debugger</title><link>https://community.arm.com/thread/136782?ContentTypeID=1</link><pubDate>Sun, 20 May 2012 12:35:50 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f67910b8-2159-4700-8bf7-bf6c04053335</guid><dc:creator>Miloš Rašic</dc:creator><description>&lt;p&gt;&lt;p&gt;
Contains the memory address of the last occupied position on the
stack.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Testing binary serial input in µVision4 debugger</title><link>https://community.arm.com/thread/127523?ContentTypeID=1</link><pubDate>Sun, 20 May 2012 12:31:48 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f8130cb5-959a-49d0-8a48-87ad49a75500</guid><dc:creator>jameel hak</dc:creator><description>&lt;p&gt;&lt;p&gt;
what does sp do?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Testing binary serial input in µVision4 debugger</title><link>https://community.arm.com/thread/116844?ContentTypeID=1</link><pubDate>Sun, 20 May 2012 07:32:15 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7808115b-456e-492f-b617-0b261c6e6aa9</guid><dc:creator>Miloš Rašic</dc:creator><description>&lt;p&gt;&lt;p&gt;
I wasn&amp;#39;t aware that the linker takes care of SP. Thanks. I had a
leaky array in the first draft of my code so I assumed the problem
was in SP initialization.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Testing binary serial input in µVision4 debugger</title><link>https://community.arm.com/thread/106025?ContentTypeID=1</link><pubDate>Sun, 20 May 2012 05:37:47 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3d940d1d-fc76-4976-92d4-d3017b03cbaf</guid><dc:creator>&amp;#178;erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
the linker set the stack automatically after the last variable,
why do you fool with it&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Testing binary serial input in µVision4 debugger</title><link>https://community.arm.com/thread/80268?ContentTypeID=1</link><pubDate>Sat, 19 May 2012 15:01:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c8d92d39-a2ea-4e5b-821d-ea5f4b6e8418</guid><dc:creator>Miloš Rašic</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yeah, quite. As it turns out, the compiler puts global variables
and the locals it can&amp;#39;t put into registers on the lowest memory
addresses it thinks are available, and it doesn&amp;#39;t take the location
of stack into consideration. The reason for erratic behaviour of my
code was the global were writing into stack. After some more
additions to the code, ended up initializing SP to 60h.&lt;/p&gt;

&lt;p&gt;
So, my stability problem has been resolved, but I would still know
if it is possible to type in a hex or binary value that would be send
to the serial port as a byte.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Testing binary serial input in µVision4 debugger</title><link>https://community.arm.com/thread/60744?ContentTypeID=1</link><pubDate>Sat, 19 May 2012 14:57:52 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:58e9c048-bfa5-4be0-a543-96adb2e0dcee</guid><dc:creator>&amp;#178;erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;My SP is initialized to address 30h.&lt;/i&gt;&lt;br /&gt;
risky business, where are your variables?&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>