[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] lwIP on TM4C1294 Connected Launchpad - TCP/IP Problems

From: Bryan Womack
Subject: [lwip-users] lwIP on TM4C1294 Connected Launchpad - TCP/IP Problems
Date: Mon, 5 Oct 2015 16:07:20 -0700

Hey all,
I have been working on some code for this Tiva C series Launchpad  and I have been running into some issues. My goal is to have a TCP server running on the embedded system that opens a connection to a single client and then sends a data stream to the client until the client disconnects.
I am using the lwIP raw API and I have pieced together some example code into something that I feel should be working, but is not. I am able to send TCP packets to a telnet client and I am observing the throughput using SmartSniff to watch the packets go by. I am only able to get about 7.8 Kilobytes/s...
There is some sort of problem that occurs with the CPU when I try to enqueue a buffer that is larger than ~400 bytes.
The set up is something like this:
Initialize --> Listen for connection --> Accept Connection --> Send data --> (from tcp_sent callback) Send data <--
The data that is being sent is just a static array of unsigned 8-bit integers of a size that I choose. It is strange because the CPU gets a fault interrupt when the previously mentioned array is larger than ~400 bytes. This doesn't make sense to me because my max segment size is much greater than 400 bytes (1460 bytes).
Does anyone have an idea of what is going wrong?
For reference, I have attached my lwipopts.h

Attachment: lwipopts.h
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]