Author Topic: M52233DEMO  (Read 8657 times)

Offline chronosdino

  • Newbie
  • *
  • Posts: 10
    • View Profile
M52233DEMO
« on: September 19, 2008, 07:21:59 AM »
Hello.

I have to prove to my boss the faisability of µTasker.

I have the M52233DEMO board and i need to put a web site.
 

I have configure like this :
   - app_hw_m5223x.h
#define _M52233
#define uFILE_START 0x10000
#define FILE_SYSTEM_SIZE (64*SINGLE_FILE_SIZE + PAR_BLOCK_SIZE)

   - config.h
//#define SPI_FILE_SYSTEM
#define FLASH_FILE_SYSTEM


But it doesn't work properly. i update the rename and recode ( for link) web file by ftp.
but when i refresh the file list, some desepeared, and when i connect me to the website, a part of the mmch.js file doesn't exist.

can you help me ?!

Thanks

« Last Edit: September 26, 2008, 07:17:16 AM by chronosdino »

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3237
    • View Profile
    • uTasker
Re: M52233DEMO
« Reply #1 on: September 19, 2008, 01:16:29 PM »
Hi

There are a few files which are overlapping in the list that you show, this will explain why some files get overwritten when you copy them.

The reason why the mmch.js file is being cut is becasue the file system doesn't have enough space for it to fit (there is space for a about 40k from location 'Y' and the file is about 52k).

But it looks as though your are almost there. I suggest that you make a copy of the following file
\Applications\uTaskerV1.3\WebPages\WebPagesM5223X\FileSystem\FileSystemM5223X_160k.doc

Then adjust it to suit your length (you are defining a file system size of 128k, starting at 64k in FLASH, so you can increase the size as the M52233 has 256k in total - note that your application may grow, so it may be an idea to start the file system higher in memory. Don't forget that the project supports the file system in cheap external SPI FLASH if memory does become a problem).

Then you can mark in your files and their sizes. You will see for instance that your files ejc.htm and md.jpg are presently overlapping. The second one which is copied will need to delete the first one to make space for itself...
It also looks like mmch.css (if it is really 18k in size) is also overlapping with several other files.

After making a few changes to ensure that the files respect the uFileSystem naming conventions you should then find that it works correctly.

regards

Mark