SD Card |
|
The SD card slot supports 1G SD in FAT16
or FAT 32 format and 4G &
8G SDHC cards in FAT32 format.
When loading new boot file updates, a 1G SD card must be used.
8.3 character file names are supported.
An SD card can be used to load production software into the internal NAND
flash memory using the FPROG and LOAD command. An option to encrypt this
will be available.
Large files can be retained on SD card for access during operation of the
application for slide shows and tutorials.
Data can be written to the SD card for data logging purposes.
(planned operational v48/v49)
|
|

 |
 |
The SD Card can be
connected to CN5 on the TFT using a suitable cable and adaptor.
The pictures to the left show the pin out of the SD Card Adaptor and SD Card
with respect to the pins on CN5
The picture on the right shows an 800mm cable with various connectors and
cable stubs to evaluate SD card reading which proved successful when
uploading the 88 files of the demonstration software.
We recommend the use of screened flat IDC cable of minimum length with a
ferrite collar. |

LONG
Cable test |
SD Card
Handler v49.02+
Unlimited sub directory support with long file names.
> LIB( libImg, "SDHC/dir1/dir2/dir3/dir4/file.ext" );
> CALC( txtVar, "SDHC/dir1/dir2/dir3/dir4/", "DIR" );
Write to / Append file on SD card added (if file does not exist, it is
created)
> LOAD( "SDHC/file.ext", var, var, ... );
> LOAD( "SDHC/dir1/dir2/dir3/dir4/file.ext", var, var, ... );
Read text data from the SD card
STYLE(stBuff,data) {type=TEXT;length=100000;} //define buffer
VAR(databuffer,"",stBuff); //create buffer to hold
data
CALC(databuffer,"SDHC/file.ext,"FREAD"); //read file into buffer
Use a CALC(SPLIT) command to extract the data from the buffer as
required.
> Limitations:
Filename has to be specified in quotes, variable for filename not currently
supported.
Files are written in 'SR' encoding, ie raw ASCII.
RESET(SDHC); which reinitialises SD card handler (useful after SD card
removal/reinsertion).
Improvements made. 33% clock speed increase. Code simplified.
See FILE() command for working with files.
|
|
|
|
Update Information |
Version |
Title |
Date |
Details |
49.48 |
''tuXXXa.mnu'' Module Independent Start File |
29 Nov 13 |
|
* Allows the use of a module startup file which is not dependent on the module in use. This allows for a common startup file to be used on all size displays. * For example, for a 480x272 module Looks for "tu480a.mnu" file on SD card (if fitted) and processes if found else Looks for "tuXXXa.mnu" file on SD card (if fitted) and processes if found else Looks for "tu480a.mnu" file in NAND and processes if found else Looks for "tuXXXa.mnu" file in NAND and processes if found else Run Default Startup
|
|
49.44 |
Problem reading files after FILE(''SETPOS'',...); |
05 Oct 13 |
|
If a position not divisible by 4 (ie 32 bits) was selected with FILE("SETPOS",...) then the data read from SD card was corrupted. This is now fixed.
|
|
49.37 |
Load NAND from Buffer/File with Filename in Text Variable |
10 Jun 13 |
|
* Added LOAD(NAND,varFileName); and LOAD(NAND,varFileName,buf); so that path can be stored in a variable rather than immediate string.
|
|
49.19 |
SD Card Files - Increased maximum simultaneous open files to 8. |
05 Oct 12 |
|
Increased maximum simultaneous open files to 8 (this includes menu files, images, as well as those opened with FILE() command). * Modified code to guarantee file close performed where necessary.
|
|
49.18 |
FILE(''MKDIR'') - Added command to allow directory creation on SD/SDHC card. |
22 Sep 12 |
|
* Added command to allow directory creation on SD/SDHC card.
|
|
49.18 |
Boot Files - Fix to support FAT16 SD cards with more than 255 entries in root directory. |
22 Sep 12 |
|
Fix to support FAT16 SD cards with more than 255 entries in root directory (maximum is 512 under FAT16). * Fix to prevent erasure of images, fonts etc from NAND during updates. * Fix to support file sizes of exact multiples of 4KB. * Fix for clearing screen * New boot files: boot.bin V00.20 newflash.bin V00.26 nandboot.bin V00.25 iuloader.bin V00.36
|
|
49.14 |
SD Card - File deletion now possible using DEL( ''SDHC/filename.ext'' );. |
27 Jul 12 |
|
File deletion now possible using DEL( "SDHC/filename.ext" ); * Improvements to low-level SD and SDHC write handlers. * LOAD( SDHC, "EXT/filename.ext?length=..." ); added but requires further work.
|
|
49.03 |
LOAD( ''SDHC/filename.txt'', var, var, ... ) - Fixed. The file now appends rather than truncating each time. |
01 Jun 12 |
|
Fixed. The file now appends rather than truncating each time. * File write speeds improved.
|
|
49.02 |
File Handling - New FAT file system implemented. |
15 May 12 |
|
New FAT file system implemented * SD card now supports long filenames and unlimited directories.
|
|
49.00 |
SD Card Handler |
22 Mar 12 |
|
It is now possible to read, write, or append to files of less than 3 bytes in length. If a file is deleted from SD or SDHC card, the directory write-back is forced immediately by a dummy read. Previously it was left as a pending write within the SD card which might never happen if the module is powered down or the card removed. Corrected error reporting for a read error.
|
|
48.24 |
SD Card Handler - Directory support added. |
10 Mar 12 |
|
Directory support added. Files can be read from subdirectories on the SD Card. The 8.3 file system must be observed. A depth of FOUR subdirectories is supported. > LIB( libImg, "SDHC/dir1/dir2/dir3/dir4/file.ext" ); > CALC( txtVar, "SDHC/dir1/dir2/dir3/dir4/", "DIR" ); Write to / Append file on SD card added (if file does not exist, it is created) > LOAD( "SDHC/file.ext", var, var, ... ); > LOAD( "SDHC/dir1/dir2/dir3/dir4/file.ext", var, var, ... ); > Limitations: Filename has to be specified in quotes, variable for filename not currently supported. Files are written is 'SR' encoding, ie raw ASCII. Added RESET(SDHC); which reinitialises SD card handler (useful after SD card removal/reinsertion). Improvements made. 33% clock speed increase. Code simplified.
|
|
48.24 |
SD Newflash - The newflash.bin boot program now erases all the EEPROM area. |
10 Mar 12 |
|
The newflash.bin boot program now erases all the EEPROM area, not just the user area. This also clears the touch screen calibration figures so that they return to factory defaults.
|
|
47.12 |
Reset(library) - Progress bar operation corrected when run from SDcard. |
09 Sep 11 |
|
Progress bar operation corrected when run from SDcard. * Fixed protection of memory used by system built in entities.
|
|
47.12 |
File exists check - CALC(dstVar, src, ''FEXISTS''); checks for existence of file in NAND or on SDHC card. |
09 Sep 11 |
|
CALC(dstVar, src, "FEXISTS"); // checks for existence of file in NAND or on SDHC card > eg CALC(U8var,"SDHC/file1.bmp","FEXISTS"); returns 1 if present else 0
|
|
47.04 |
SDCard |
26 Jul 11 |
|
Issues were found in v47 with SD card handling following significant changes to the core routines in order to handle directories and writing. These affected 5% of user hardware. To bring v45 stability back into operation, restrictions temporarily apply: Cannot write to an SDHC card Cannot read SDHC cards larger than 8Gbyte Cannot access addresses on an SDHC beyond 4Gbyte Cannot recognise cards SDHC 4G+ cards which are not partitioned These will be lifted within the next 2 weeks.
|
|
44.00 |
NAND and SDHC - Module can now run entirely from NAND. |
20 May 11 |
|
Latest functionality added. Module can now run entirely from NAND. · LOAD(NAND,"SDHC/filename.ext"); to copy files to NAND; · LIB(name,"NAND/filename.ext"); and INC("NAND/filename.ext"); to use from NAND. RESET(NAND); added. SD Card is no longer required to be present at boot.
|
|
39.00 |
SDCard - Improvements made to SD Card reading. |
21 Jan 11 |
|
Improvements made to SD Card reading.
|
|
37.00 |
SDCard Reader - The SDCard reader has been fixed to read 4GB SDHC cards. |
13 Dec 10 |
|
The SDCard reader has been fixed to read 4GB SDHC cards.
|
|
|
|