Hi, I am working on lpc1788 with RTOS and have TCP driver enable with external NAND(512Mb)flash memory interfaced,Someone please guide ,how much minimum and maximum stack and heap is required .
And in my startup_lpc1788.s file i have given stack and heap size is as below Stack size : 0x00001500 heap size : 0x00000800
And in my RTX_conf_CM.c file OS STKSIZE :600 Number of task :12
Tell me description about each below hex file values description. After compiling my hex file show me below memory values, whether that much memory is sufficient to work code??
hex file values:
Program Size: Code=246502 RO-data=34222 RW-data=4680 ZI-data=433380
There are no fixed values that are "sufficient" - it all depends on what the code is doing. And only you will know what the individual threads in your program is doing, and so what memory needs they may have. "How much money do I need when going on vacation?" can't be answered without knowing if the vacation will be backpacking in some remote part of the world or if it will be spent in Monaco or on Las Vegas casinos." It's all about context. So you will have to be the one with the expert knowledge about your programs.
RO data is data that is write-protected. So the compiler/linker does not need to place the data into RAM - it can be kept in flash.
ZI data is normal variables that are simply zero-initialized. So the startup code can do a simple memset to fill the memory before the program reaches main().
RW is normal variables that should be given a specific initialization value. So the initial values needs to be stored in the flash and copied into RAM when the program starts. Then the program can modify the data as it runs.
Thanks ,for reply.
Have u seen my one thread which i have posted one day back with title: File system programming.
Do you help me on that.
My nand flash data gets all blank(all directories are lost) after power on , some times if any of my one file stored in nand flash directory gets corrupted.
heres is my all directories before data get corrupted:
File System Directory... FILE.TXT 27 01.01.2011 12:00 SETTING <DIR> 01.01.2011 12:00 Default_setup <DIR> 01.01.2011 12:00 Method_setup <DIR> 01.01.2011 12:00 Report_template <DIR> 01.01.2011 12:00 Calibration_Results <DIR> 01.01.2011 12:00 Verification_Results <DIR> 01.01.2011 12:00 User_Security 01.01.2011 12:00 Group_Security <DIR> 01.01.2011 12:00 Delete_group <DIR> 01.01.2011 12:00 LIST <DIR> 01.01.2011 12:00 Cal_result <DIR> 01.01.2011 12:00 Product_setup <DIR> 01.01.2011 12:00 EHT5P_RESULTS <DIR> 01.01.2011 12:00 Test_result <DIR> 01.01.2011 12:00 1 File(s) 27 bytes 14 Dir(s) 503.037.952 bytes free.
File System Directory... . <DIR> 01.01.2011 12:00 .. <DIR> 01.01.2011 12:00 PRODUCT.TXT 328 01.01.2011 12:00 VXGCH.TXT 328 01.01.2011 12:00 VGCU.TXT 328 01.01.2011 12:00 VCH.TXT 328 01.01.2011 12:00 GHNJ.TXT 328 01.01.2011 12:00 VVBH.TXT 328 01.01.2011 12:00 GGH.TXT 328 01.01.2011 12:00 BBN.TXT 328 01.01.2011 12:00 CCVVGVJ.TXT 328 01.01.2011 12:00 BBNJ.TXT 328 01.01.2011 12:00 10 File(s) 3.280 bytes 2 Dir(s) 503.037.952 bytes free.
File System Directory... . <DIR> 01.01.2011 12:00 .. <DIR> 01.01.2011 12:00 VID list.txt 11 01.01.2011 12:00 report template list.txt 28 01.01.2011 12:00 user list.txt 17 01.01.2011 12:00 group list.txt 18 01.01.2011 12:00 CID list.txt 48 01.01.2011 12:00 product list.txt 65 01.01.2011 12:00 method list.txt 65 01.01.2011 12:00 TID list.txt 283 01.01.2011 12:00 8 File(s) 535 bytes 2 Dir(s) 503.037.952 bytes free.
File System Directory... . <DIR> 01.01.2011 12:00 .. <DIR> 01.01.2011 12:00 TID0302161422 .TXT 1.336 01.01.2011 12:00 TID0302161423 .TXT 1.577 01.01.2011 12:00 TID0302161431 .TXT 3.737 01.01.2011 12:00 TID0302161502 .TXT 3.734 01.01.2011 12:00 TID0302161528 .TXT 3.734 01.01.2011 12:00 TID0302161555 .TXT 3.734 01.01.2011 12:00 TID0302161624 .TXT 3.734 01.01.2011 12:00 TID0302161651 .TXT 4.534 01.01.2011 12:00 TID0302161738 .TXT 2.998 01.01.2011 12:00 TID0402160930 .TXT 1.334 01.01.2011 12:00 TID0402160934 .TXT 1.334 01.01.2011 12:00 TID0402160940 .TXT 1.144 01.01.2011 12:00 TID0402160943 .TXT 1.152 01.01.2011 12:00 TID0402160944 .TXT 4.335 01.01.2011 12:00 TID0402161028 .TXT 4.344 01.01.2011 12:00 15 File(s) 42.761 bytes 2 Dir(s) 503.037.952 bytes free.
but,after any of one file system operation gets hanged or anything data file corrupted(internally on driver what is going on i don't know, as i am writing on application code) ,why all files and directory's are not found.
it gives me no directory's found.
Please ,Please help on out.or suggest some check.
Have u seen my one thread which i have posted one 2day back with title: File system programming.
please see my post 2 days back with title: File system programming.
Please suggest me on that.and thanks for reply