RE: app in TINIm400 flash

"Kelly Smith" <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Dear Zhbnzz - I attached LogData.zip for you.

Here is a very simple example using the LogData class. The program starts,
writes
the starting date in a file, then write in it every 30 seconds during 3
minutes,
then it ends.

File "Test.txt" will contain the following example text when LogTest.tini
completes:

Fri Apr 11 14:04:17 GMT 2003: Test started
Fri Apr 11 14:04:30 GMT 2003: After 30sec
Fri Apr 11 14:05:00 GMT 2003: After 60sec
Fri Apr 11 14:05:30 GMT 2003: After 90sec
Fri Apr 11 14:07:00 GMT 2003: After 120sec
Fri Apr 11 14:07:30 GMT 2003: After 150sec
Fri Apr 11 14:08:00 GMT 2003: After 180sec
Fri Apr 11 14:08:00 GMT 2003: Test ended

The original code is from:

Jehan Snyers d'Attenhoven
Project Leader
Cherokee Europe
http://www.cherokee.be/

I'll make it available for others on request, if they want it. I
speciffically DID NOT ATTACH for the tini-6tN4nzCoH/[email protected] list...

Best regards, Kelly Smith

-----Original Message-----
From: tini-admin-6tN4nzCoH/[email protected] [mailto:[email protected]]On Behalf Of
zhbnzz
Sent: Tuesday, March 30, 2004 6:14 PM
To: Kristopher.Ardis-6tN4nzCoH/[email protected]
Cc: tini-6tN4nzCoH/[email protected]
Subject: [TINI]app in TINIm400 flash


Kris Ardis

My application code in slush can reads data from file in SRAM, but cannot
writes data to file in SRAM. Why?

//======================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.close();
      ff.setOtherPermissions(0);
 }catch(IOException e)
              {
}
//=========================================
 ¡°datafile¡± not  found in SRAM. Why?

//====================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.close();
}catch(IOException e)
              {
}
//=========================================
"datafile¡± not  found in SRAM. Why?


Zhbnzz
3.30.2004


______________________________________

×¢²áÐÂÀË9Õ×Ãâ·ÑÓÊÏ䣨 http://mail.sina.com.cn/chooseMode.html £©

===================================================================
»ÝÆÕ´ó½±Á¬»·ËÍ£¬¸ßЧ°ì¹«ÀÖȤ¶à!
(http://ad4.sina.com.cn/shc/zhuiyu_hprefresh1.html)
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini


_______________________________________________
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.