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

Pages: [1]
1
µTasker general / Re: bug in fnHandleIP
« on: April 02, 2013, 04:14:03 PM »
Hi, Mark. Thanks for the quick response. If it is right,

1. The check does not make any sense: the source IP can never be broadcast;

2. The stack will pickup any broadcast packets, and save its source IP ARP info in its limited cache, and flush the cache regularly. That is what happen to my project. I end up have to do ARP very often: less than 1minute (the refresh timeout). Can you send me a copy of your recent ip.c file. I don't think I got any service pack lately. Thanks!

Guibiao

2
µTasker general / bug in fnHandleIP
« on: April 02, 2013, 12:02:35 AM »
Hi, Mark. I use uTasker TCP/IP stack in my project. in the function fnHandleIP of file ip.c, the last part of the codes list like this:

if (uMemcmp(received_ip_packet->source_IP_address, cucBroadcast, IPV4_LENGTH)) { // Add the address to ARP cache as long as not broadcast
        fnAddARP(received_ip_packet->source_IP_address, frame->ptEth->ethernet_source_MAC, ARP_TEMP_IP);
    }   
       
    if (received_ip_packet->fragment_offset[0] & (IP_MORE_FRAGMENTS>>8)) return(0); // fragmented packets not supported
    *usTotalLength = tLen;     
    return (IP_MIN_HLEN + olen);                                         // return length of IP header

Do you think in the first line, it should be
received_ip_packet->destination_IP_address,

instead of

received_ip_packet->source_IP_address



Thanks,

Guibiao

3
STTM STM32 and STR91XF / RIDE7
« on: September 30, 2009, 12:50:23 AM »
Hi, Mark. Did you ever try to use RIDE7 to compile the STR91XF project? I cannot seem to enable the system tick INT with RIDE7. Thanks!

Guibiao

4
µTasker general / Proxy support
« on: September 28, 2009, 06:55:24 PM »
Hi, Mark. Does the uTasker has Proxy support? How does it work. If not, do you have any experience on Proxy support on uTasker? Thanks

Guibiao

Videx, Inc.

5
STTM STM32 and STR91XF / Watchdog control
« on: July 25, 2008, 04:48:57 PM »
Hi, I try to use the watchdog on the STR912. I init it by
             
SCU_PRR1  &=~WATCHDOG;
SCU_PRR1  |=WATCHDOG;
WDG_PR = 0xFF;                                                         
WDG_VR = 0x027B;
WDG_CR = WATCHDOG_EE;

then, enable it

WDG_CR |= WATCHDOG_WE;

It loads the settings, and starts to count down till reset. When I try to reload the prescale and count by

WDG_KR = 0xA55A;//WDT_FEED1;
WDG_KR = 0x5AA5;//WDT_FEED2;

I could not prevent the wdt from resetting. Please help!

Guibiao

6
µTasker general / Re: How to use the UART to get data and send data!
« on: October 19, 2007, 11:54:50 PM »
Never mind, I forgot the jumpers!

7
µTasker general / Re: How to use the UART to get data and send data!
« on: October 19, 2007, 11:33:36 PM »
Hi, Mark. When I try the simulator, the demo serial port works (get the menu after enter key). But, when I download the demo code onto the Raisonance Demo board (STR912FX). Nothing on the serial port1 (Could not see anything even with scope). Did I miss something obvious? Thanks!
 
Guibiao

8
µTasker general / Re: How to use the UART to get data and send data!
« on: September 28, 2007, 06:24:31 PM »
Hi, Mark. How difficult is it to modify the tty driver code, so in character mode, it only wakes the related task when it receives fixed number of bytes, instead checking the receiving buffer in the task code. It seems more efficient to handle UART comm with fixed length. I also like to be able to change that length easily if needed to. Thanks!

Guibiao

9
STTM STM32 and STR91XF / Re: STR91XF Pre-release
« on: September 26, 2007, 07:33:01 PM »
Hi, Mark. Finally I got the uTasker plus SSL to work on my Raisonance demo board. The SSL uses about 50KB flash and 36KB RAM. And it runs very fast. The SSL uses malloc and free, so I have to set aside a chunk of memory (about 16KB), and implement my own malloc and free. The uTasker PC simulator helps me tremendously. Thank you very much!

Guibiao

10
STTM STM32 and STR91XF / Re: STR91XF Pre-release
« on: September 12, 2007, 12:08:01 AM »
Hi, Mark. I have been trying out the uTasker for STR91XF in the last few weeks. I like it very much, especially the simulator. It also works on the Rasonance demo board. I also tried to add a SSL layer to the uTasker. So far, it works on the simulator. I may have to figure out how to deal with dynamic memory allocation problem. I may need use static memory on my SSL. I have a few questions about the uTasker:
 1. When do the release version will be ready for the STR91XF?
 2. When I try to use RIDE debug (simulator), it runs in circle:

int main(void)
{

    ptrSeed = &usRandomSeed;



static void fnSetFMI(unsigned short usConfig)
{
    uDisable_Interrupt(); 

I am very new at the tools. Maybe I miss some obvious?

 3. When I run the uTasker simulator, sometimes it crashes at

void uEnable_Interrupt()
{
#ifdef _WINDOWS
    if (!iInterruptLevel) {
        *(int *)0 = 0;                --------crash here
    }


Again, thanks for the excellent work. I am looking forward to the release version of the uTasker.

Guibiao



Pages: [1]