Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- From the calloc error message, it looks like you don't have enough memory for the embedded system. You can try and reduce the number of buffers in ipport.h, increase the size of your onchip_mem, or connect the Nios CPU to an external RAM (if you have one on board). --- Quote End --- Thanks a lot. I followed your advise and the result seems to be better. But when i ping the board with cmd or telnet, there seems to be no connection. The following shows the Nios II Console content: interniche portable tcp/ip, v3.1
copyright 1996-2008 by interniche technologies. all rights reserved.
prep_tse_mac 0
your ethernet mac address is 00:16:36:fc:14:2d
static ip address is 192.168.1.234
prepped 1 interface, initializing...
[tse_mac_init]
info : tse mac 0 found at address 0x00203000
info : phy national dp83848c found at phy address 0x1f of mac group[0]
info : phy[0.0] - automatically mapped to tse_mac_device[0]
info : phy[0.0] - restart auto-negotiation, checking phy link...
info : phy[0.0] - auto-negotiation passed
info : phy[0.0] - restart auto-negotiation, checking phy link...
info : phy[0.0] - auto-negotiation passed
info : phy[0.0] - checking link...
info : phy[0.0] - link established
info : phy[0.0] - speed = 100, duplex = full
ok, x=0, cmd_config=0x01000000
mac post-initialization: cmd_config=0x05000203
[tse_sgdma_read_init] rx descriptor chain desc (1 depth) created
mctest init called
ip address of et1 : 192.168.1.234
created "inet main" task (prio: 2)
created "clock tick" task (prio: 3)
simple socket server starting up
[sss_task] simple socket server listening on port 30
created "simple socket server" task (prio: 4)