Jump to content

santinelli

Members
  • Content Count

    6
  • Joined

  • Last visited

  1. yes I will try to do some tests with the Ti compiler and/or mspgcc. thank you!
  2. Thank you very much for the useful advice, now I am able to build the project without errors, I only get 2 warning messages that seem not to be too important (??). The bad news is that the code doesn't work. After download and run it, when I push the button (P1.3) the system send the DHCP request but doesn't get success. The strange thing: on the board, the LED named ACT doesn't blink at all! (the others, SPD, LINK, DUP are on). I have tried to disable the DHCP request commenting out the firsts line of code in order to statically set IP address: still I am not able to ping the board. 0) Here it is the DHCP dialog: Beginning: Waiting for PHY: PHY up dhcp_loop_configure(): Sending DHCPDISCOVER dhcp_send_packet(): Our MAC = 00:08:DC:04:03:00 dhcp_loop_configure(): Waiting for DHCPOFFER dhcp_loop_configure(): RXrecv = 0, virtualRXrecv = 0 dhcp_loop_configure(): RX_RD = 0, RX_WR = 0, TX_RD = 250, TX_WR = 250 dhcp_loop_configure(): Loop count 500 out of 500 dhcp_loop_configure(): TIMEOUT dhcp_loop_configure returned error: DHCPlib Timeout Waiting for Reply 1) The first warning messages : --------------------------------------------------------------------------------------------------------------------------------------------------------------------- ../dhcplib.c: In function 'dhcp_send_packet': ../dhcplib.c:251:2: warning: passing argument 3 of 'send' from incompatible pointer type [enabled by default] send(sockfd, NULL, (uint16_t *)scratch, 1); // Submit SEND command to commit the packet over the wire ^ In file included from ../dhcplib.h:27:0, from ../dhcplib.c:23: ../w5500.h:181:7: note: expected 'u_int *' but argument is of type 'uint16_t *' u_int send(u_char s, const u_char * buffer, u_int * length, u_char retry); ^ 'Finished building: ../dhcplib.c' --------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2) The second one : --------------------------------------------------------------------------------------------------------------------------------------------------------------------- ../dnslib.c: In function 'dnslib_gethostbyname': ../dnslib.c:270:2: warning: passing argument 3 of 'send' from incompatible pointer type [enabled by default] send(sockfd, NULL, &udp_pkt_len, 1); // Submit SEND command to commit packet over the wire ^ In file included from ../dnslib.c:24:0: ../w5500.h:181:7: note: expected 'u_int *' but argument is of type 'uint16_t *' u_int send(u_char s, const u_char * buffer, u_int * length, u_char retry); ^ ---------------------------------------------------------------------------------------------------------------------------------- I have tried to change the casting from ('uint16_t *) to ( u_int *). The warning messages disappears but the system still hangs..... Strange, when I use the CCS Ti native compiler the same code works fine !! Does both compiler (native Ti and GCC ) coexist on the same CCS installation ? Thank you for your patience !! Paolo
  3. santinelli

    Ethernet Booster Pack msp430g2553 and Energia

    Actually it's an interesting solution, It becomes even more arduous to choose between a small microcontroller with an easy to learn architecture and a powerful one. TM4C129 Tiva-C Connected Launchpad is a very powerful and very cheap board, of course the microcontroller it's a bit complex to be proposed at young students as example of cpu architecture and I fear that the cpu architecture is too complex to be programmed in assembly. Usually I propose the students to spend some time playing with assembly language in order they can better understand how a cpu works.Maybe it's time to jump ahead and to spend the mental energy to deal with problems of higher abstraction level instead to work at low abstraction level. It's hard to choose Thanks
  4. Good Morning, sorry for my question I have just installed CCS v6.0.1.00040 if I use the gcc compiler to compile the "robg-w5500-with-dhcplib" I get the reported error. If instead to use gcc I use the Ti compiler I don't get any error. It seems to be related with the linker script! Please, could you tell me some suggestions in order to fix the problem ? Thank you very much. Paolo **** Build of configuration Debug for project eth_gcc **** "c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 'Building target: eth_gcc.out' 'Invoking: GNU Linker' "c:/ti/ccsv6/tools/compiler/gcc_msp430_4.8.371/bin/msp430-elf-gcc.exe" -mmcu=msp430g2553 -Os -g -gstrict-dwarf -Wall -Wl,-Map,"eth_gcc.map" -o"eth_gcc.out" "./dhcplib.o" "./dnslib.o" "./main.o" "./msp430server.o" "./w5500.o" "./wizdebug.o" -T"../msp430g2553.ld" -Wl,--start-group -l"c" -l"gcc" -Wl,--end-group c:/ti/ccsv6/tools/compiler/gcc_msp430_4.8.371/bin/../lib/gcc/msp430-elf/4.8.0/../../../../msp430-elf/bin/ld.exe: eth_gcc.out section `.text' will not fit in region `ROM' c:/ti/ccsv6/tools/compiler/gcc_msp430_4.8.371/bin/../lib/gcc/msp430-elf/4.8.0/../../../../msp430-elf/bin/ld.exe: section __reset_vector loaded at [0000fffe,0000ffff] overlaps section .text loaded at [0000d038,00010015] c:/ti/ccsv6/tools/compiler/gcc_msp430_4.8.371/bin/../lib/gcc/msp430-elf/4.8.0/../../../../msp430-elf/bin/ld.exe: region `ROM' overflowed by 130 bytes collect2.exe: error: ld returned 1 exit status gmake: *** [eth_gcc.out] Error 1 gmake: Target `all' not remade because of errors. **** Build Finished ****
  5. santinelli

    Ethernet Booster Pack msp430g2553 and Energia

    Thanks for your fast replay, I am going to have a look at the MSP430F5529 LaunchPad. I have compiled the C code from @RobG using the IAR 5.51.4 code limited version, The web server works fine when I use telnet to mimic an http GET request, in this case the server provides the right response (the xml file); when I use chrome to access at the web server, sometimes I get a strange response (all the xml tag seems to be removed) and this error "net::ERR_CONNECTION_RESET" appears in the crome console. I will try to install and use CCS. Thank. Paolo
  6. Good Morning, sorry, for this basic question: I am a teacher and I would like start using with the students, msp430g2553 Launchpad + EthernetBoosterPack V3. What is the best solution in terms of development environment under windows (what C compiler)? Does Energia supports EthernetBoosterPack with msp430g2553 ? Thank in advance. Paolo
×