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.


Messages - neil

Pages: 1 ... 6 7 [8] 9 10 ... 30
106
µTasker general / cleaning up a socket with no connection
« on: April 17, 2014, 10:50:58 AM »
Hi Mark,
  What is the best way to clean up a socket if a connection isnt established?  I do the following steps:

  1. get a socket fnGetTCP_Socket(..)
  2. then call fnTCP_Connect(..) and set a 2 second timer using uTaskerMonoTimer(..)
  3. if a connection is established, then stop timer, if not then:
        a.  fnTCP_close() is called..
        b. TCP_EVENT_CLOSED within the callback is processed and fnReleaseTCP_Socket() is called.

Should the fnTCP_close() only be carried out if a connection is made, or simply call fnReleaseTCP_Socket()?

What I am noticing is the next time I am carrying out the above for fnGetTCP_Socket() ucTCP_state = TCP_STATE_ESTABLISHED for the previous fnGetTCP_Socket()


Best Regards
Neil


107
µTasker general / single tcp callback
« on: April 16, 2014, 06:41:06 PM »
Hi Mark,
  Is it possible to have a single tcp call back for multiple sockets (when using the fnGetTCP_Socket(..) command)? I have 10 sockets, but and would like to use just the 1 callback routine. Within the call back I go through the list of active sockets checking the socket number, so I can identify which one is being serviced.

   
Thanks
Neil

108
µTasker general / Re: Link Error
« on: November 25, 2013, 05:01:45 PM »
Hi Mark,
  Just noticed , the above is when I am NOT using the boot-loader.  The below is when I use the boot loader:

MEMORY
{
    flash   (RX)   : ORIGIN = 0x00001000, LENGTH = 0x0007F800
    vectorram(RWX) : ORIGIN = 0x20000000, LENGTH = 0x00000400
    sram    (RWX)  : ORIGIN = 0x20000400, LENGTH = 0x0000FC00   
    extram    (RWX): ORIGIN = 0x2040000, LENGTH = 0x00080000    /* {2} */
    ipsbar  (RWX)  : ORIGIN = 0x40000000, LENGTH = 0x0
}


When I am using boot-loader application, doesn't this use up to location 0x1000? When I program my app after the boot-loader, I start at memory address 0x1000. I thought the boot-loader is 0x1000 bytes long?

Regards
Neil

109
µ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;
}

110
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

111
utFAT / Re: checking for file existance
« on: November 09, 2013, 06:49:02 AM »
Hi Mark
  I think it would be handy having an access(..) command similar to the windows version.

Best Regards
Neil

112
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

113
utFAT / Re: Maximum Number Files
« on: November 08, 2013, 08:11:20 PM »
Thanks Mark

114
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

115
µTasker general / Re: CDC class driver for Windows 8
« on: October 22, 2012, 11:41:10 AM »
Hi Svl,

  Thanks, cheers

Neil

116
µTasker general / Re: CDC class driver for Windows 8
« on: October 22, 2012, 11:09:13 AM »
Hi Svl,
 Thanks very much for that. Will this work on Intel and AMD chipset ? And only require the inf file? 

I havent got Windows 8 yet, but I will post the inf for it, if I get a hold of it.

Thanks

Regards
Neil

117
µTasker general / Re: CDC class driver for Windows 8
« on: October 20, 2012, 08:41:31 AM »
Hi Svl,
  I am using XP CDC, did you manage to get windows 7 64 and 32 bit versions? If so any chance of getting this info from you?

Thanks
Neil

118
µ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

119
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

120
utFAT / Re: Reporting incorrect free space..
« on: May 31, 2012, 10:35:26 AM »
Hi Mark,
  Thanks for taking a look at the card. I am wondering if this is a faulty batch, as another one of the 2GB cards displays 255MB when formatted in Windows FAT 32.

Thanks
neil

Pages: 1 ... 6 7 [8] 9 10 ... 30