W5500 question
Posted: Thu Jan 30, 2020 7:21 pm
Hi,
So I have another feather device that I'm trying to learn on, which is W5500 based. I'm using it with the 32U4 (using a dedicated programmer now, which works with avrisp from within FC). Using the webserver example, are the initialize and CreateServerSocket macros the barebones needed to be able to connect from a browser for testing? I've been trying for a couple days to get it connected, but am having no luck.
I'm able to ping the device with the IP that I've configured within the component, no problem. I just can't seem to connect any other way. Even with specifying the port (80).
When compiling, it says successful, but also seeing a lot of messages. Are all of these normal?:
C:\Users\lab1\DOCUME~1>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega32u4 -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\Users\lab1\DOCUME~1\Flowcode1.elf" "C:\Users\lab1\DOCUME~1\Flowcode1.c" -lm -Wl,-gc-sections
In file included from C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\includes.c:1068,
from C:\Users\lab1\DOCUME~1\Flowcode1.c:346:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:146:3: warning: #warning "Important user information. Please read."
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:147:3: warning: #warning "Hardware SPI may cause a lockup in your program if Hardware SS Pin is left as an input!";
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:148:3: warning: #warning "Suggest using the SS pin as the CS pin to ensure no lockup."
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:149:3: warning: #warning "SS pin must be set to an output or pulled high before initialising the SPI."
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:150:3: warning: #warning "Refer to the device datasheet for the SPI hardware SS pin.";
C:\Users\lab1\DOCUME~1\Flowcode1.c: In function 'FCD_0ece1_Webserver_W5500__ParseParamValue':
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c: In function 'FCD_0ece1_Webserver_W5500__SetOutValue':
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c: In function 'FCD_0ece1_Webserver_W5500__GetInValue':
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 1 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c: In function 'FCD_0ece1_Webserver_W5500__Write_String':
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 1 of 'FCD_0ece1_Webserver_W5500__Write_String_Var' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 1 of 'FCD_0ece1_Webserver_W5500__Write_String_Var' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 1 of 'FCD_0ece1_Webserver_W5500__Write_String_Var' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c: In function 'FCD_0ece1_Webserver_W5500__ResetInValues':
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c: In function 'FCD_0ece1_Webserver_W5500__Initialise':
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avr-objdump.exe" -S "C:\Users\lab1\DOCUME~1\Flowcode1.elf" 1>"C:\Users\lab1\DOCUME~1\Flowcode1.lst"
C:\Users\lab1\DOCUME~1>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avr-size.exe" -B -d "C:\Users\lab1\DOCUME~1\Flowcode1.elf"
text data bss dec hex filename
1270 244 169 1683 693 C:\Users\lab1\DOCUME~1\Flowcode1.elf
Compilation successful!
Thanks,
Tom
So I have another feather device that I'm trying to learn on, which is W5500 based. I'm using it with the 32U4 (using a dedicated programmer now, which works with avrisp from within FC). Using the webserver example, are the initialize and CreateServerSocket macros the barebones needed to be able to connect from a browser for testing? I've been trying for a couple days to get it connected, but am having no luck.
I'm able to ping the device with the IP that I've configured within the component, no problem. I just can't seem to connect any other way. Even with specifying the port (80).
When compiling, it says successful, but also seeing a lot of messages. Are all of these normal?:
C:\Users\lab1\DOCUME~1>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega32u4 -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\Users\lab1\DOCUME~1\Flowcode1.elf" "C:\Users\lab1\DOCUME~1\Flowcode1.c" -lm -Wl,-gc-sections
In file included from C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\includes.c:1068,
from C:\Users\lab1\DOCUME~1\Flowcode1.c:346:
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:146:3: warning: #warning "Important user information. Please read."
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:147:3: warning: #warning "Hardware SPI may cause a lockup in your program if Hardware SS Pin is left as an input!";
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:148:3: warning: #warning "Suggest using the SS pin as the CS pin to ensure no lockup."
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:149:3: warning: #warning "SS pin must be set to an output or pulled high before initialising the SPI."
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\/AVR\AVR_CAL_SPI.c:150:3: warning: #warning "Refer to the device datasheet for the SPI hardware SS pin.";
C:\Users\lab1\DOCUME~1\Flowcode1.c: In function 'FCD_0ece1_Webserver_W5500__ParseParamValue':
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c: In function 'FCD_0ece1_Webserver_W5500__SetOutValue':
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c: In function 'FCD_0ece1_Webserver_W5500__GetInValue':
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 1 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c: In function 'FCD_0ece1_Webserver_W5500__Write_String':
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 1 of 'FCD_0ece1_Webserver_W5500__Write_String_Var' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 1 of 'FCD_0ece1_Webserver_W5500__Write_String_Var' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 1 of 'FCD_0ece1_Webserver_W5500__Write_String_Var' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c: In function 'FCD_0ece1_Webserver_W5500__ResetInValues':
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c: In function 'FCD_0ece1_Webserver_W5500__Initialise':
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1\Flowcode1.c warning: passing argument 3 of 'FCI_SCOPY' discards qualifiers from pointer target type
C:\Users\lab1\DOCUME~1>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avr-objdump.exe" -S "C:\Users\lab1\DOCUME~1\Flowcode1.elf" 1>"C:\Users\lab1\DOCUME~1\Flowcode1.lst"
C:\Users\lab1\DOCUME~1>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avr-size.exe" -B -d "C:\Users\lab1\DOCUME~1\Flowcode1.elf"
text data bss dec hex filename
1270 244 169 1683 693 C:\Users\lab1\DOCUME~1\Flowcode1.elf
Compilation successful!
Thanks,
Tom