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 ... 25 26 [27] 28 29 30
391
NXPTM M522XX, KINETIS and i.MX RT / Re: SD-CARD
« on: August 20, 2008, 04:00:56 PM »
Hi ,
  I got down to the root problem. I am using a micro SD card, and got some pin connections wrong .I didnt do enough search for micro SD pinouts..   :-[

Neil

392
NXPTM M522XX, KINETIS and i.MX RT / Re: SD-CARD
« on: August 18, 2008, 07:40:54 PM »
Hi Neil
You can find a lot of information in the link
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/efsl_arm/index.html
http://sourceforge.net/forum/forum.php?forum_id=447844

specificattions are in
http://www.sdcard.org/about/memory_card/pls/Simplified_Physical_Layer_Spec.pdf

best regards
fabio

Hi Fabio,
 I have been trying with no luck to communicate with an SD card using the SPI bus. After power is supplied I send it 0x40 0x00 0x00 0x00 0x00 0x95 to send it into spi mode, and whiche the chip select is low, I send it 0xff tillI get a reply.

I have stuck it on the logic analyser, and all the signals look perfect, except I dont get anything from the SD card ack. in spi mode. So I failed at the first hurdle.

Did you program it with spi mode? If so, how did you initialise the card?

Thanks
Neil

393
µTasker general / Re: Placing MAC address in spi flash.
« on: July 04, 2008, 11:53:08 AM »
Hi Rad,
  Thanks for the reply ,we will have another look at the Docs. We are not using a demo board, we have designed our own board with various other components, and all working fine.

Regards
Neil

394
µTasker general / Re: Placing MAC address in spi flash.
« on: July 04, 2008, 11:37:10 AM »
The MAC address and other Internet data are stored in the parameter system. The parameter system can be located in internal or external SPI FLASH. Will you not be able to use it as it is? The MAC address can be changed via serial interface or web server (or any other means you would like to add) so possibly you don't have to do anything new(?).

Hi mark,
  Thanks for the info.  I must be not be fully understanding this. I assume when the system first boots up, the details from the parameter block is used to initialise the mac address etc, which is located in flash (as it is compiled with the application)and is defined as a 'static const'?
How can I change this instead of rebuilding the whole code?

Thanks
Neil

395
µTasker general / Placing MAC address in spi flash.
« on: July 01, 2008, 07:06:52 PM »
Hi Mark,
 We are planning to have many units out in the field , and dont want to hardcore the MAC address ,and other internet info. But instead would like it to be stored in SP flash memory, and when the system boots up, reads from there the required details. We will have a routine that will allow us to enter the MAC address and save into the flash memory first.

Regards
Neil

396
NXPTM M522XX, KINETIS and i.MX RT / spi chip selects
« on: June 19, 2008, 07:21:24 PM »
What benefits are there from not allowing the QSPI to automatically deal with the chip selects?

397
NXPTM M522XX, KINETIS and i.MX RT / Re: file system
« on: June 06, 2008, 11:25:18 AM »
Hi Mark,
  Thanks for the reply.

At the moment, I am about to try the bootloader sequence using the external memory, then onto file systems. At this point I will go through the details on Skype  with yourself, which is greatly appreciated,thanks.

Our project will be using GPRS modules to communicate, through serial port. There will be times when we wish to upload new firmware remotely, and was thinking of simply sending the new code using our own protocol, in chunks of 264 bytes, then saving to relevant pages in external memory. After all pages sent, then simply remotely force a processor reset, which in turn will load in new code to processor. Will this work okay? And is it possible to use encryption this way?

Regards
Neil


398
NXPTM M522XX, KINETIS and i.MX RT / file system
« on: June 04, 2008, 05:43:16 PM »
Hi Mark,
  I am about to use an Atmel SPI memory chip for remote program updates. I plan to keep aside the 256KB (for future plans), and use the rest. Is it possible to have a file system that starts after the 256 KB?  I also plan to have a second Atmel SPI chip, and is it possible to have the second chip (full 1MB) file system too?

Thanks
Neil

399
NXPTM M522XX, KINETIS and i.MX RT / Re: Low level SPI memory access
« on: June 04, 2008, 11:23:41 AM »
Hi Mark,
  Thanks for the above.

I have added 2 functions to the M5223x.c file to read and write to a page. I done the following:

void WriteToPage(unsigned long ulPageNumberOffset, volatile unsigned char *ucData)
{   
   fnSPI_command(WRITE_BUFFER_1, ulPageNumberOffset, ucData,SPI_FLASH_PAGE_LENGTH);
   fnSPI_command(ERASE_PROG_FROM_BUFFER_1, ulPageNumberOffset, ucData,SPI_FLASH_PAGE_LENGTH);
}

void ReadFromPage(unsigned long ulPageNumberOffset, volatile unsigned char *ucData)
{   
   fnSPI_command(CONTINUOUS_ARRAY_READ, ulPageNumberOffset << 9, ucData,SPI_FLASH_PAGE_LENGTH);
}


It works fine, but I wanted to check with you to make sure that there wont be any problems doing the above.

Thanks
neil

400
NXPTM M522XX, KINETIS and i.MX RT / Low level SPI memory access
« on: June 03, 2008, 04:48:36 PM »
Hi mark,
  I have 1 Atmel SPI AT45041 memory chip on CS0, and would like to access it by Page Number only. I am converting some code I have used on another processor, where I simply use the page numbers. I simply read in a page to internal buffer, modify it, and write the page back. Is there low level commands to read in a page, write to a page etc...

Thanks
neil

401
µTasker general / Re: Starting/stoping/continuing task...
« on: June 03, 2008, 01:05:02 PM »
Hi Mark,
  Thanks, that worked..

Neil

402
µTasker general / Re: Starting/stoping/continuing task...
« on: June 03, 2008, 12:05:18 PM »
Hi Mark,
  I am starting my first task again (had a break for quiet a few months from utasker, another project came up, but now have time to start working on it again), and looked at this thread.

What I wish to do (just to get familiar with tasks again), is to have a serial task woken up with every key pressed. After the first key is pressed, a 5 second timer is set, and I have to press 'Enter' before the 5 seconds elapsed.

The task gets woken up okay with the key pressed, but doesnt get called when timer times out, here  is what I done:

#define TASK_OWNSERIAL         'O'
{ "OSerialComm",fnTaskSerialComm, SMALL_QUEUE,   0, 0,  UTASKER_STOP},     // and have included in node.

set up serial port to wake up task 'fnTaskSerialComm' when key pressed with following line:
tInterfaceParameters.Task_to_wake = TASK_OWNSERIAL;

Task rountine:
#define E_TIMER_TIMEOUT 1
void fnTaskSerialComm(TTASKTABLE *ptrTaskTable)
{
     unsigned char       ucInputMessage[RX_BUFFER_SIZE];                  // reserve space for receiving messages
     char Tmp[10];
     static char RecReturn=0,TimerOn=0;
     QUEUE_HANDLE        PortIDInternal = ptrTaskTable->TaskID;           // queue ID for task input
    
    while ( fnRead( PortIDInternal, ucInputMessage, HEADER_LENGTH ))
    {   // check input queue
        switch ( ucInputMessage[ MSG_SOURCE_TASK ] )
        {                   // switch depending on message source
           case TIMER_EVENT:                                                // timer event
               if (E_TIMER_TIMEOUT == ucInputMessage[ MSG_TIMER_EVENT ])
              { 
               if(!RecReturn) //only if Enter key not pressed.. BUT also left this out to make sure below called, but didnt work
                fnDebugMsg("\n\r   ** RET NOT ENTERED IN 5 SECONDS ** \n\r");
           
               RecReturn=TimerOn=0;   
            }
        }
    }
    
//serial catch here... simply display 'pressed' if a key is pressed...
     while (fnMsgs(SerialPortID))
     {
          fnRead( SerialPortID, &ucInputMessage[0], 1) ;
          if(ucInputMessage[0]==13)           
            RecReturn=1;
          
                 fnDebugMsg("pressed");
          
              if(!TimerOn)
          {
               uTaskerMonoTimer( TASK_OWNSERIAL, (DELAY_LIMIT)(5*SEC), E_TIMER_TIMEOUT );// start monitor timer
            TimerOn=1;
          }
   }
}



I tried removing the 'if(!TimerOn) ' and 'if(!RecReturn)' , and press key once,just to  make sure the timer gets called. But The timer never times out. I never get 'fnDebugMsg("\n\r   ** RET NOT ENTERED IN 5 SECONDS ** \n\r");'

I set  a breakpoint at when the timer gets called, so I know it does get called, and when it does, I then set breakpoint at start of task to catch timeout , which never gets called..

Can you point me to where I am going wrong?

Thanks
Neil

403
NXPTM M522XX, KINETIS and i.MX RT / Re: board gets very hot..
« on: June 02, 2008, 09:10:32 PM »
Hi Mark,
   I can use a 5v Input, and this would be better. I just worry in case clients use a 12v input, even though we recommend a 5v input, but something we can think of.

I see you can get small heatsink that can be placed onto the chip , and cheap. Have you ever used these?

Regards
Neil

404
NXPTM M522XX, KINETIS and i.MX RT / Re: board gets very hot..
« on: June 02, 2008, 08:33:31 PM »
Hi mark,
  The input voltage is 12v, so we are getting 2.6W of power. If we use a 3.6 Rth   heatsink, then (if I am right), temperature increases 3.6 deg. with every watt. So  2.6 * 3.6= 9.36 deg. + room temprature 25 deg = 34.36 deg.  As this will not go above 70deg, hopefully be okay , but hell of a hot to touch (so I wont touch).

I noticed on the schematic of the demo board shows a heat pad, but noticed that the chip doesnt have one, or am I missing it?

Regards
neil

405
NXPTM M522XX, KINETIS and i.MX RT / board gets very hot..
« on: June 02, 2008, 03:32:35 PM »
Hi,
  I have designed a simple board which uses the ethernet, serial and Atmel 1M serial chip with the M52233 chip (my first , simple project). I have a 1.5A 3.3v regulator with quite a large heat sink connected.  I looked at my power supply, and its drawing approx 300ma (which I expect as I am using the tcp 100MB stack). But the chip gets very hot along with the heat sink, has anyone else experienced this? My worry is that this small project is going all over the world, and in hotter countries, there might be thermal runnaway.

Thanks
Neil

Pages: 1 ... 25 26 [27] 28 29 30