hi again, so after a couple of days fighting with raw lwip porting i'am stuck again, but i did some progress. Right now i can complie and init lwip with basic project on xmega with enc28j60. Uart works, debug messages work :)
But as soon as my project is bigger than 41.50% of my flash memory everything stops working, why is that ?
After flashing with my programmer i get "0xD600 bytes written into 0x20000 bytes memory (
41.80%)." - whole program stops working but when i remove some portions of my code (not importan code) and i get for example
0xD000 bytes written into 0x20000 bytes memory (
40.62%). - everything starts to work (or at least i think so) i get on my console:
netif_set_ipaddr: netif address being changed
netif: IP address of interface set to 192.168.0.110
netif: netmask of interface set to 255.255.255.0
netif: GW address of interface set to 192.168.0.1
Starting mchdrv_init.
Driver initialized
netif: added interface IP addr 192.168.0.110 netmask 255.255.255.0
netif: setting default interface
encWBMencWBM2transmitted. 44 00 c0 00 44 00 00
sent 44 bytes.
mchinitdone
httpdinit
read with header (00 e2) db 00 c0 03.
incoming: 1 packages, first read into 3b2f
received with result 0
what can be the cause of that behaviour ?
thanks for any help, last posts were a lot of help and i'am starting to figure some things out - lwip is not easy for a begginer like me :)