Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

nx_ip_create problem - pointing to driver

$
0
0

I had good working code with SSP1.1.0 for network functions.  I have migrated to 1.1.3 and now I get problems with nx_ip_create:

Original code that worked in SSP 1.1.0:

void nx_ether_driver_eth0 (struct NX_IP_DRIVER_STRUCT *driver_req);
void nx_ether_driver_eth1 (struct NX_IP_DRIVER_STRUCT *driver_req);

.

.

// Create an IP instance for Ethernet port 0
status = nx_ip_create(&ip_0, "NetX IP Instance 0", gOurIpAddress_0, 0xFFFFFF00UL, &pool_0, nx_ether_driver_eth0,
ip_helper_thread_stack, IP_HELPER_STACK_SIZE, 2);
NX_SUCCESS_ERR_TRAP(status) // count error if status != NX_SUCCESS

.

Always returned SSP_SUCCESS

.

Same code in 1.1.3 returns 

NX_PTR_ERROR (0x07) Invalid IP, network driver
address, packet pool, or memory
pointer.

.

I cannot figure out how the linker associates the driver nx_ether_driver_eth0 to the actual driver in nx_renesas_synergy.c as there are no prototypes for this function in any of the header files.

.

Seems like I am supposed to use a different driver prototype.

.

Can anyone show me the proper prototype for the driver???

Thanks,

Steve D


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>