<?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>bootloader and rtx problem</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/32292/bootloader-and-rtx-problem</link><description> 
I wrote a simple bootloader program (doesn&amp;#39;t do anything but jump
to the application code in flash once a timer expires) and I am
having trouble getting rtx to work in the application code. It gets
to a point in os_sys_init()&amp;#39;s assembly code where it</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: bootloader and rtx problem</title><link>https://community.arm.com/thread/63188?ContentTypeID=1</link><pubDate>Fri, 10 Oct 2014 19:01:32 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:27d80884-606e-426b-a9d0-8ec11f935ab5</guid><dc:creator>wang ji</dc:creator><description>&lt;p&gt;&lt;p&gt;
I find my mistake.&lt;br /&gt;
if (((*(__IO uint32_t*)ApplicationAddress) &amp;amp; 0x2FFD0000) ==
0x20000000)&lt;/p&gt;

&lt;p&gt;
The code has mistake.&lt;/p&gt;

&lt;p&gt;
STM32F429ZI&amp;#39;s stack start 0x20000000H size 30000H.&lt;br /&gt;
So I change code below:&lt;/p&gt;

&lt;p&gt;
static void JumpToApp(void)&lt;br /&gt;
{ UINT32 addr = (*(__IO uint32_t*)ApplicationAddress); addr = addr
&amp;amp; 0x1FFFFFFF; if (addr &amp;lt; 0x30000)//check stack addr { /* Jump
to user application */ m_JumpAddress = *(__IO uint32_t*)
(ApplicationAddress + 4); JumpToApplication = (FunVoidType)
m_JumpAddress; /* Initialize user application&amp;#39;s Stack Pointer */
__set_MSP(*(__IO uint32_t*) ApplicationAddress); __set_PRIMASK(1);
JumpToApplication(); } Uart1SendSyc(&amp;quot;JumpToApp Failed!\r\n&amp;quot;);&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
That is ok.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>