Re: Access to ethernet buffer with C

"Kris Ardis" <Kristopher.Ardis-6tN4nzCoH/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <00c401c3eb41$648d2880$764000b4@kardis>
Keil has an address space limitation of 8MB, so FFE000 is too high for it to
address.  You could easily write a little 8051 to read from this area.

Kris

----- Original Message -----
From: <[email protected]>
To: <tini-6tN4nzCoH/[email protected]>
Sent: Wednesday, February 04, 2004 8:58 AM
Subject: [TINI]Access to ethernet buffer with C


>
> Hello!
> How can I access the ethernet buffer on my
> DS80C400 with Keil C?
>
> I tried:
>
> unsigned char far * receiveBuffer = 0xFFE000;
> for(i = 0; i < 256; i++)
>     printf("%2bx", *(receiveBuffer + i));
>
> But this code don?t access the right memory location.
> The setting of IDM1 and IDM0 in MCON is 10 -> 8KB
> buffer = FFE000-FFFFFF.
> Is there something wrong in my Keil settings?
>
> If I change IDM1/IDM0 to 00 I can access the
> buffer with this pointer:
>
> unsigned char far * receiveBuffer = 0x01E000;
> The one in the address is correct!
>
> But the library UDP functions (in my case sendto and
> recvfrom) don?t work.
> Is that the normal behavior?
>
>
> Configuration:
> TINIM400
> Keil 7.07 with LX, AX enabled
>
>
> Any hints?
>
> TIA
> steph
> _______________________________________________
> TINI mailing list
> TINI-6tN4nzCoH/[email protected]
> To UNSUBSCRIBE, edit your profile, or see list archives:
> http://lists.dalsemi.com/mailman/listinfo/tini
>


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.