<?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>Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/29790/need-help-for-stm32f103zgt6-in-keil-have-reset-problems-please-help</link><description> 
Hello, 

 
I am working on STM32F103ZGT6 with Keil Compiler. The version of
Keil &amp;amp; other info are as below, 
IDE-Version: 
&amp;#181;Vision V4.23.00.0 

 
Tool Version Numbers: 
Toolchain: MDK-ARM Standard Version: 4.23 
Toolchain Path: C:\Keil\ARM\BIN40 
C</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/thread/157983?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2013 01:03:37 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:31eb1f26-b69f-45a1-94aa-2db0d046216f</guid><dc:creator>Shankar Tangai</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hello,&lt;/p&gt;

&lt;p&gt;
Thank you very much to all of you.&lt;/p&gt;

&lt;p&gt;
Thanks a lot for your valuable time. I will work a little bit and
learn it properly in the Documents referred by you..&lt;/p&gt;

&lt;p&gt;
If any further doubts, will post my comments here..&lt;/p&gt;

&lt;p&gt;
Thanks&lt;br /&gt;
Shankar&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/thread/157926?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2013 10:29:21 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6c2608a1-da71-4119-bfce-d3d56fd52eba</guid><dc:creator>Dan Curran</dc:creator><description>&lt;p&gt;&lt;p&gt;
This example shows how to use the external SRAM mounted on
STM3210E-EVAL or&lt;br /&gt;
STM32100E-EVAL board as program data memory and internal SRAM for
Stack.&lt;br /&gt;
This example doesn&amp;#39;t use the default library startup files. Use the
EWARM, MDK-ARM,&lt;br /&gt;
HiTOP, RIDE or TrueSTUDIO startup files provided within this
folder.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
  MDK-ARM - in Project-&amp;gt;Options for Target window, select
  &amp;#39;RAM1&amp;#39;and enter 0x68000000 as start address with size of 0x100000
  (IRAM1 must be un-checked) - uncomment &amp;quot;#define DATA_IN_ExtSRAM &amp;quot;
  in the &amp;quot;system_stm32f10x.c&amp;quot; file
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
/**********************/&lt;br /&gt;
Just a quick point - remember I was swagging it and havent a scoobie
about your hardware!&lt;/p&gt;

