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 - lthyagar

Pages: [1]
1
µTasker general / backup data using the simulator
« on: October 14, 2009, 03:22:04 AM »
Hello Mark, Can I use the simulator to backup realtime data? For e.g. If have data logging application monitoring different parameters ( I have written an app that simulates this), how can I use the
simulator to save data?
Thanks!!
Lav

2
µTasker general / DMA usage on the SAM7X
« on: October 04, 2009, 05:34:50 PM »
Hello Mark, I was going through the DMA drivers for the USARTs. It looks like the drivers do not use the "Next counter" and "Next pointers" features, which causes the DMA to  re-enable the triggers, when the counter is decremented to zero. Is there a specific reason for not using this feature?
Thanks!!
Lav

3
µTasker general / displaying real time data on the webpage
« on: September 26, 2009, 03:19:39 AM »
Hello Mark, I am having trouble updating  real time data  on the webpage for the SAM7x. I did go through one of your posts on how to do it, but I still have not been able to get the data to the webpage.
What command or function does the application need to use to get the data to webserver?
How to map the data point on the application side to the webpage? for e.g. a counter value from "my task" to the webserver.

Thanks!!
Lav

4
µTasker general / Unhandled exception utasker1.3 for NE64
« on: September 19, 2009, 03:48:20 AM »
Now I am getting Unhandled exception at 0x0045018f in uTaskerV1-3.exe: 0xC0000005: Access violation writing location 0x00000069.
error at line:  tx_control[pars->Channel]->opn_mode = pars->usConfig;
Any hints will be appreciated.
Thanks!!
Lav

5
I am unable to get receive interrupts using the simulator. I have characters  coming in on COM1 on my PC. Using the debugger, the code never gets to the SCI1/0_interrupt routine.

my code snippet below:
void setUart(unsigned char mode)
{
   TTYTABLE tInterfaceParameters;       //table for passing information to driver
   
   tInterfaceParameters.Channel = SERIAL_PORT_0;  // serial 0, 1, 2,  etc.
    tInterfaceParameters.ucSpeed =  SERIAL_BAUD_4800; // baud rate
     tInterfaceParameters.Rx_tx_sizes.RxQueueSize = RX_BUFFER_SIZE;       // input buffer size
   tInterfaceParameters.Rx_tx_sizes.TxQueueSize = TX_BUFFER_SIZE;      // output buffer size
      tInterfaceParameters.Task_to_wake = 0;
   tInterfaceParameters.usConfig = (CHAR_8 | NO_PARITY | ONE_STOP | NO_HANDSHAKE |  CHAR_MODE );               
   
   if ( (SerialPortID = fnOpen(TYPE_TTY, mode, &tInterfaceParameters)) != 0 )  // open or change the channel with defined configurations (initially inactive)
      fnDriver( SerialPortID, (RX_ON | TX_ON), 0 );        // enable RX & TX
   
}


SERIAL_PORT_0  1 // map SCI0 to COM1
I have the same code running on a SAM7X code base.

Thanks!!
Lav

6
µTasker general / How to use simulator for CAN bus on SAM7X
« on: September 14, 2009, 04:28:02 PM »
Hello Mark, I have successfuly completed my first project ( GPS data)  using the utasker and simulator. I am able to display the positional, speed and bearing information on the LCD.
I am planning to start playing with CAN. How can I use the simulator with CAN bus?

Thanks!!
Lav

7
µTasker general / Simulator for serial port data
« on: September 09, 2009, 06:08:42 PM »
Hello,
This is what I am planning to do:
1) interface a Garmin GPS unit to my workstation serial port using a usb-serial converter.
2) I would like to use interrupts on the serial port, and it should interrupt on the line ending. The ISR will send a message to the GPS task to start processing.
3)  GPS task to process ( parse)  the GPS sentence.
4) Send LAT, LON and Speed over ground to LCD task.
I know how to go about steps 1, 3 and 4.
Is step 2 possible using  the simulator? At present I do not have any target hardware.

Thanks!!
Lav

8
µTasker general / inter task communication
« on: September 09, 2009, 01:33:40 AM »
Hello Mark, I was playing with the inter task communication using queues.

This is what I am doing:

fnDoLCD_com_text(E_LCD_TEXT, (unsigned char *)LCDdsp, (sizeof(LCDdsp) - 1));

The code above is executed in my task(source task). I am using the character LCD. I have disabled fnDoLCD every where else in the code to ensure that there is only one task writing to the LCD.(using the task queue).

The string is correctly displayed on the LCD in the simulator.
Question: How does the LCD task get the string from "MY TASK"?
I am confused because:
switch ( ucInputMessage[ MSG_SOURCE_TASK ] )  in the LCD task:
MSG_SOURCE_TASK= "L" meaning LCD task.
I checked the above using a breakpoint.
But the code below that:
case TASK_APPLICATION: is looking for "a"
meaning application task.
Thanks in advance.

9
µTasker general / Scheduling algorithm used in utasker
« on: September 08, 2009, 01:59:23 AM »
Hello, What is the scheduling algorithm used in utasker?
Thanks !!

Pages: [1]