Access to ethernet buffer with C
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
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