Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - neil

Pages: 1 2 [3] 4 5 ... 10
31
µTasker general / Link Error
« on: November 25, 2013, 11:05:54 AM »
Hi Mark,
  I am using the 52259, and set everything up for 512k memory, but getting a segment overflow flash2 , see my linker file below. Looking at the linker file, below, I have changed the following and want to make sure there will be no issues:

changed:
    flash1  (RX)   : ORIGIN = 0x00000000, LENGTH = 0x001000

and
    flash2  (RX)   : ORIGIN = 0x00001020, LENGTH = 0x007EFDC

Many Thanks
Neil


MEMORY
{
    flash1  (RX)   : ORIGIN = 0x00000000, LENGTH = 0x000400
    flashconfig   (RX)   : ORIGIN = 0x00000400, LENGTH = 0x00000018 
    flash2  (RX)   : ORIGIN = 0x00000420, LENGTH = 0x003FBE0
    vectorram(RWX) : ORIGIN = 0x20000000, LENGTH = 0x00000400
  /*  usbrram(RWX) : ORIGIN = 0x20000400, LENGTH = 0x00000080
    sram    (RWX)  : ORIGIN = 0x20000480, LENGTH = 0x00007b80   */
    sram    (RWX)  : ORIGIN = 0x20000400, LENGTH = 0x0000FC00   
    extram    (RWX): ORIGIN = 0x2040000, LENGTH = 0x00080000    /* {2} */
    ipsbar  (RWX)  : ORIGIN = 0x40000000, LENGTH = 0x0
}
 

SECTIONS
{
   .ipsbar    : {} > ipsbar
   
   .flash1 :
   {
      Startup.s (.text)
      .             = ALIGN(0x10);

    } > flash1
   
   .flashconfig :
   {
      flash_config.s (.text)            
    } > flashconfig     
   
   .flash2 :
   {
      .             = ALIGN(0x10);
      *(.text)
      .             = ALIGN(0x10);

      *(.rodata)
      ___DATA_ROM      = .;      
    } > flash2       
   
    .data : AT(___DATA_ROM)
   {
      ___DATA_RAM    = . ;
        *(.data)
      .              = ALIGN (0x10);
      ___DATA_END    = .;

      __START_SDATA  = .;
        *(.sdata)
      .              = ALIGN (0x10);
      __END_SDATA    = .;
__SDA_BASE     = .;

          .              = ALIGN(0x10);
      
   } > extram                                                           // {2}

   .bss :
   {
      . = ALIGN(0x10);
      __START_SBSS = .;
      *(.sbss)
      *(SCOMMON)
      __END_SBSS   = .;

      . = ALIGN(0x10);
      __START_BSS  = .;
      *(.bss)
      *(COMMON)
      __END_BSS    = .;   
        ___BSS_START = __START_SBSS;
        ___BSS_END   = __END_BSS;
        . = ALIGN(0x10);

   } >> extram                                                          // {2}

   ___FLASH      = ADDR(.flash1);
   ___FLASH_SIZE   = 0x00040000;
   ___SRAM         = 0x20000000;
   ___VECT_SIZE   = 0x00000400;
   ___SRAM_SIZE   = 0x00010000;

   ___VECTOR_RAM   = ___SRAM;
   ___IPSBAR      = ADDR(.ipsbar);
/*   ___USB_BDT_RAM = ___SRAM + 0x400;   */
   ___INTERNAL_RAM = ___SRAM + ___VECT_SIZE;

    __S_romp        = 0;

       HEAP_SIZE    = 0;                                                  /* {1} This can be left as zero if only uMalloc is used */
   ___HEAP_START   = .;
   ___HEAP_END   = ___HEAP_START + HEAP_SIZE;
   ___SP_INIT   = ___SRAM + ___SRAM_SIZE;
   ___PC_INIT      = ___FLASH + 0x8;   
   
     ___heap_addr    = ___HEAP_START;
   ___heap_size    = ___HEAP_END - ___HEAP_START ;
   __SP_INIT       = ___SP_INIT;
}

32
utFAT / End Of File
« on: November 13, 2013, 05:09:14 PM »
Hi Mark
  I want to detect the eof condition after a read command (also before) do I simply check if the UTFILE.uFilePosition == UTFILE.uFileSize?  

  And if the both are the same, will a seek to the end place the file position at the same place, or 1 space after?

  I want to make sure if I read through a file until I get to the end (as above), and start writing, this is the same as doing a utSeek(&fd, 0, UTFAT_SEEK_END); , then start writing.

Thanks
Neil

33
utFAT / checking for file existance
« on: November 08, 2013, 08:12:32 PM »
Hi Mark,
  Is there a command for checking if a file exists? I am using the open command, then closing if exists, but wondering if there is an easier way.

Thanks
Neil

34
utFAT / Maximum Number Files
« on: November 08, 2013, 07:30:04 PM »
Hi Mark,
  What is the maximum number of files that may be saved into a folder?

Thanks
Neil

35
µTasker general / valid tcp packet communication
« on: June 19, 2012, 06:08:04 PM »
Hi
  When a standard tcp connect is established with a server, am I right in thinking that the sending side includes a checksum of the packet? Then the server will only pass the packet to the user if the checksum is valid, is this correct?

Also, if the above is correct, then I assume there is no need to add my own checksum calculcations?

Thanks
Neil

