Other Parts Discussed in Thread: HALCOGEN,
Tool/software: Code Composer Studio
Dear experts.
I want to use lwIP in tms570ls3137 hdk board, I use the demo from TI provided. "HALCoGen EMAC Driver with lwIP Demonstration" , and the version is v00.02.00.
Because I have no a DHCP server, so I use the static IP address, and the replace code is as follows:
ipAddr = lwIPInit(0, macAddress, htonl(inet_addr("192.168.4.120")) , htonl(inet_addr("255.255.255.0")), htonl(inet_addr("192.168.4.1")), IPADDR_USE_STATIC );
this is the only change part and the webserver is normally running.
Then, I want to add the diagnose function such as ECC, so I add some code in the sys_startup.c. the all codes are as follows.
/*************************************************************************/
......
_coreEnableEventBusExport_();
// new add code for ECC diagnose ----start
/* Enable response to ECC errors indicated by CPU for accesses to flash */
flashWREG->FEDACCTRL1 = 0x000A060AU;
/* Enable CPU ECC checking for ATCM (flash accesses) */
_coreEnableFlashEcc_();
// new add code for ECC diagnose ----end
if ((SYS_EXCEPTION & POWERON_RESET) != 0U)
{
.......
/******************************************************************************************/
Then I use CCS7.2 to download the code into hkd board, then ESM error comes out, but the webserver function is continuously running.
The ESM error led keeps light all the time. and the ESM status register is shown in the following picture.
This is a single-bit error. But I do known why.
So I hope get some help from you.