question = app in TINI flash or SRAM

"伟大" <zhbnzz-9Onoh4P/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Hi
every body: 

My code
//=====1==========
 boolean ret=false;
 DSFile ff = new DSFile("datafile");
 try{
      PrintStream ffOut = new PrintStream(new BufferedOutputStream(new FileOutputStream(ff)));
      ffOut.println("12345");
      ffOut.println("67890");
      ffOut.flush(); 
      ffOut.close();
      ff.setOtherPermissions(0);
 }catch(IOException e)
              {
}
//================
or
//============2=====
FileOutputStream ffout;
try
 {
  ffout= new FileOutputStream("datafile");
  ffout.write((new String("12345\r\n")).getBytes());
ffout.write((new String("67890\r\n")).getBytes());
ffOut.flush(); 
ffout.close();
}catch(IOException e)
              {
}

//=========================================

       A.    The above code  1 or 2  in "slush.java",  “datafile”  can found   in   SRAM !

       B.  The above code 1 or 2  in "myApp.java", 

           B.a.      'myApp.tini'  in SRAM,   “datafile” can found in SRAM !!!

           B.b.    In com.dalsemi.slush.java,  I make Changes:
                 import MyPackage.MyApp;
                …
                public static void main(String[] args)
                  {
                   new Slush();
                  new MyApp();
                 }

build them to slush_400.tbin(=slush+MyApp).  
Loading slush_400.tbin  to flash. 

My myApp code (in slush_400.tbin stored in flash)  founctions  (:  Lan, modem,     get  temp,  humidity , control air condition .....,reads data from file in SRAM.....  etc ) works very good !!!      only the “datafile” not  found in SRAM. Why?


*The firmware version to build  'myApp.tini'  == The firmware version to build  slush_400.tbin.


  
Best regards,

Zhbnzz
4.7.2004

mailto: [email protected]


========================================================
“掀起你的盖头来,AOC新妆靓丽健康秀”!            http://design.163.com/aocmonitor/index.html

是邮件你收 有病毒我上!VIP邮箱 全面保护!            http://vip.163.com

中国最大的免费邮箱在等你 25兆空间4兆附件!      http://mail.163.com

点击网易泡泡惊喜无限 全免费手机短信任你发!      http://popo.163.com
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.