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 ... 4 5 [6] 7 8 ... 10
76
NXPTM M522XX, KINETIS and i.MX RT / changing serial settings..
« on: September 19, 2009, 11:54:42 AM »
Hi Mark,
  I change the settings of the serial port using fnOpen( TYPE_TTY, MODIFY_CONFIG, &tInterfaceParameters ) command, but sometimes I have to change the handshaking. After fnOpen(..) is called  with the MODIFY_CONFIG, can I simply use the below to switch on CTS and RTS?

            fnDriver( PortID, (MODIFY_INTERRUPT | ENABLE_CTS_CHANGE), 0 );
            fnDriver( PortID, (MODIFY_CONTROL | SET_RTS), 0 );   

When changing back to non handshaking mode, how do I disable the above?

Regards
Neil

77
NXPTM M522XX, KINETIS and i.MX RT / Atmel SPI flash
« on: September 16, 2009, 11:37:01 AM »
Hi Mark,
  I have a board where I use a port extender chip from Maxim, and one of the outputs control the *reset pin of the Atmel SPI Flash. This works fine, but I forgot that the bootloader wont work, as the IIC is not used, therefore the extender cant be programmed to bring the device out of reset. If I connect the reset pin directly to 3.3v, do you see a problem? This means I can reset the chip, but wonder if there is ever a need to do so. 

As its just a prototype board, I have 1 pin left , so I can connect it to pin AN2 (pin 68) of the 52259 (144 pin version), and wondering how the bootloader would handle this?

Neil

78
NXPTM M522XX, KINETIS and i.MX RT / setting up utasker for external RAM
« on: September 04, 2009, 03:16:31 PM »
Hi Mark,
  I have a 512k ram connected to the mini-flexbus on the 52259. How do I set this up within utasker?

Thanks
Neil

79
NXPTM M522XX, KINETIS and i.MX RT / Disabling Rx Port
« on: August 07, 2009, 04:00:06 PM »
Hi Mark,
  I am using one of the Uart connected to a RS485 chip, what ever gets sent out on the tx line also goes onto the rx line, as its half duplex. I set a break in the tx line before sending a command and would like to disable the RX line at the start of the break, and enable it after the breakis complete. I dont mind the characters being returned as I can ignore them, but dont want the break line coming back in.

Is the best way to solve this is to use fnDriver( SerialPortID, RX_OFF , 0 ); , turn back on using the MODIFY_CONFIG?

Is there need to do a fnFlush( SerialPortID, FLUSH_RX); after a MODIFY_CONFIG?

Rgrds,
Neil

80
NXPTM M522XX, KINETIS and i.MX RT / serial port
« on: July 22, 2009, 04:02:31 PM »
Hi Mark,
  I have to communicate to a device at 1200 baud,1 start, 7 data bits,1 parity (even), 1 stop bit. Before I start communicating I have to send a break for 12ms , which is a high on the data pin.  Would the best way to do this is to set the serial to I/O, set the pin state, and after the 12ms set back into serial mode?

If so, what state are the TX/RX lines when changing to I/O (and visa versa)? Would it be better placing pullups/pulldowns so these are in a known state between changing modes?

Regards
Neil

81
NXPTM M522XX, KINETIS and i.MX RT / sftp
« on: July 12, 2009, 08:49:48 PM »
Hi Mark,
  Is it possible to have secure ftp ?

Neil

82
µTasker general / fnInterruptMessage
« on: June 26, 2009, 09:30:12 AM »
Hi Mark,
  I have a task that has to do 1000 checks, but instead of doing them all in one task I was thinking of seperating each check by using the fnInterruptMessage command. After each check I would call fnInterruptMessage, then do the next one , and so on until all 1000 are completed.

After the fnInterruptMessage is called, will the task be called straight away or is it put at the back of the list of tasks to be carried out?

Neil


83
µTasker general / Ethernet Callback routines
« on: June 25, 2009, 09:14:42 PM »
Hi Mark,
  Is Ethernet callback routines a task, or called from directly from an interupt?  I have some variables that cant be allowed to interact with other variable.

Regards
Neil

84
NXPTM M522XX, KINETIS and i.MX RT / Ethernet Buffer Size
« on: June 25, 2009, 10:12:09 AM »
Hi Mark,
  I have an application that uses TCP, and UDP communication. I receive 4 packets of data of size 305 bytes, right after each other, and can have this for TCP and UDP.

I have the following defines:
#define NUMBER_OF_TX_BUFFERS_IN_ETHERNET_DEVICE         2                // allocate 2 buffers for transmission
#define NUMBER_OF_RX_BUFFERS_IN_ETHERNET_DEVICE         6                // allocate 6 (full) buffers for reception

