From: Leandro Lucarella Date: Sun, 4 Dec 2005 21:23:01 +0000 (+0000) Subject: Cambios estéticos al código de la facultad que solía andar. No hay cambios X-Git-Tag: 0.1-recibe-matriz-raw-por-udp~39 X-Git-Url: https://git.llucax.com/z.facultad/66.09/etherled.git/commitdiff_plain/b28157390ed405302bd3394b0ea139d1b5d70432 Cambios estéticos al código de la facultad que solía andar. No hay cambios funcionales, sólo limpieza de código. --- diff --git a/pruebas/keil/red_test_anda/etherdev.c b/pruebas/keil/red_test_anda/etherdev.c index c3a342e..141308f 100644 --- a/pruebas/keil/red_test_anda/etherdev.c +++ b/pruebas/keil/red_test_anda/etherdev.c @@ -1,3 +1,5 @@ +// vim: set et sw=4 sts=4 : + #include "etherdev.h" void sleep(unsigned char); @@ -5,19 +7,16 @@ void sleep(unsigned char); static xdata leds1 _at_ 0x0080; static xdata leds2 _at_ 0x00c0; -unsigned char uip_buf[64] = +unsigned char uip_buf[80] = { - //0x00, 0x0c, 0x6e, 0x37, 0x19, 0xbf, // MAC destino - 0x00, 0x80, 0xc7, 0x42, 0x8d, 0x27, // MAC destino + 0x00, 0x0c, 0x6e, 0x37, 0x19, 0xbf, // MAC destino + //0x00, 0x80, 0xc7, 0x42, 0x8d, 0x27, // MAC destino 0x00, 0x0c, 0x6e, 0x37, 0x19, 0xbe, // MAC fuente 0x00, 0x00, // Type }; unsigned int uip_len = 14; -/* ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» - º Private defines. º - ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ */ #define ETH_CPU_CLOCK ETH_CPU_XTAL / 12 // 8051 clock rate (X1 mode) // Delay routine timing parameters @@ -40,19 +39,11 @@ unsigned int uip_len = 14; #define ETH_MIN_PACKET_LEN 0x3C -/* ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» - º Private Function Prototypes º - ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ */ static void etherdev_reg_write(unsigned char reg, unsigned char wr_data); static unsigned char etherdev_reg_read(unsigned char reg); static void etherdev_delay_ms(unsigned int count); static unsigned int etherdev_poll(void); -//static void etherdev_timer0_isr(void) interrupt 1 using 1; - -/* ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» - º Private Macro Defines º - ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ */ // Manipulate PS1 & PS0 in CR to select RTL8019AS register page. #define ETHERDEV_SELECT_REG_PAGE(page) \ do \ @@ -61,23 +52,9 @@ static unsigned int etherdev_poll(void); etherdev_reg_write(CR, etherdev_reg_read(CR) | (page << 6)); \ } while(0) - -/* ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» - º Global Variables º - ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ */ static unsigned char tick_count = 0; -/* ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» - º Private Function Implementation º - ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ */ - -/* ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» - º º - º etherdev_reg_write() º - º º - º º - ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ */ static void etherdev_reg_write(unsigned char reg, unsigned char wr_data) { // Select register address. @@ -89,10 +66,10 @@ static void etherdev_reg_write(unsigned char reg, unsigned char wr_data) // Clock register data into RTL8019AS. // IOR & IOW are both active low. - NICE = 0; + NICE = 0; IOW = 0; IOW = 1; - NICE = 1; + NICE = 1; // Set register data port as input again. ETH_DATA_PORT = ETH_DATA_PORT_MASK; @@ -101,12 +78,6 @@ static void etherdev_reg_write(unsigned char reg, unsigned char wr_data) } -/* ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» - º º - º etherdev_reg_read() º - º º - º º - ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ */ static unsigned char etherdev_reg_read(unsigned char reg) { unsigned char rd_data; @@ -130,30 +101,14 @@ static unsigned char etherdev_reg_read(unsigned char reg) } -/* ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» - º º - º etherdev_delay_ms() º - º º - º 1 to 255+ ms delay. º - º º - ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ */ -static void etherdev_delay_ms(unsigned int count) -{ - - for(count *= ETH_DELAY_MULTPLR; count > 0; count--) continue; - - return; -} - - -/* ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» - º º - º etherdev_timer0_isr() º - º º - º This function is invoked each 1/24th of a second and updates a º - º 1/24th of a second tick counter. º - º º - ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ */ +/* + + etherdev_timer0_isr() + + This function is invoked each 1/24th of a second and updates a + 1/24th of a second tick counter. + + */ static void etherdev_timer0_isr(void) interrupt 1 using 1 { // Reload timer/ counter 0 for 24Hz periodic interrupt. @@ -167,32 +122,24 @@ static void etherdev_timer0_isr(void) interrupt 1 using 1 } -/* ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» - º Public Function Implementation º - ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ */ - -/* ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» - º º - º etherdev_init() º - º º - º Returns: 1 on success, 0 on failure. º - º Refer to National Semiconductor DP8390 App Note 874, July 1993. º - º º - ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ */ +/* + + etherdev_init() + + Returns: 1 on success, 0 on failure. + Refer to National Semiconductor DP8390 App Note 874, July 1993. + + */ bit etherdev_init(void) { // Set IOR & IOW as they're active low. IOR = 1; IOW = 1; - NICE = 1; + NICE = 1; // Set register data port as input. ETH_DATA_PORT = ETH_DATA_PORT_MASK; -#ifdef ETH_DEBUG - init_sio_poll(); -#endif /* ETH_DEBUG */ - // Configure RTL8019AS ethernet controller. // Keil startup code takes 4ms to execute (18.432MHz, X1 mode). @@ -205,27 +152,9 @@ bit etherdev_init(void) // Check if RTL8019AS fully reset. if(!(etherdev_reg_read(ISR) & RST)) { -leds1 = ~0xff; -leds2 = ~0xff; -while(1); return 0; } -/* - // Select RTL8019AS register page 3. - ETHERDEV_SELECT_REG_PAGE(3); - - // Temporarily disable config register write protection. - etherdev_reg_write(_9346CR, EEM1 | EEM0); - - // Disable boot ROM & select 10BaseT with TP/CX auto-detect. - etherdev_reg_write(CONFIG2, BSELB); - - // Select half-duplex, awake, power-up & LED_TX/ LED_RX/ LED_LNK behaviour. - etherdev_reg_write(CONFIG3, LEDS0); - // Re-enable config register write protection. - etherdev_reg_write(_9346CR, 0x00); -*/ // Select RTL8019AS register page 0. ETHERDEV_SELECT_REG_PAGE(0); @@ -252,10 +181,9 @@ while(1); // Mask all interrupts in mask register. etherdev_reg_write(IMR, 0x00); - // Obtengo MAC de la placa + // TODO Obtengo MAC de la placa //etherdev_reg_write(CR, 0x21); - // Set transmit page start. etherdev_reg_write(TPSR, ETH_TX_PAGE_START); @@ -321,29 +249,23 @@ while(1); } -/* ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» - º º - º etherdev_send() º - º º - º Send the packet in the uip_buf and uip_appdata buffers using the º - º RTL8019AS ethernet card. º - º º - ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ */ +/* + + etherdev_send() + + Send the packet in the uip_buf and uip_appdata buffers using the + RTL8019AS ethernet card. + + */ void etherdev_send(void) { unsigned int i; - unsigned char *ptr; - - ptr = uip_buf; // Setup for DMA transfer from uip_buf & uip_appdata buffers to RTL8019AS. // Select RTL8019AS register page 0 and abort DMA operation. etherdev_reg_write(CR, RD2 | STA); -leds1 = ~0x01; -i = etherdev_reg_read(CR); -leds2 = ~i; // Wait until pending transmit operation completes. while(etherdev_reg_read(CR) & TXP) continue; @@ -365,12 +287,10 @@ leds2 = ~i; // transmit buffer memory. for(i = 0; i < uip_len; i++) { - etherdev_reg_write(RDMA, *ptr++); + etherdev_reg_write(RDMA, uip_buf[i]); } // Wait until remote DMA operation complete. -leds1 = ~0x02; -leds2 = ~etherdev_reg_read(ISR); while(!(etherdev_reg_read(ISR) & RDC)) continue; // Abort/ complete DMA operation. @@ -396,16 +316,16 @@ leds2 = ~etherdev_reg_read(ISR); } -/* ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» - º º - º etherdev_read() º - º º - º This function will read an entire IP packet into the uip_buf. º - º If it must wait for more than 0.5 seconds, it will return with º - º the return value 0. Otherwise, when a full packet has been read º - º into the uip_buf buffer, the length of the packet is returned. º - º º - ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ */ +/* + + etherdev_read() + + This function will read an entire IP packet into the uip_buf. + If it must wait for more than 0.5 seconds, it will return with + the return value 0. Otherwise, when a full packet has been read + into the uip_buf buffer, the length of the packet is returned. + + */ unsigned int etherdev_read(void) { unsigned int bytes_read; @@ -422,13 +342,13 @@ unsigned int etherdev_read(void) } -/* ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» - º º - º etherdev_poll() º - º º - º Poll the RTL8019AS ethernet device for an available packet. º - º º - ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ */ +/* + + etherdev_poll() + + Poll the RTL8019AS ethernet device for an available packet. + + */ static unsigned int etherdev_poll(void) { unsigned int len = 0; @@ -599,9 +519,3 @@ static unsigned int etherdev_poll(void) return len; } - - - - - - diff --git a/pruebas/keil/red_test_anda/etherdev.h b/pruebas/keil/red_test_anda/etherdev.h index 6b21275..1770cc0 100644 --- a/pruebas/keil/red_test_anda/etherdev.h +++ b/pruebas/keil/red_test_anda/etherdev.h @@ -28,7 +28,7 @@ #include "REG51.h" -extern unsigned char uip_buf[64]; +extern unsigned char uip_buf[80]; extern unsigned int uip_len; @@ -154,8 +154,8 @@ sbit NICE = ETH_CTRL_PORT^2; // A7, usado para activar placa de red #define FIFO ETH_REG_BASE + 0x06 #define CRDA0 ETH_REG_BASE + 0x08 #define CRDA1 ETH_REG_BASE + 0x09 -#define _8019ID0 ETH_REG_BASE + 0x0A -#define _8019ID1 ETH_REG_BASE + 0x0B +#define CONFIGA ETH_REG_BASE + 0x0A +#define CONFIGB ETH_REG_BASE + 0x0B #define RSR ETH_REG_BASE + 0x0C #define CNTR0 ETH_REG_BASE + 0x0D #define CNTR1 ETH_REG_BASE + 0x0E diff --git a/pruebas/keil/red_test_anda/main.c b/pruebas/keil/red_test_anda/main.c index f63235e..43546b2 100644 --- a/pruebas/keil/red_test_anda/main.c +++ b/pruebas/keil/red_test_anda/main.c @@ -1,24 +1,4 @@ -/* ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» - º TITLE: Keil C51 v7.00 port of Adam Dunkels' uIP v0.9 º - º REVISION: VER 0.1 º - º REV.DATE: 30-01-05 º - º ARCHIVE: º - º AUTHOR: Murray R. Van Luyn, 2005. º - ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ */ - -/* ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ - ³ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS ³ - ³ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ³ - ³ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ³ - ³ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY ³ - ³ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ³ - ³ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE ³ - ³ GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ³ - ³ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, ³ - ³ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING ³ - ³ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ³ - ³ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ³ - ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ */ +// vim: set et sw=4 sts=4 : #include "main.h" @@ -27,59 +7,51 @@ static xdata leds2 _at_ 0x00c0; void sleep(unsigned char times) { - unsigned int i; - unsigned char j; - for (i = 0; i < 0xffff; ++i) - for (j = 0; j < times; ++j); + unsigned int i; + unsigned char j; + for (i = 0; i < 0xffff; ++i) + for (j = 0; j < times; ++j); } -/* ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» - º º - º main() º - º º - º Simple Web Server test application. º - º º - º º - ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ */ void main(void) { - unsigned int len; - leds1 = ~0x00; - leds2 = ~0x00; - sleep(3); + unsigned int len; + leds1 = ~0xff; + leds2 = ~0xff; + sleep(3); /* Initialise the device driver. */ if (!etherdev_init()) - while(1); // Si falla init nos quedamos bobos + while(1); // Si falla init nos quedamos bobos etherdev_send(); - leds1 = ~0xaa; - leds2 = ~0xaa; - - - // leemos -do -{ - len = etherdev_read(); - if (len) - { - leds1 = ~0x55; - leds2 = len; - sleep(2); - for (len = 0; len < uip_len; ++len) - { - leds1 = ~(1 << (len % 8)); - leds2 = ~uip_buf[len]; - sleep(5); - } - leds1 = ~0x55; - leds2 = ~0x55; - } - else - { - leds1 = ~0xff; - leds2 = ~0xff; - } -} -while (1); // Quedamos paveando forever + leds1 = ~0xaa; + leds2 = ~0xaa; + + + // leemos + do + { + len = etherdev_read(); + if (len) + { + leds1 = ~0x55; + leds2 = len; + sleep(2); + for (len = 0; len < uip_len; ++len) + { + leds1 = ~(1 << (len % 8)); + leds2 = ~uip_buf[len]; + sleep(5); + } + leds1 = ~0x55; + leds2 = ~0x55; + } + else + { + leds1 = ~0xff; + leds2 = ~0xff; + } + } + while (1); // Quedamos paveando forever } diff --git a/pruebas/keil/red_test_anda/red.plg b/pruebas/keil/red_test_anda/red.plg index cb6c7a2..0a93a39 100644 --- a/pruebas/keil/red_test_anda/red.plg +++ b/pruebas/keil/red_test_anda/red.plg @@ -7,3 +7,786 @@ Z:\home\luca\facultad\66.09\proyecto\pruebas\keil\red_test_anda\red.uv2 Project File Date: 12/02/2005

