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

Pages: 1 2 [3] 4
31
NXPTM M522XX, KINETIS and i.MX RT / Malloc proble...
« on: June 11, 2009, 01:47:12 PM »
Hi

I have been trying to use the malloc function in the uTasker system, but with no luck.
When I call the malloc function with the size that I want to allocat e.g. malloc(hdr.stp).

Malloc are called but the problem is that the value that I use ac parameter are change from e.g. 2536 to 0x20007F14.

I have tried almost everything also the thing mention in http://www.utasker.com/forum/index.php?topic=96.0.

Any suggestion?

Regards Steen

32
Thanks Mark

I will give it a try and see whan happens.

Regards Steen

33
Hi Mark

Have tried to increase the NO_OF_HTTP_SESSIONS to 10 and it looks mutch bether now.

I will do some more testing and get back with the result.

But regarding the question on number of NUMBER_OF_RX_BUFFERS_IN_ETHERNET_DEVICE and NUMBER_OF_TX_BUFFERS_IN_ETHERNET_DEVICE, is this a fix number or can it be change ant still have a reliable system. Alternative can the size of LAN_BUFFER_SIZE be change?
The reason for the question is that I need extra SRAM for my application 

Regards Steen

34
NXPTM M522XX, KINETIS and i.MX RT / Re: HEAP and uTasker HEAP?
« on: May 20, 2009, 07:18:39 AM »
Hi Mark

The uTasker Heap and stack are probably 'fictional' sectors since there are no defines for these (did you get the values from the memory command when the project was running?). These two areas are essentially shared from the remaining SRAM.
See also: http://www.utasker.com/forum/index.php?topic=96.0
This was basically the explanation I was looking for, but was not able to find it, thanks. :D
And yes I was reading out the sectors from the debugger when the project was running.

The main thing was to understand the two HEAP sectors and to gain more SRAM for my application.

Ones again thanks..

Regards Steen



35
NXPTM M522XX, KINETIS and i.MX RT / HEAP and uTasker HEAP?
« on: May 19, 2009, 02:37:37 PM »
Hi Mark
I have been having a look at what part of my project that uses my RAM and have stumped over some things I do not understand.
In the µTasker operating system basics - V1.3 document, you describe how the memory is located in the available RAM.

When I look at my RAM (In the .xMAP file) I have the following sections:
20000000 - 200003FF, Vector RAM
20000400 - 20001E50, Static variables
20001E60 - 20002E60, HEAP
20002E60 - 20007A60, uTasker HEAP
20007A61 - 20008000, System stack

The parts I do not understand are the Vector ram and especially the HEAP.
Vector RAM are not mention in your documentation, but I expect that this are processor related?

The part that wonder me are that HEAP part, I can see that it is not used by the uTasker, but what part of the system are then using this RAM?

Regards Steen


36
NXPTM M522XX, KINETIS and i.MX RT / Re: Http server and missing images
« on: April 03, 2009, 03:04:32 PM »
Hi Mark.

Have just tried to increase the number of NO_OF_HTTP_SESSIONS to 10, but it looks like the HEAP are out of room in my app. :(

I have tried to se what is using all the memory, and can see that NUMBER_OF_RX_BUFFERS_IN_ETHERNET_DEVICE and NUMBER_OF_TX_BUFFERS_IN_ETHERNET_DEVICE takes quiet some space.
Can i reduce this and still have a good preformenc?

Regard Steen

37
NXPTM M522XX, KINETIS and i.MX RT / Re: Http server and missing images
« on: April 02, 2009, 08:07:51 AM »
Hi Mark

I am still struggling with this problem, and are finally come to a part where I think that I can see a pattern and have theory.
But to prove my theory I need some one (Read you  ;)) to help me.
I have for some time been focus on the data that are transmitted between the browser and the uTasker and found that all data are good and that valid.

My search for the problem has gotten me to the part where I have tried difference scenario:
1:       
        //#define HTTP_WINDOWING_BUFFERS     2
        //#define HTTP_IGNORE_PARTIAL_ACKS
        #define NO_OF_HTTP_SESSIONS        1
In this case the http speed are slow and that are expected. But when using this configuration multiple images/files are not transmitted to the browser and it is very constant.

2:       
        #define HTTP_WINDOWING_BUFFERS     2
        #define HTTP_IGNORE_PARTIAL_ACKS
        #define NO_OF_HTTP_SESSIONS        2
The speed is moderate and the images/file is transmitted most of the times received.

3:       
        #define HTTP_WINDOWING_BUFFERS     4
        #define HTTP_IGNORE_PARTIAL_ACKS
        #define NO_OF_HTTP_SESSIONS        3
The speed is high and the all the images/file are transmitted and well received by the browser.

When looking at this information I get the idea that when we have high speed and the browser never is turned down when asking for data everything is perfect.
But at low speed the browser are “turned” down some times in a wrong way and this gives the missing images/files.

So my guess it that some were in the fnHTTPListener, request that can not be handled by the uTasker are handled wrong.
Dos this makes sense or do I have a point?
See the tcp dump as ref.

Regards
Steen