What size are these buffers?

Also, In my listner routine as follows:
int fnUDP(USOCKET SocketNr, unsigned char ucEvent, unsigned char *ucIP, unsigned short usPortNr, unsigned char *data, unsigned short usLength)

I parse the data of the packet received. Am I better copying the data straight away to another buffer before parsing? Before the listner routine is called, is the frame copied to a buffer and the pointer (*data in my case) pointing to the buffer?

Regards
Neil

85
NXPTM M522XX, KINETIS and i.MX RT / Surge protector on Ethernet
« on: June 24, 2009, 06:47:48 PM »
Hi Mark,
  I have my 52259 connected to a device through an Ethernet connection. The devices ethernet connection goes through a surge protector then to  a ethernet socket where I plug my cat5 cable into.

Works fine most of the time, but they mention that my board has to be earthed as well as 0v, and use shielded  CAT5 cable. I have never used the earth on any of my boards, and not sure if by connecting earth directly to 0v would cause any problems with the Ethernet, or any other parts on my board (All works well without Earth). Have yo ever come accross this, and would it cause any problems by including an Earth?

Regards
Neil

86
µTasker general / Adding to ARP entry
« on: June 08, 2009, 09:17:05 PM »
Hi Mark,
I have a device connected directly to my board, and communicate to it via UDP communication. Sometimes it takes a while getting communication with it. I know the mac and ip address of the unit, is it possible to add them directly to the ARP table?

Regards
Neil

87
NXPTM M522XX, KINETIS and i.MX RT / Paramter system
« on: June 04, 2009, 05:48:31 PM »
Hi Mark,
  Im away to start looking at the using the parameter block for saving network, and my own variables. This wont be updated in the field, only carried out before leaving our offices so we wont be using SWAP system.

1. PARAMETER_BLOCK_START - I assume this is the start of the parameter block location? In my case I am using the 52259, so will be pointing to the last page of the 512k internal flash memory?

2. TEMPORARY_PARAM_SET - I see this is set at 0x8000, what is this used for?

3. As I want to add to the PARS parameter , I will use the TEMPPARS structure as this holds the network and the PARS structures. I will always be saving boath at the same time so do I do the following:

      TEMPPARS cparameters;
     ..... copy the values across here..
   fnDelPar(INVALIDATE_TEST_PARAMETER_BLOCK);
        fnSetPar((unsigned short)(PAR_NETWORK), (unsigned char *)&cparameters, sizeof(TEMPPARS _PARAMETERS));

4. And to load the parameters, I can use the default on the application.c:

   fnGetOurParameters_1() 
which will use default originally, then after we set them they will load and use the new values

  5. After we update the paramters, we wont be doing it again, as we will be uploading firmware changes. So in this case will the parameter block never be overwritten?

Regards
Neil

88
µTasker general / TCP_EVENT_REGENERATE
« on: May 31, 2009, 08:06:48 AM »
Hi Mark,
  On my tcp connection there are occasions when the TCP_EVENT_ACK is never called. In this case will a TCP_EVENT_REGENERATE be called instead, indicating lost frame? If so, do I simply resend the the packet like so:

int fnToServerTCP(USOCKET Socket, unsigned char ucEvent, unsigned char *ucIp_Data, unsigned short usPortLen)
{
   TCP_MESSAGE message;
   unsigned char Value;
   int Loop;
   
    switch (ucEvent) {

    case TCP_EVENT_REGENERATE:
                if(!uMemcpy((CHAR*)&message.ucTCP_Message,&ucIp_Data[0], usPortLen))
                                 if (fnSendTCP(Socket, (unsigned char *)&message.tTCP_Header, usPortLen, TCP_FLAG_PUSH) > 0)
                                   return APP_SENT_DATA;
                break;
   ..


Regards
Neil


89
NXPTM M522XX, KINETIS and i.MX RT / cf flasher for 52259
« on: May 23, 2009, 06:09:32 PM »
Hi mark,
  Just wondering if you have heard anything regarding an update of cf-flasher for the 52259?

Regards
Neil

90
µTasker general / TCP_EVENT_ABORT called when closing
« on: May 21, 2009, 01:37:31 PM »
Hi Mark,
    If a fnTCP_close(..) is called but the server connected to doenst respond properly, is  TCP_EVENT_ABORT always called? Is the timeout value in the fnGetTCP_Socket(..) command used?

Neil

Pages: 1 ... 4 5 [6] 7 8 ... 10