Quantcast
Channel: Renesas Synergy Platform
Viewing all articles
Browse latest Browse all 23645

Forum Post: RE: NETX with S7G2 - Stuck on _nxe_tcp_socket_create

$
0
0
Hello, TCP port number in TCP server application is specified as the 2nd argument passed into nx_tcp_server_socket_listen. To use semaphores in the NetX thread, you'll need one place where the semaphore is put (using tx_semaphore_put/tx_semaphore_ceiling_put) and another one where you retrieve it (using tx_semaphore_get). Getting the semaphore can also block a thread indefinitely until such semaphore is received by specifying a TX_WAIT_FOREVER timeout argument. When using SK-S7, make sure that the reset pin for the channel 1 is set to IOPORT_PORT_08_PIN_06 and that interrupt for ethernet is also enabled in sf_el_nx. If you're using EL source (ThreadX, NetX), make sure to define NX_DISABLE_INCLUDE_SOURCE_CODE in the preprocessor seettings, otherwise you won't be able to build the project. Forcing a full project clean is also a good idea - this is done by deleting the Debug folder in your project and rebuilding it. Regards

Viewing all articles
Browse latest Browse all 23645

Trending Articles



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