38
Hi Mark
I know that it sounds weird, and if It was not because that I can see it with my own eyes I will have a hard time believing it as well. ;)

When I have done my developing I am using the M52235EVB_ROM and when using the bootloader I am using the bare_min_app_rom in the CodeWarrior.
The reason for the post, was that I kind out of ides, regarding the funny behavior.

My hope was that you could say that in the bootloader a part of the processer was turned on doing the bootloader part, and this part was not turned off again.
But it looks like I need to do some more digging. :-\

Regards
Steen
     

39
NXPTM M522XX, KINETIS and i.MX RT / Noice on ADC when using bootloader
« on: February 27, 2009, 01:28:04 PM »
Hi,

Have just made a project where i use the ADC to sample data.

I then have an upper and a lower signal limit to detect changes in the signal.

My basic problem is that when I development the filter i found the upper and lower limit by test and this was great ;-).
Now after I added the bootloader to the project i found that there are more noise on the ADC than before i use the bootloader. ???

I have tried some time with the same code but with and without the bootloader and it looks like the bootloader do a difference?

Any suggestion?

Steen

40
NXPTM M522XX, KINETIS and i.MX RT / Http server and missing images
« on: January 30, 2009, 08:34:00 AM »
Hi Mark
Have been playing with the HTTP server for a while and got it to work with a SD card.
My problem is now that all the images on my web page are not loaded every time and there are no consistent in witch images there are missing.
I am using it together with dynamical web pages as well, but even when I disable this part the images are not appearing as well.
When I debug the fnDoWebPage function I can see that the missing images not are requested in this function.
But that most strange is that it when using Wireshark to track the communication between the computer and the controller, it dos not looks like the image is “requested”???

Any ideas?

Steen

41
NXPTM M522XX, KINETIS and i.MX RT / Re: Serial data are lost..
« on: December 15, 2008, 09:24:26 AM »
hi mark

In which direction is the data being lost (RS232 Tx or RS232 Rx?)

The data are lost in the RS232 Rx direction only.

When I send e.g. "o---- Ping", 2 or 3 byte in the middle of the data are missing.

I do not transmit any debug data while this is happening.

I have tried to use DMA on the serial port, but then I was receiving no data at all. (Properly be course I was doing something wrong  ;) )

In my eyes it looks like an interrupt that are not handled and therefore data are lost. But I have no ideas on how to prow this theory? 

Hope you can push me in the right direction?

Regards
Steen

42
NXPTM M522XX, KINETIS and i.MX RT / Serial data are lost..
« on: December 11, 2008, 12:29:18 PM »
Hi Mark

I am trying to make a TCP to RS-232 gateway.
I have a been using some of the examples from this forum and the changed a bit...

It all looks perfect when testing the gateway, but when i try to use the FTP or HTTP server data is lost.

After tracking this problem a bit I found that it actually are data from the RS-232 port that are missing.
The set up of the serial ports are like this:
Code: [Select]
    tInterfaceParameters.Channel = i;                            // set UART channel for serial use
    tInterfaceParameters.ucSpeed = SERIAL_BAUD_9600; // 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.usConfig = (CHAR_8 + NO_PARITY + ONE_STOP + CHAR_MODE);
    tInterfaceParameters.Task_to_wake = OWN_TASK;                        // wake self when messages have been received
   
    if ((ucGateway[i].SerialPortID = fnOpen( TYPE_TTY, FOR_I_O, &tInterfaceParameters )) != 0) { // open or change the channel with defined configurations (initially inactive)
        fnDriver( ucGateway[i].SerialPortID, ( TX_ON | RX_ON ), 0 );                  // enable rx and tx
    }

As you can see the speed of the serial communication are low so I expect that data are lost some ware between the RX buffer and the task that are handling my application.

Do you have any suggestions

Regards Steen

43
µTasker general / Re: Slow FTP download
« on: November 13, 2008, 01:04:23 PM »
Hi Mark

No problem, just want to give my input to a great system.
Lokking forward to the "new" release, and will continuing my work with the FAT system I have found..

Regards

Steen

44
µTasker general / Re: Slow FTP download
« on: November 13, 2008, 12:21:28 PM »
Hi Mark

Great work.

Will test your final code and get back to you with the result.

Have you concideret to implement a SD card with FAT file system on?
As you properly can se form my other post this is the way I am going and it looks like a good/cheap (1 GByte SD card 1.78$) way to store data!
I know that it takes more code space but so fare i only see that I gain new function when i use HTTP server an so on ... :)


Regards

Steen Larsen
 

45
NXPTM M522XX, KINETIS and i.MX RT / Re: SD-CARD
« on: November 12, 2008, 09:00:00 AM »
Hi Fabio,

Have implemented the use of the a FAT system using the FatFS file system (http://elm-chan.org/fsw/ff/00index_e.html).
In my effort to gain as much speed of the system as possible I was wondering when kind of transfer speed you got when accessing the card?

I have on my development board reach 341 Kbyte/s when writing and used 2048 byte of buffer.

Hope to hear from you.

Regards
Steen

Pages: 1 2 [3] 4