This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Need Help to setup Memory allocations for Flash, RAM & ROM in Scatter File

Hello,

I need Help for setting up memory Locations for my STM32F103ZGT6.

I have written for Interfacing 480X272 Pixel TFT, via Soloman SSD1963 LCD Driver(Controller). I am facing a weird observation while updating my code.

I have code which works properly and able to port Color on TFT. But when I add OR call new functions after this for some reasons, I am seeing that STM32 is resetting automatically everytime. I feel somewhere some Memory write corruption is happening and the Micro is resetting itself.
The strange part is, it is resetting if I edit the somewhere, and not in all places..

Please go through the details below.

After Building -
Code - 62832 RO-data=38532 RW-data=261544 ZI-data=16408

RW data is because of an allocation of Memory for TFT Size i,e. (480x272) x (16 bit data, i,e. 2 bytes)= 261540

MAP File details -
Code (inc. data) RO Data RW Data ZI Data Debug

62832 1668 38532 261544 16408 676035 Grand Totals 62832 1668 38532 2196 16408 676035 ELF Image Totals (compressed) 62832 1668 38532 2196 0 0 ROM Totals

==============================================================================

Total RO Size (Code + RO Data) 101364 ( 98.99kB) Total RW Size (RW Data + ZI Data) 277952 ( 271.44kB) Total ROM Size (Code + RO Data + RW Data) 103560 ( 101.13kB)

==============================================================================

I am really not getting, why is STM32 is resetting..

I have not done any FSMC settings.. And one more thing, I am not able to write in the Display Buffer which is pointed to RW-data..

Please Help me, its urgent..

Rgds
Shankar

0