36
NXPTM M522XX, KINETIS and i.MX RT / USB -> Serial driver
« on: May 31, 2012, 10:36:46 AM »
Hi Mark,
  I have been using the USB to Serial driver on XP , and works well. Do you know if there is one that works on 64 bit machines?

Thanks
Neil

37
µTasker general / multiple fnInterruptMessage's
« on: April 13, 2012, 10:38:39 AM »
Hi Mark,
  What happens if there are multiple fnInterruptMessage messages for the same task , are they backed up?

Thanks
Neil

38
utFAT / compiling error
« on: February 12, 2012, 01:06:03 PM »
Hi Mark,
  I have copied the latest version of ufat to my project (still have to copy full utasker latest version) and getting an error.

The UTDISK structure has 1 change (which I changed in debug.c):
From : unsigned char  ucDiskFlags;
To: unsigned short usDiskFlags; 
When I upgrade the firmware  which is running out in the field ,will these effect any data currently stored?

Also:
Can you tell me the flags to pass to the new the following changes?

New function :
utFormat(DISK_D, ptrInput, ucFlags) 

Old Function: 
utFormat(const unsigned char ucDrive, const CHAR *cVolumeLabel)

---- Also ---
New function:
static int utReFormat(const unsigned char ucDrive, const CHAR *cVolumeLabel, unsigned char ucFlags)

Old Function :
extern int  utReFormat(const unsigned char ucDrive, const CHAR *cVolumeLabel);

-- Also --
I see there is a call to GET_SDCARD_WP_STATE() , but cant find this in my project ( I am assuming because I have to change all my project to the latest version). Can you let me know what and where this should go?

Thanks for all your help
Neil

39
utFAT / Reporting incorrect free space..
« on: November 15, 2011, 07:23:29 PM »
Hi Mark,
   I have purchased 10 off  Kingston 2GB micro SD cards, and have problem with 1 of them. When I request the disk size, and free space , I get back a strange value for the free space.  I get Disk Size=1973MB, and Free Space 4294MB. When I check it on my PC I get 1.83GB free and same for size (FAT32). The other cards I get Disk Size :1967MB  Free space 1960MB.   It still seems to work correctly , but seems a bit slower. Think this may be a faulty card, even when reporte on Windows as fine?

Below is the calculation I use.

   long Freespace=(ptrDiskInfo->utFileInfo.ulFreeClusterCount * ptrDiskInfo->utFAT.ucSectorsPerCluster * ptrDiskInfo->utFAT.usBytesPerSector)/1000000;
   long CardSize=(ptrDiskInfo->ulSD_sectors * ptrDiskInfo->utFAT.usBytesPerSector)/1000000;


Best Regards
Neil

40
utFAT / utFat version
« on: September 17, 2011, 07:31:54 PM »
Hi Mark,
  My latest version of the uFat is "24.08.2011 FAT16 cluster corrections " , can I simply copy the 3 files dated "utFAT V1.10 - 24.08.2011" into my project without any issues?

Thanks
Neil
   

41
NXPTM M522XX, KINETIS and i.MX RT / HID class on USB
« on: August 07, 2011, 05:53:46 PM »
Hi Mark,
  Just wondering if there are any plans to include the HID class on the USB (on the M5225x chip)?

Thanks
Neil

42
utFAT / if utWriteFile(..) fails..
« on: May 31, 2011, 04:43:04 PM »
Hi Mark,
  If utWriteFile(..) failes , and not due to lack of disk space (and valid handle) :

1. Is it possible that anything can be written if UTFAT_SUCCESS not returned? For example, if 600 bytes was to be written, can 512 bytes be written and ptr_utFile->usLastReadWriteLength would = 512?

2. Is it a waste of time trying to write again? Or create a new file and write the data?

Thanks
neil

43
utFAT / Making a copy of UTFILE .
« on: May 31, 2011, 03:49:16 PM »
Hi Mark,
  After a write to the SD card, I want to read the block back in to verify the data has correctly been written. Is it possible to take a copy of the UTFILE handle before the write, and then use the copy to read in the block just written to verify? Or am I best using another UTFILE variable? I am trying to avoid using useek as you mentioned this can take a bit of time to execute.

Thanks
Neil

44
utFAT / problem with SD card
« on: May 13, 2011, 09:35:33 AM »
Hi Mark,
 I have a new project where I am using a 52233 , instead of the normal 52259 processor we use. I am using a 25MHz crystal, with only SPI atmel memory chip and SD card. The SD card CS is on QSPI_CS0 (PORT_QS_BIT3) , and the memory chip is on AN7. When the application starts it comes up with "SD-card V2 - standard" then right after
"TIMEOUT!!!"
"None-formatted SD-card"

Any SD card command that is entered is followed by "TIMEOUT!!!".

I have tried changing CommandTimeout, but with no effect. I am using a multi layer board and the SD card is only about one inch away from the processor. The SD Card works fine on our 52259 project, so I know the it is fine

Thanks
Neil


45
utFAT / SD Card Timeout
« on: May 10, 2011, 07:51:05 AM »
Hi Mark,
   We have about 100 units out in the field and working fine, but we have had a couple that has had TIMEOUT messages when accessing the SD card. They have been working fine for a few weeks then suddenly got the TIMEOUT Message. We have designed a multilayer board, and the SD is about 2 inches away from the processor, so no interference is produced.

I have not upgraded to the latest version of utasker yet, I have the one before.

Regards
Neil

Pages: 1 2 [3] 4 5 ... 10