Output:

+Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?_ETHERDEV_DELAY_MS?ETHERDEV +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=83.1 xdata=8 code=1432 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?_ETHERDEV_DELAY_MS?ETHERDEV +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=83.1 xdata=8 code=1433 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?_ETHERDEV_DELAY_MS?ETHERDEV +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=84.1 xdata=8 code=1444 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?_ETHERDEV_DELAY_MS?ETHERDEV +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=81.1 xdata=8 code=1330 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?_ETHERDEV_DELAY_MS?ETHERDEV +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=82.1 xdata=8 code=1392 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?_ETHERDEV_DELAY_MS?ETHERDEV +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=82.1 xdata=8 code=1418 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?_ETHERDEV_DELAY_MS?ETHERDEV +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=82.1 xdata=8 code=1445 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?_ETHERDEV_DELAY_MS?ETHERDEV +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=82.1 xdata=8 code=1464 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?_ETHERDEV_DELAY_MS?ETHERDEV +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=82.1 xdata=8 code=1466 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?_ETHERDEV_DELAY_MS?ETHERDEV +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=83.1 xdata=8 code=1572 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +ETHERDEV.C(464): error C141: syntax error near 'bit' +ETHERDEV.C(464): error C202: 'retransmit': undefined identifier +ETHERDEV.C(488): error C202: 'retransmit': undefined identifier +ETHERDEV.C(516): error C202: 'retransmit': undefined identifier +Target not created +Build target 'Target 1' +compiling etherdev.c... +ETHERDEV.C(464): error C141: syntax error near 'bit' +ETHERDEV.C(464): error C202: 'retransmit': undefined identifier +ETHERDEV.C(488): error C202: 'retransmit': undefined identifier +ETHERDEV.C(516): error C202: 'retransmit': undefined identifier +Target not created +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?_ETHERDEV_DELAY_MS?ETHERDEV +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=84.1 xdata=8 code=1637 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?_ETHERDEV_DELAY_MS?ETHERDEV +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=84.1 xdata=8 code=1633 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?_ETHERDEV_DELAY_MS?ETHERDEV +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=81.1 xdata=8 code=1466 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?_ETHERDEV_DELAY_MS?ETHERDEV +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=81.1 xdata=8 code=1390 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?_ETHERDEV_DELAY_MS?ETHERDEV +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=81.1 xdata=8 code=1386 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?_ETHERDEV_DELAY_MS?ETHERDEV +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=81.1 xdata=8 code=1386 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling main.c... +linking... +*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS + SEGMENT: ?PR?_ETHERDEV_DELAY_MS?ETHERDEV +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=81.1 xdata=8 code=1386 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +ETHERDEV.C(270): error C141: syntax error near 'bit' +ETHERDEV.C(270): error C202: 'seguir': undefined identifier +ETHERDEV.C(272): error C202: 'seguir': undefined identifier +ETHERDEV.C(278): error C202: 'seguir': undefined identifier +ETHERDEV.C(279): error C141: syntax error near 'bit' +ETHERDEV.C(279): error C202: 'retransmit': undefined identifier +ETHERDEV.C(303): error C202: 'retransmit': undefined identifier +ETHERDEV.C(331): error C202: 'retransmit': undefined identifier +ETHERDEV.C(491): error C202: 'seguir': undefined identifier +compiling main.c... +Target not created +Build target 'Target 1' +compiling etherdev.c... +ETHERDEV.C(279): error C141: syntax error near 'bit' +ETHERDEV.C(279): error C202: 'retransmit': undefined identifier +ETHERDEV.C(303): error C202: 'retransmit': undefined identifier +ETHERDEV.C(331): error C202: 'retransmit': undefined identifier +Target not created +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=94.2 xdata=8 code=1329 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=94.2 xdata=8 code=1427 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=95.2 xdata=8 code=1425 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=95.2 xdata=8 code=1457 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +compiling main.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=98.1 xdata=8 code=1110 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +ETHERDEV.C(328): error C202: 'uip': undefined identifier +compiling main.c... +Target not created +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=98.1 xdata=8 code=1138 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=98.1 xdata=8 code=1161 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=98.1 xdata=8 code=1168 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +ETHERDEV.C(389): error C202: 'header': undefined identifier +Target not created +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=95.1 xdata=8 code=1036 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=95.1 xdata=8 code=1021 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +compiling main.c... +linking... +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=90.1 xdata=8 code=1043 +creating hex file from "red"... +"red" - 0 Error(s), 2 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=90.1 xdata=8 code=1060 +creating hex file from "red"... +"red" - 0 Error(s), 2 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=90.1 xdata=8 code=1061 +creating hex file from "red"... +"red" - 0 Error(s), 2 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +ETHERDEV.C(391): warning C280: 'current': unreferenced local variable +linking... +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=90.1 xdata=8 code=1241 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=90.1 xdata=8 code=1272 +creating hex file from "red"... +"red" - 0 Error(s), 2 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=90.1 xdata=8 code=1345 +creating hex file from "red"... +"red" - 0 Error(s), 2 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +compiling main.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=95.1 xdata=8 code=1383 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +ETHERDEV.C(10): error C231: 'uip_buf': redefinition +Target not created +Build target 'Target 1' +compiling etherdev.c... +compiling main.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** ERROR L107: ADDRESS SPACE OVERFLOW + SPACE: DATA + SEGMENT: ?DT?ETHERDEV + LENGTH: 0068H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT + SYMBOL: UIP_LEN + SEGMENT: ?DT?ETHERDEV +*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT + SYMBOL: UIP_BUF + SEGMENT: ?DT?ETHERDEV +Program Size: data=133.1 xdata=8 code=1312 +Target not created +Build target 'Target 1' +compiling etherdev.c... +compiling main.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=111.1 xdata=8 code=1295 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=111.1 xdata=8 code=1213 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +ETHERDEV.C(342): error C202: 'i': undefined identifier +ETHERDEV.C(344): error C202: 'i': undefined identifier +ETHERDEV.C(345): error C202: 'i': undefined identifier +Target not created +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=111.1 xdata=8 code=1327 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=111.1 xdata=8 code=1309 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=111.1 xdata=8 code=1238 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=111.1 xdata=8 code=1148 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=111.1 xdata=8 code=1151 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=111.1 xdata=8 code=1201 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=111.1 xdata=8 code=1228 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +compiling main.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=111.1 xdata=8 code=1263 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +compiling main.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=111.1 xdata=8 code=1260 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=111.1 xdata=8 code=1270 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s). +Build target 'Target 1' +compiling etherdev.c... +linking... +*** WARNING L15: MULTIPLE CALL TO SEGMENT + SEGMENT: ?PR?ETHERDEV_SEND?ETHERDEV + CALLER1: ?PR?ETHERDEV_NIC_ISR?ETHERDEV + CALLER2: ?C_C51STARTUP +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 0080H + TO: 0081H +*** WARNING L6: XDATA SPACE MEMORY OVERLAP + FROM: 00C0H + TO: 00C1H +Program Size: data=111.1 xdata=8 code=1233 +creating hex file from "red"... +"red" - 0 Error(s), 3 Warning(s).