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 ... 7 8 [9] 10
121
µTasker general / serial task
« on: November 06, 2008, 01:10:48 PM »
Hi Mark,
  I have a serial port task set for character mode.  Am I right in thinking, that when data is coming in from the serial port it is placed in its internal buffer (defined in RxQueueSize variable during initialisation of the port), and within the serial task, it is then simply read in with the 'fnRead( SerialPortID, &ucInputMessage[0], 1)' command (I read in 1 byte at a time). Is it the same with the output? The size is defined with the TxQueueSize variable during initialisation of the port, and a fnWrite(SerialPortID, ....) writes to the internal buffer , and through interupt it is sent out (if DMA not used)

Neil

122
NXPTM M522XX, KINETIS and i.MX RT / Libraries
« on: November 01, 2008, 10:44:15 AM »
Hi Mark,
  This isnt a utasker question, but was wondering if you can point me in the right direction?

I am using codewarrior 7.1, and was trying to find out information on what libraries to link in, and is utasker (I have simply converted the demo that you have written), compiled in a certain model (ie Large etc..)?. I cant seem to find any information on this.

Any advice on this?

Thanks
Neil

123
NXPTM M522XX, KINETIS and i.MX RT / using the GPT inputs
« on: October 27, 2008, 12:47:06 PM »
Hi Mark,
  I want to use the GPT module for input capture, what is the best way to do this within utasker?

Thanks
Neil

124
NXPTM M522XX, KINETIS and i.MX RT / Using Ethernet Status as I/O
« on: October 19, 2008, 06:38:54 AM »
Hi Mark,
   I have a project using the 55235, and want to use the Collision,RX, and TX status outputs as standard inputs and and outputs (want to use the speed and duplex only outputs). Is there anything within utasker I have to enable/displabe to allow me to do this?

Neil

125
µTasker general / utasker commands..
« on: October 07, 2008, 02:20:18 PM »
Hi mark,
  I have now moved to codewarrior 7.1, and also starting a new project. With this version my code locks up when a memcpy(..) command is processed. I noticed in the demo that there is a uMemcpy(..) which works fine. What utasker commands are there ?

I have linked in :
fp_coldfire.a
c_4i_cf_msl.a
c_4i_cf_runtime.a

and to get floating point I done:

 change file ansi_prefix.CF.size.h as follows:
#define _MSL_FLOATING_POINT     1
//#define _MSL_NO_MATH_LIB                    0
#undef _MSL_NO_MATH_LIB
#endif

#define _MSL_FLOATING_POINT_IO    1

Neil

126
NXPTM M522XX, KINETIS and i.MX RT / power consumption
« on: September 25, 2008, 09:32:24 AM »
Hi Mark,
  We have a project that uses the ethernet but only for about 1 minute in every 10. To reduce power (approx 300ma),I would like to switch off the PHY , then every 10 minutes switch back on, make connection, transmit data, then switch off again. How is this done in utasker?

Many thanks
Neil

127
NXPTM M522XX, KINETIS and i.MX RT / fresh project
« on: September 18, 2008, 09:27:37 AM »
Hi mark,
  I am about to start a fresh project (just for testing), on my own board. Is there any I/Os that are used (for demo and eval boards) in utasker that I have to be aware of,as  I use varoius pins on my own board.

Thanks
Neil

128
NXPTM M522XX, KINETIS and i.MX RT / Extra Ethernet Port
« on: September 17, 2008, 05:26:02 PM »
Hi mark,
  Is it possible to have 2 ethernet sockets on a board, paralled up, connected to the 5223x chip? This would save us having to put in a switch. Just not sure if this is possible, or we will get collision . One ethernet will be connected to another board, and, the other port will be connected to a local network.

Neil

129
µTasker general / spi flash test failed
« on: September 16, 2008, 09:57:17 PM »
Hi Mark,
  When checking the new SP8 project the fnTestSPIFLASH(..) returned 'FLASH TEST FAILED' . Looking at the code it failed on the code :
     fnWriteBytesFlash(TEST_DEVICE, test_buffer1, SPI_FLASH_PAGE_LENGTH);
    fnGetParsFile(TEST_DEVICE, test_buffer2, SPI_FLASH_PAGE_LENGTH);


To test the spi chip (only 1 on my board, dont have demo or eval) I added the following in the M52233X.c file:

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);
}

and within the fnTestSPIFLASH(..) I replaced the   fnWriteBytesFlash(..)and  fnGetParsFile(..) with:
    WriteToPage(2,test_buffer1) ;
   ReadFromPage(2,test_buffer2);

And worked fine.

Any ideas what can be the problem?

Neil

130
Hi,
  Im starting to use the SPI filesystem, and getting compiling errors. I made changes as discussed in the 'ufilesystem in SPI Flash' and got the following errors:

Error   : macro 'FILE_GRANULARITY' redefined
(included from:
 types.h:76
 config.h:414
 M5223X.c:65)
app_hw_m5223x.h line 68       #define FILE_GRANULARITY (1024)                                      // File made up of 1k byte FLASH blocks 

Error   : undefined identifier 'M95XXX_WRITE_ENABLE'
M5223X.c line 2310       static const unsigned char ucWriteEnable[] = {M95XXX_WRITE_ENABLE, TERMINATE_WRITE}; // enable write 

Error   : function has no prototype
M5223X.c line 2318           fnWaitWriteComplete();                                           // wait until free to write 

Error   : function has no prototype
M5223X.c line 2324           fnWriteBytesEEPROM(ptrEEPROM, 0, EEPROM_PAGE_SIZE);              // delete a page 

And quite a few more, but didnt list them here.

Neil

131
NXPTM M522XX, KINETIS and i.MX RT / cts and rts
« on: September 08, 2008, 02:33:46 PM »
Hi Mark,
  I am using the CTS and RTS on UART1 (com2) as digital pins, but whatever I do it doesnt make any difference. After the serial port gets setup, without hardware handshake , I then do the following:
 
 PUBPAR=0x5; //set tx and rx as primary functions and cts/rts as io
 DDRUB=0x4;  //set rts as output,cts as input
 PORTUB=0;//set rts pin to 0.

at this stage, I check the voltage level of the rts pin, and its high.
When I display the value of PORTUB, I get 4 indicating rts pin is high.
If I apply 3.3v to the cts pin, and also display PORTUB, I still get 4.

Any ideas what I am doing wrong? I have checked the pins and all are correct.

Neil

132
NXPTM M522XX, KINETIS and i.MX RT / flushing serial buffer
« on: September 08, 2008, 01:39:13 PM »
Hi mark,
  What is the best way to flush the serial buffer?

Neil

133
µTasker general / mono timer within serial task
« on: September 08, 2008, 12:24:49 PM »
Hi Mark,
  I have a serial task where a string is sent through a serial port, and expects a reply within 2 seconds. Within the task I send the string and start a timer as follows:
uTaskerMonoTimer( TASK_OWNSERIAL, (DELAY_LIMIT)(2*SEC), E_TIMER_TIMEOUT );// start monitor timer

If I get a reply within the 2 seconds, how do I stop the timer from trigering the task?

Neil

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

135
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?

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