im having trouble with my PIC18F67J60 µC. Im trying to send an
ethernetpacket every second or so. To record any packets on the ethernet
im using wireshark, i pluged the network cable from the develpment board
directly into my computer. I just get some DHCP-discover packets from my
computer but no packets from the PIC18 at all! I read the documentation
4times already and my resulting code looks like this:
Thank you for the link. I googled before but couldnt find anything.
But im still not able to send a package via TCP or UDP after several
hours of try and error...
I tried to flash a precompiled demo-app like discribed in the
documentation i found with your link. But there the first problem
arises; There isnt ANY demo-app or demo-code for the pic18f67J60, the
closest match i found was pic18f97f60 (this demo-app didnt work of
Then i tried to program it all by myself using the udp.h and tcp.h. I
got nothing but errors, i wasnt able to even compile my code. The
biggest problem was a file called "tcpipconfig.h", which should be
generated by the "tcpip configuration wizard" (like described in the
documentation). But still no luck...
Then i again started to search for some simple examples, but i just cant
Any ideas where i can find a simple project for my pic18f67j60 which
creates a simple packet? I just want to send one lousy packet, it cant
be this hard!
Im really desperate... :-(
1. PIC18F97J60, PIC18F87J60, and PIC18F67J60 only differ in the package
(100/80/64 pins), the bigger packages have more io ports and more UART
and MSSP units. Otherwise it's basically the same chip.
2. Use known-good hardware! Buy or borrow a Microchip Eval board and try
the demo app on that hardware.
3. I've used the stack with MPLAB 8 (the old one, not the newer MPLAB X)
and C18 compiler version 3.34. (which is NOT the newest one). I can't
tell you if the stack works at all with Hitech or the new XC8 compiler.
In doubt, use the mature, well-tested environment.
4. Try to strip down the code, remove everything you don't need, and
have a look at the UDP client and UDP server example code.
5. When you have working code on the Microchip eval board, move on to
your custom hardware.
6. Use the microchip.com forum if you can't get beyond step 4. They
obviously only can help you if you are using a Microchip devboard
(preferrably an PICDEM.net 2).