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.

Setting up ethernet interface in RM48 HDK using Halcogen

Other Parts Discussed in Thread: HALCOGEN

Hi,

I am trying to implement very basic communication between PC and RM48 HDK through Ethernet interface. I tried following the lwIP example but I am not able to use it mainly because,

1. it needs a DHCP server (it worked when i connected it to PC through a router but not directly. It is necessary because eventually i need to communicate between 2 controllers)

2. I cant modify the index.html file without fsdata throwing an error.

So I am looking for a simple example or procedure to implement direct transfer of data from the controller to PC though ethernet interface. Just numbers or matrices. 

Also what is the procedure to implement this directly from Halcogen. Because the example doesn't include .hcg file. and I am not sure what all settings have to be made on Halcogen.

Thank you,

Agraj

PS: Problem 1 is more important than problem 2 :)

  • Hi Agraj,

    I am forwarding this query to our team that can help you better.

    Regards, Sunil

  • Hi,

    I managed get around the 1st problem by using a static IP. Only thing the inet_addr was reversing the IP. So now by replacing 

    ipAddr = lwIPInit(0, macAddress, 0, 0, 0, IPADDR_USE_DHCP);

    with

    ipAddr = lwIPInit(0, macAddress,inet_addr("2.0.168.192"), inet_addr("0.255.255.255"), inet_addr("1.0.168.192"), IPADDR_USE_STATIC);

    I have got the first part.

    For the second part, I have narrowed it down to some fault with the makefsdata.c The fsdata,c gives an error 

    ORIGINAL:

    const struct fsdata_file file__images_hercules_extranet_landing_page_png[] = { {
    file_NULL,
    data__images_hercules_extranet_landing_page_png,
    data__images_hercules_extranet_landing_page_png + 44,
    sizeof(data__images_hercules_extranet_landing_page_png) - 44
    }};

    NEW:

    const struct fsdata_file file__images_hercules_extranet_landing_page_png[] = { {
    file_NULL,
    data__images_hercules_extranet_landing_page_png,
    data__images_hercules_extranet_landing_page_png + 44,
    sizeof(data__images_hercules_extranet_landing_page_png) - 44,
    1}};

    This conversion happens even when there is absolutely no change in index.html and the makefsdata,exe is run. even changing it back still gives an error. 

    The error it shows is Too many initializer values.

    Please help me understand this and modify the file.

    Thank you,

    Agraj

  • It is resolved.

    It was due to 2 header files fsdata.h and _fsdata.h being in the include folder.