&lt;p&gt;
Does the display have built in display RAM ? - Do you have the
commands to read/write to the display RAM ? ( if this is the case you
just set up the micro as standalone and set up the FSMC to drive the
display - loads of examples of that.&lt;/p&gt;

&lt;p&gt;
If your using emWin and a display they support check the Keil
boards examples to see what needs to be done.&lt;/p&gt;

&lt;p&gt;
I doubt its the compiler version that needs to changed just
getting the right hardware config etc&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/thread/153051?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2013 10:19:26 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:24baef07-10f4-4e9d-8c3b-ed8b9ed42f34</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
No. It isn&amp;#39;t your line:&lt;/p&gt;

&lt;pre&gt;
extern DisplayBufUnion GuiLib_DisplayBuf __attribute__((at(0x60020000)));
&lt;/pre&gt;

&lt;p&gt;
&lt;br /&gt;
that is generating the warning.&lt;/p&gt;

&lt;p&gt;
It&amp;#39;s your change to the scatter file that is generating the
warning.&lt;/p&gt;

&lt;p&gt;
ZI, by the way, stands for zero-initialized variables.&lt;/p&gt;

&lt;p&gt;
Why do you manually create a scatter file, unless you use any
features that requiers a scatter file? If you use your &amp;quot;at&amp;quot;
declaration in the code, and add the address range of your external
RAM in the project settings, you can ignore that scatter file.&lt;/p&gt;

&lt;p&gt;
But whatever you do, you must make sure that the startup file
configures the memory controller for that external RAM range.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/thread/152310?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2013 09:59:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:75cb936f-6609-4a04-97ed-e5bdcc8e00db</guid><dc:creator>Shankar Tangai</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hmm,&lt;/p&gt;

&lt;p&gt;
I am quite confused about these settings.&lt;/p&gt;

&lt;p&gt;
In STM32 there is a Memory Space &amp;quot;FSMC bank1 &amp;amp; bank2&amp;quot;, which
is located at location 0x60000000 till 0x6FFFFFFF. As the SRAM size
of STM32103FZGT6 is 96K, I feel, I need more RAM to store the Display
Data, which is in &amp;quot;GuiLib_DisplayBuf[][]&amp;quot; of size 261120 bytes.&lt;/p&gt;

&lt;p&gt;
Frankly telling, I dont have much idea of Scatter File.&lt;/p&gt;

&lt;p&gt;
I just want a solution for allocating the variable
&amp;quot;GuiLib_DisplayBuf[][]&amp;quot; to FSMC bank location of STM32. During
declaration of &amp;quot;GuiLib_DisplayBuf[][]&amp;quot; as below I have allocated it
to 0x60020000.&lt;/p&gt;

&lt;pre&gt;
typedef union
{
        GuiConst_INT8U  Bytes[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE];
        GuiConst_INT16U Words[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE/ 2];
} DisplayBufUnion;
extern DisplayBufUnion GuiLib_DisplayBuf __attribute__((at(0x60020000)));
&lt;/pre&gt;

&lt;p&gt;
After doing this, i am getting a warning&lt;/p&gt;

&lt;pre&gt;
.\ST\stm32_testprojekt.sct(19): warning: L6314W: No section matches pattern *(ZI).
&lt;/pre&gt;

&lt;p&gt;
with build details&lt;/p&gt;

&lt;pre&gt;
Program Size: Code=46242 RO-data=38542 RW-data=316 ZI-data=408852
&lt;/pre&gt;

&lt;p&gt;
&lt;br /&gt;
I dont know exactly, what is this ZI.&lt;/p&gt;

&lt;p&gt;
Now, I want to know what changes should be done in scatter file or
any other file.&lt;/p&gt;

&lt;p&gt;
Rgds&lt;br /&gt;
Shankar&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/thread/157853?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2013 09:17:26 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a3a32938-3a11-4e27-a07d-453980f30445</guid><dc:creator>Dan Curran</dc:creator><description>&lt;p&gt;&lt;p&gt;
If you look a the two examples you see they tell you how to set up
the hardware and the Keil enviroment to use an external SRAM&lt;/p&gt;

&lt;p&gt;
SRAM This example provides a basic example of how to use the FSMC
firmware library and an associate driver to perform read/write
operations on the IS61WV51216BLL SRAM memory mounted on STM3210E-EVAL
board.&lt;/p&gt;

&lt;p&gt;
SRAM DataMemory This example shows how to use the external SRAM
mounted on STM3210E-EVAL or&lt;br /&gt;
STM32100E-EVAL board as program data memory and internal SRAM for
Stack.&lt;/p&gt;

&lt;p&gt;
In each of the example directories there is a readme file listing
the steps.&lt;/p&gt;

&lt;p&gt;
I dont work with the STM32F10X family on a day to day basis so am
not really able to advise you much more than to point you at ST
provided examples set up for the Keil Tools.&lt;/p&gt;

&lt;p&gt;
Sorry&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/thread/151513?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2013 09:01:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9f39e2d6-cd51-4b4e-a0ee-947de888155b</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
You don&amp;#39;t need a scatter file for variables placed at absolute
addresses.&lt;/p&gt;

&lt;p&gt;
You can use a scatter file for forcing placing of things, but you
then use some naming scheme to match the code or variables in your
program to the relevant zones specified in the scatter file.&lt;/p&gt;

&lt;p&gt;
Another thing - depending on what memory regions you use and if
you want the data initialized before reaching main(), you may have to
adjust the startup file to make sure that the specific memory regions
are powered up and enabled. So if using memory areas in external
memory, then the startup file must get the memory controller
configuration for that external RAM. If using RAM located in a
peripherial device, that peripherial may need to be powered up so the
RAM block is powered up and accessible.&lt;/p&gt;

&lt;p&gt;
In your case, you have a rule for .ANY (+ZI) for RW_IRAM1. What
would match your rule in EXT_RAM2?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/thread/147004?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2013 08:51:40 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e7876fbb-9ebd-4bd0-a921-91421e54aab6</guid><dc:creator>Shankar Tangai</dc:creator><description>&lt;p&gt;&lt;p&gt;
Oh Sorry, I didnt realise it..&lt;/p&gt;

&lt;p&gt;
Danny, please go throught the info below.&lt;br /&gt;
I need direct help now,&lt;/p&gt;

&lt;p&gt;
I guess now I am able to allocate the RAM location for the Display
Buffer by doing it as below.&lt;/p&gt;

&lt;p&gt;
In .h File&lt;/p&gt;

&lt;pre&gt;
typedef union
{
        GuiConst_INT8U  Bytes[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE];
        GuiConst_INT16U Words[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE/ 2];
} DisplayBufUnion;
extern DisplayBufUnion GuiLib_DisplayBuf __attribute__((at(0x62020000)));
&lt;/pre&gt;

&lt;p&gt;
In scatter File I am not sure, whether the cahnges are properly
done.&lt;/p&gt;

&lt;pre&gt;
LR_IROM1 0x8008000 0x00100000
{               ; load region size_region
        ER_IROM1 0x8008000 0x00100000
        {               ; load address = execution address
                *.o (RESET, +First)
                *(InRoot&amp;#36;&amp;#36;Sections)
                .ANY (+RO)
        }
        RW_IRAM1 0x20000000 0x00010000
        {               ; RW data
                .ANY (+RW +ZI)
        }
        EXT_RAM2 0x62020000 0x0080000
        {  ; RW data
                * (ZI)
        }
}
&lt;/pre&gt;

&lt;p&gt;
&lt;br /&gt;
Please check this, I am getting a warning after Software Build,
warning is as below&lt;/p&gt;

&lt;pre&gt;
.\ST\stm32_testprojekt.sct(15): warning: L6314W: No section matches pattern *(ZI).
&lt;/pre&gt;

&lt;p&gt;
But, at the moment, I am able to program STM32 and see the Display
with Colors Directly.&lt;/p&gt;

&lt;p&gt;
I am not able to write anything into the Display Buffer or always
has the value 0x0000 in it.. Hope I dont have right to write into
Display Buffer array or it might not be activated(location
0x60000000). Please let me know..&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/thread/145483?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2013 08:37:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2ef752f4-0910-4b3f-85e3-479858203797</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
I wrote in an earlier post:&lt;br /&gt;
&amp;quot;You are posting gibberish when you don&amp;#39;t make use of the &amp;quot;pre&amp;quot; tags
for code - notice how all line breaks and indentation are lost.&amp;quot;&lt;/p&gt;

&lt;p&gt;
Any reason why you continue to post code that gets the formatting
completely garbled? Don&amp;#39;t you think it might be a good idea to look
at the &amp;quot;Tips for Posting Messages&amp;quot; visible directly above the message
input box?&lt;/p&gt;

&lt;p&gt;
Posting hard-to-read code means less people will care to spend
time reading it. So less people who will care to help.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/thread/132119?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2013 08:26:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9e63826e-b09d-435d-8256-c745d52486b3</guid><dc:creator>Shankar Tangai</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanku Danny,&lt;/p&gt;

&lt;p&gt;
I need direct help now,&lt;/p&gt;

&lt;p&gt;
I guess now I am able to allocate the RAM location for the Display
Buffer by doing it as below.&lt;/p&gt;

&lt;p&gt;
In .h File&lt;br /&gt;
typedef union&lt;br /&gt;
{ GuiConst_INT8U Bytes[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE];
GuiConst_INT16U Words[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE/
2];&lt;br /&gt;
} DisplayBufUnion;&lt;br /&gt;
extern DisplayBufUnion GuiLib_DisplayBuf
__attribute__((at(0x62020000)));&lt;/p&gt;

&lt;p&gt;
In scatter File I am not sure, whether the cahnges are properly
done.&lt;br /&gt;
LR_IROM1 0x8008000 0x00100000&lt;br /&gt;
{ ; load region size_region ER_IROM1 0x8008000 0x00100000 { ; load
address = execution address *.o (RESET, +First) *(InRoot&amp;#36;&amp;#36;Sections)
.ANY (+RO) } RW_IRAM1 0x20000000 0x00010000 { ; RW data .ANY (+RW
+ZI) } EXT_RAM2 0x62020000 0x0080000 { ; RW data * (ZI) }&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
Please check this, I am getting a warning after Software Build,
warning is as below&lt;/p&gt;

&lt;p&gt;
.\ST\stm32_testprojekt.sct(15): warning: L6314W: No section
matches pattern *(ZI).&lt;/p&gt;

&lt;p&gt;
But, at the moment, I am able to program STM32 and see the Display
with Colors Directly.&lt;/p&gt;

&lt;p&gt;
I am not able to write anything into the Display Buffer or always
has the value 0x0000 in it.. Hope I dont have right to write into
Display Buffer array or it might not be activated(location
0x60000000). Please let me know..&lt;/p&gt;

&lt;p&gt;
Thanks&lt;br /&gt;
Shankar&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/thread/131954?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2013 05:59:52 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:056bc04b-e93a-469b-bf0a-3e7fb3421d48</guid><dc:creator>Dan Curran</dc:creator><description>&lt;p&gt;&lt;p&gt;

STM32F10x_StdPeriph_Lib\Project\STM32F10x_StdPeriph_Examples\FSMC.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/thread/131220?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2013 05:49:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4fe4ff13-daad-41c2-94b3-2f7a7b7a6532</guid><dc:creator>Shankar Tangai</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hmm..&lt;/p&gt;

&lt;p&gt;
I understand what u r telling..&lt;/p&gt;

&lt;p&gt;
But if you see my code in the explainations above, I am not
accessing any memory or buffer. They are direct values (constant)
values. Currently I am just using GPIO pins to transfer the data.&lt;/p&gt;

&lt;p&gt;
LCD_Data_Disp_Transfer(0x003F); -------- Where 0x003F is the Color
code for displaying RED.&lt;/p&gt;

&lt;p&gt;
F.Y.I&lt;br /&gt;
void LCD_Data_Disp_Transfer(void)&lt;br /&gt;
{ GPIOD-&amp;gt;BRR = GPIO_Pin_7; //CHIP_ENABLED; GPIOD-&amp;gt;BSRR =
GPIO_Pin_11; //MODE_DATA; GPIOD-&amp;gt;BSRR = GPIO_Pin_4; //RD_HIGH;&lt;/p&gt;

&lt;p&gt;
//Write data GPIOD-&amp;gt;ODR = (GPIOD-&amp;gt;ODR &amp;amp; 0x38FC) |
((value&amp;amp;1) &amp;lt;&amp;lt; 14) | ((value&amp;amp;2) &amp;lt;&amp;lt; 14) |
((value&amp;amp;4) &amp;gt;&amp;gt; 2) | ((value&amp;amp;8) &amp;gt;&amp;gt; 2) |
((value&amp;amp;0x8000) &amp;gt;&amp;gt; 5) | ((value&amp;amp;0x4000) &amp;gt;&amp;gt; 5) |
((value&amp;amp;0x2000) &amp;gt;&amp;gt; 5);&lt;/p&gt;

&lt;p&gt;
GPIOE-&amp;gt;ODR = (GPIOE-&amp;gt;ODR &amp;amp; 0x007F) | ((value&amp;amp;16)
&amp;lt;&amp;lt; 3) | ((value&amp;amp;32) &amp;lt;&amp;lt; 3) | ((value&amp;amp;64) &amp;lt;&amp;lt;
3) | ((value&amp;amp;128) &amp;lt;&amp;lt; 3) | ((value&amp;amp;256) &amp;lt;&amp;lt; 3) |
((value&amp;amp;512) &amp;lt;&amp;lt; 3) | ((value&amp;amp;1024) &amp;lt;&amp;lt; 3) |
((value&amp;amp;2048) &amp;lt;&amp;lt; 3) | ((value&amp;amp;4096) &amp;lt;&amp;lt; 3);&lt;/p&gt;

&lt;p&gt;
GPIOD-&amp;gt;BRR = GPIO_Pin_5; //WR_LOW; // millisecond_delay(1);
GPIOD-&amp;gt;BSRR = GPIO_Pin_5; //WR_HIGH; GPIOD-&amp;gt;BSRR = GPIO_Pin_7;
//CHIP_DISABLED;&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
The Display Buffer is just defined, but I am not using it in my
Software.&lt;/p&gt;

&lt;p&gt;
Just now I did a small Analysis, I cahnged the size of Display
Buffer&lt;br /&gt;
as below -&lt;br /&gt;
Earlier&lt;br /&gt;
typedef union&lt;br /&gt;
{ GuiConst_INT8U Bytes[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE];
GuiConst_INT16U Words[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE/
2];&lt;br /&gt;
} DisplayBufUnion;&lt;br /&gt;
extern DisplayBufUnion GuiLib_DisplayBuf&lt;/p&gt;

&lt;p&gt;
--------------------&lt;br /&gt;
After Changing&lt;br /&gt;
typedef union&lt;br /&gt;
{ GuiConst_INT8U Bytes[GuiConst_BYTE_LINES][10]; GuiConst_INT16U
Words[GuiConst_BYTE_LINES][10/ 2];&lt;br /&gt;
} DisplayBufUnion;&lt;br /&gt;
extern DisplayBufUnion GuiLib_DisplayBuf&lt;/p&gt;

&lt;p&gt;
-----------------------------&lt;br /&gt;
The changes done to the size of Display Buffer is working fine. So, I
need help to Configure this Display Buffer to External memory
location of STM32 which is allocated at address 0x60000000 (FSMC Bank
1). i think we should do this by using __attribute__((section xyz)),
in scatter file. I dont know much about this and how to use..&lt;/p&gt;

&lt;p&gt;
Thanks&lt;br /&gt;
Shankar&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/thread/128057?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2013 05:23:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:fadb5823-f481-4066-9ef3-9186920334d5</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
It is irrelevant if 480 is height or width. Your loop do 481
steps. What memory gets accessed by that?&lt;/p&gt;

&lt;p&gt;
If display looks wrong if you write 480 instead of 481 columns:
don&amp;#39;t you think that is a reason to try to figure out what is wrong
instead of just increasing the number of columns written?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/thread/117218?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2013 05:07:11 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9041647c-236c-4a34-8de6-ca019847d57f</guid><dc:creator>Shankar Tangai</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hello,&lt;/p&gt;

&lt;p&gt;
Thanks for the reply..&lt;/p&gt;

&lt;p&gt;
I understand your comment. Actually it is working fine with this
for loop.&lt;br /&gt;
the TFt is 480 Width and 272 Lines.&lt;/p&gt;

&lt;p&gt;
480(Width)&lt;br /&gt;
-----------------------------------&lt;br /&gt;
| |&lt;br /&gt;
| |&lt;br /&gt;
| 272(lines) |&lt;br /&gt;
| |&lt;br /&gt;
| |&lt;br /&gt;
| |&lt;br /&gt;
-----------------------------------&lt;/p&gt;

&lt;p&gt;
I dont have problem with this &amp;quot;for&amp;quot; loop, I am getting proper
colors on TFT in every line. earlier I had condition &amp;quot;&amp;lt;480&amp;quot; &amp;amp;
not &amp;quot;&amp;lt;=480&amp;quot;, the Pixels were disturbed on TFT.&lt;/p&gt;

&lt;p&gt;
Actually, STM32 is resetting by itself every one second
(approximately). The issue is not with the TFT data transfer. But I
feel, it is about allocating Ext RAM for this Display Buffer, which
is taking more memory than 96Kb (SRAM)of STM32. There is a feature of
FSMC or Ext RAM in STM32, which is located at 0x60000000 (Bank1). I
have not set this configuration and I want my Display Buffer data to
me moved to this Ext RAM and from where I can access my display data
or write into it.&lt;/p&gt;

&lt;p&gt;
I want to know, how to allocate this location or access it.&lt;/p&gt;

&lt;p&gt;
Rgds&lt;br /&gt;
Shankar&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/thread/106942?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2013 04:47:54 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2628bfd7-a947-4c03-bf3a-4fe6daa17e1e</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
You are posting gibberish when you don&amp;#39;t make use of the &amp;quot;pre&amp;quot;
tags for code - notice how all line breaks and indentation are
lost.&lt;/p&gt;

&lt;pre&gt;
for(i = 0; i &amp;lt;= 480; i++)
&lt;/pre&gt;

&lt;p&gt;
Note that this loop is wrong, if you have a buffer dimensioned for
480 scan lines - the loop processes 481 lines, not 480.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/thread/106956?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2013 03:57:44 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:caf24cbc-7a05-4191-b22a-67b39a948dcf</guid><dc:creator>Shankar Tangai</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks Andrew,&lt;/p&gt;

&lt;p&gt;
Please follow this link as I have replyed to Danny,&lt;/p&gt;

&lt;p&gt;
I have not set WatchDog. It is disabled.&lt;br /&gt;
I feel it is B&amp;#39;coz of Stack, something related to stack.&lt;/p&gt;

&lt;p&gt;
Please follow the post for more information. Please try to help me
how to Set or Initialize Stack for STM32.&lt;/p&gt;

&lt;p&gt;
Thanks&lt;br /&gt;
Shankar&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/thread/81059?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2013 03:55:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:151741e9-364a-42c7-8b8c-ca9c1b60a951</guid><dc:creator>Shankar Tangai</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hello,&lt;/p&gt;

&lt;p&gt;
Thanks for your reply.&lt;/p&gt;

&lt;p&gt;
Actually, this is not only instance what is causing the problem.
This error is very weird. AS you can see
&amp;quot;GuiConst_DISPLAY_BYTES_test&amp;quot; = (480*272), because the value &amp;quot;k&amp;quot; what
I am passing is 16Bit Color Code data
-------LCD_Data_Disp_Transfer(k);---------. And you can refer the
Macro&amp;#39;s defined. This is not the problem of the number of Bytes I am
transferring.&lt;/p&gt;

&lt;p&gt;
There are many other instances too.&lt;/p&gt;

&lt;p&gt;
I did many analysis now and feel that this might be Stack related
problem. I cant explain my analysis now as it is too much.&lt;/p&gt;

&lt;p&gt;
So how can u say that the below part of code works properly
without making reset for(j = 0; j &amp;lt; 90; j++) { for(i = 0; i &amp;lt;=
480; i++) { LCD_Data_Disp_Transfer(color); } for(i = 0; i &amp;lt;= 480;
i++) { LCD_Data_Disp_Transfer(0xF000); } for(i = 0; i &amp;lt;= 480; i++)
{ LCD_Data_Disp_Transfer(0x003F); } }&lt;br /&gt;
--- in above part of code I am writing (90*3 = 270) lines of TFT.
This is working and STM32 doesn&amp;#39;t reset.&lt;/p&gt;

&lt;p&gt;
When I change the above code as below, this reset the STM32, it
starts resetting contimously and actually when I put BreakPoint, it
doesn&amp;#39;t hit the starting for loop at all. The execution doesn&amp;#39;t come
till here at all. This is strange - for(j = 0; j &amp;lt; 68; j++) {
for(i = 0; i &amp;lt;= 480; i++) { LCD_Data_Disp_Transfer(color); } for(i
= 0; i &amp;lt;= 480; i++) { LCD_Data_Disp_Transfer(0xF000); } for(i = 0;
i &amp;lt;= 480; i++) { LCD_Data_Disp_Transfer(0x003F); } for(i = 0; i
&amp;lt;= 480; i++) { LCD_Data_Disp_Transfer(0x0FFF); } }&lt;br /&gt;
--- In the above part of code, I am writing (68*4 = 272) lines of TFT
(Full TFT). But the above resets the STM32..&lt;/p&gt;

&lt;p&gt;
So I feel, somewhere stack is affected and not properly
Initialzed.&lt;/p&gt;

&lt;p&gt;
For your reference I am sharing scatter file details..&lt;br /&gt;
LR_IROM1 0x8008000 0x00100000 { ; load region size_region ER_IROM1
0x8008000 0x00100000 { ; load address = execution address *.o (RESET,
+First) *(InRoot&amp;#36;&amp;#36;Sections) .ANY (+RO) } RW_IRAM1 0x20000000
0x00010000 { ; RW data .ANY (+RW +ZI) } EXT_RAM2 0x60020000 0x0040000
{ ; RW data * (ZI) }&lt;/p&gt;

&lt;p&gt;
The below query is different from the above -&lt;br /&gt;
I surely feel it is nothing to do with size of allocation. But I need
some help in setting the external memory to this display buffer.&lt;br /&gt;
The below code explains it&lt;br /&gt;
#ifdef GuiConst_COLOR_DEPTH_16&lt;br /&gt;
typedef union&lt;br /&gt;
{ GuiConst_INT8U Bytes[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE];
GuiConst_INT16U Words[GuiConst_BYTE_LINES][GuiConst_BYTES_PR_LINE /
2];&lt;br /&gt;
} DisplayBufUnion;&lt;br /&gt;
extern DisplayBufUnion GuiLib_DisplayBuf
__attribute__((section(&amp;quot;ZI&amp;quot;))); #define EXT_RAM2 0x62020000&lt;br /&gt;
#endif&lt;/p&gt;

&lt;p&gt;
When I think of using this buffer to write onto TFT, I am not able
to write into this buffer, it contains some junk value and that data
is written onto TFT. So, can u tell me, where would this Buffer be
allocated in STM32.. (RAM or ROM or FLASH). It should be in RAM, but
the size of RAM for STM32 is 96K, where this buffer needs 261120
bytes. So I think this should be allocated in EXT_MEM Location
0x60000000, you can refer the scatter file details above for this to
help me.&lt;/p&gt;

&lt;p&gt;
Can you also please tell me, how to set the stack &amp;amp; heap size
and anything else related to this..&lt;/p&gt;

&lt;p&gt;
Thanks&lt;br /&gt;
Shankar&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/thread/92996?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2013 11:27:08 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3071cac6-3691-477a-9deb-1ab5700b9417</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
With big loops like that, is the &lt;b&gt;Watchdog&lt;/b&gt; biting...?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help for STM32F103ZGT6 in Keil. Have reset problems. Please help.</title><link>https://community.arm.com/thread/61749?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2013 09:52:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:db3e1b6a-b9db-4237-bd55-a6410f563f29</guid><dc:creator>Dan Curran</dc:creator><description>&lt;p&gt;&lt;p&gt;
If its just changing the display size as a first swag ( stupid
wild *** guess) I would say check either task stack sizes or arrays
that you use related to the GUI.&lt;/p&gt;

&lt;p&gt;
e.g. 272*480 = 130560 bytes if using 8 bit colour.&lt;br /&gt;
e.g. 272*480 = 261120 bytes if using 16 bit colour.&lt;/p&gt;

&lt;p&gt;
Doesnt STM32F103 device only have a max of 96K - so have you
defined the external RAM area correctly to drive this display ?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>