This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I'm trying to program ethernet capabilities to my existing TI code. Right now my code just uses the NHET driver, however I would like to be able to toggle the program on and off via ethernet, and be able to adjust values within my code via ethernet as well. I'm new to using the TI device, and don't have a clue what drivers to enable in halcogen or what code to use in CCS. I tried following the LWIP demo, but failed miserably, I cannot seem to get that demo going either. So if someone can walk me through the steps required to get ethernet communication going that would be really appreciated.
Thanks in advance
2313.LWIP+HET.zipI tried to integrate my Het program into the LWIP demo but I'm not getting any output from the pins. Even in trigger mode I get nothing. I dont know if maybe something in the LWIP demo is interfering with the het program, I tried stepping through the code and I do go over the het program and write into the memory the pulse values but it's not putting anything out in the pins.
Hi Anthony,
So in the sys_main.c file in the LWIP demo, theres only two calls in void main(). The first is gioInit(), and then it goes to EMAC_LwIP_Main(emacAddress). Now I opened the declaration for EMAC_LWIP_Main and followed what was going on. But it seems like all that does is executes the static web page that is displayed. This demo does not toggle any LEDs or anything like that as far as I know, and I have stepped through the code to see but I didnt find any calls to turn any LED's on or off. I also tried putting my N2HET code before the EMAC_LWIP_Main call to atleast have the program do my code first then load the webserver, and when I step through the code I can see my program being read and loaded to memory but nothing gets output through pin 2 for the het1 driver, but the webserver still loads fine.
Thanks
Jawwad,
These errors:
#1965 cannot open source file "httpserver_raw/httpd.h" io_fs.c /Build-LAUNCHXL2-570LC43 line 28 C/C++ Problem
#1965 cannot open source file "httpserver_raw/httpd.h" lwip_main.c /Build-LAUNCHXL2-570LC43/example/hdk/src line 33 C/C++ Problem
#1965 cannot open source file "lwiplib.h" lwiplib.c /Build-LAUNCHXL2-570LC43/lwip-1.4.1/ports/hdk line 46 C/C++ Problem
Usually mean that there is an error or folder missing from the Include paths in the project compiler build properties.
Make sure that there is a path in the -I options list that will allow the compiler to find each of the files listed.
And note that the 'httpserver_raw/httpd.h' #include directive has part of the path in it, So the compiler include path needs to point to the folder
where the 'httpserver_raw' folder lives, not where the httpd.h file lives'.
Jawwad,
Well, in fs.h the function prototype for fs_open (it's declaration) is:
struct fs_file *fs_open(const char *name);
and in io_fs.c the function itself is defined as:
struct fs_file *fs_open(const char *pcName)
{
....
}
So they match for me. Did you edit either of these so that they do not match each other?
-Anthony
Hi Jawwad,
We don't normally do webex sessions.
Make sure you are connecting to the correct COM port. You can look at the properties of the XDS110 to see which is tied to the "Application/User" port. You need to use that COM port, not the Auxiliary Data port.
See below - use the port marked in red. For my case this is COM3.
I'll paste an example of the screen cap from the UART in a minute so you can see what information it prints.
Ok so here is a screenshot of the working (RM57 so little endian) setup I have, but with the ethernet cable completely disconnected.
You can see that the first couple steps ... communicating with the phy .. succeed. But then the phy cannot
establish a link to the remote device (PC or switch) and so we fail on trying to establish that link.
Would be good to know if your setup also gets this far or if it fails prior to this.
Hi Anthony,
I am using the correct COM port. For me it is COM13
And this is what I do in Putty:
And I get nothing in the output.
I know you usually dont do webex and screen sharing, however I'm certain I'm following all the steps that were highlighted by you, and also getting fairly the same result (in terms of build) but I'm not getting anything out which is odd.
Thanks
Hi Anthony,
So I updated the linker file, and now the demo works! I had all the settings done correctly in the debug flash settings menu, however the actual sys_link file was not the right one.
Thank you for your help!