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.

CCS: Issue to Get IP address on while Compiling Ethernet webserver Demo Application on LAUNCHXL2-RM57L using GCC compiler in CCS

Other Parts Discussed in Thread: LAUNCHXL2-RM57L, HALCOGEN

Tool/software: Code Composer Studio

I am trying to Run Ethernet web-server Demo Application on  LAUNCHXL2-RM57L using GCC compiler, I have ran the web-server Demo Application on  LAUNCHXL2-RM57L using TI compiler (default with project) but as for my project requirement I wanted it to build and run with GCC compiler, I have generated HAL layer for GCC using HALCogen tool and I have successfully compiled the project but while running on the platform it's not getting the IP address after some time it just gives the hardware initialization error on console, Even delays has been increased to maximum value in lwIPInit function but that's also not working with it. As I have started to debug the issue it's able to hit the break point inside EMACCore0TxIsr ISR but it's not hitting the break point inside EMACCore0RxIsr ISR.Kindly suggest what might be the issue to run with GCC and suggest the changes needed.

  • Hello Azar,

    I am not familiar with our demo using GCC. Is C0_RX_PULSE (VIM channel 79) enabled in your HALCOGen configuration? Is the pinmux for MII_RX_CLK (pin T4 on launchpad) checked?
  • HI QJ Wang,

    Yes I have verified both the things ,C0_RX_PULSE is enabled and MI_RX_CLK is also checked on pin T4 ,the same configuration and code has been compiled and ran on LAUNCHXL2-RM57L with TI compiler.

    There is one more thing which I observed in CCS project with TI compiler rtsv7R4_T_le_v3D16_eabi.lib has been added as run time library and I have added libnosys.a as run time library for CCS project with GCC compiler .

    can you kindly suggest what might be issue is it regarding the compiler or is there anything else?
  • HI QJ Wang,

    I have verified both the things C0_RX_PULSE is enabled and also MII_RX_CLK is checked at pin T4, the same configuration and code has been executed successfully with Ti compiler on same hardware set up.

    I have observed one more thing in the demo CCS project with TI compiler rtsv7R4_T_le_v3D16_eabi.lib has been added as run time support library,to build and and Run it for GCC in CCS project I have added libnosys.a library .

    Can you kindly help me is there anything dependent on the compiler and project settings? ,if so can you suggest me the solution for it .
  • Hello Azar,

    Another thing you need to check is that RM57 is little enidian device. If you use GCC, is __little_endian__ or __LITTLE_ENDIAN__ defined?
  • Hi QJ Wang,

    I have verified RM57 is little endian device and both __little_endian__ & __LITTLE_ENDIAN__ is define in HL_sys_common.h file.

    I am still having the same isuue just because of this I am unable to process further can i get contact details of some concerned person who can resolve this issue.

    Thanks and Regards,
    Azar Awati
  • Hi Azar,

    Does the original LWIP demo work on your Launchpad using CCS ARM compiler? Can I have your GCC project so I can try using my CCS GCC compiler?