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.

SD card file download Problem

Hi Everyone,

I have got a project that using Concerto F28M35H52C1 board and TIRTOS. The project aims to download a file which is around 27MB from the SD card through http and IP. The webpage is shown in the figure below. When "download" is pressed, file starts to be downloaded from the SD card. However, downloading process always stops at around 5.6MB which is not accomplished. Can anyone help to solve this problem? The CCS code and files on the SD card are attached. Please try it. The steps are listed as below.

1. Unzip the files and copy the two files (index.html and Albatern.csv) into the SD card.

2. Change the program mac setting to your MAC address of the Concerto.

3. After running the program, just type in the IP address: 192.168.2.10 (I am using Firefox)

Many Thanks in Advance!

Ben

6013.SDCard.rar6661.File On SD card.rar

  • Ben,

    Thanks. I've downloaded your project files and working on replicating this issue. I'll get back to you.

    Moses

  • Thanks Moses, I am looking forward to your reply.

    Cheers,

    Ben

  • Bin,

    I believe I do not have everything I need to be able to replicate your issue. The steps I took so far were

    1. Imported your project and got it to build. I had to exclude ccsbs.c from the build for it to work. I didn't see it being used anywhere else in the project.
    2. In empty.cfg, I used DHCP instead and commented out your static IP assignment of 192.168.2.10.
    3. I was then able to ping the board successfully but when I entered the IP address in my browser, I got a 404 error.
    4. My expectation was that entering the IP address in my browser will serve the index.html file located on the SD card but the 404 means that no index.html file was found. Looking at webpage.c (which is from our concerto demo) I saw that only the getTime.cgi page was added in the AddWebFiles function and the line to add index.html was commented out.
    5. Entering  IP_Address/getTime.cgi to my web browser worked but I don't see any code to serve the index.html file on the SD card.

    Let me know if there's anything else I'm missing

    Moses

  • Hi Moses,


    Thanks for your reply. Yes, you are quite right. I am sorry that I forgot one thing to tell you to change about it. If a index.html placed in the SD card needs to be accessed, a few more steps need to be changed. Please check my previous post as the link below.

    http://e2e.ti.com/support/embedded/tirtos/f/355/p/292751/1027879.aspx#1027879

    This post is about the HttpSever example made by Todd Mullanix. Please download the zip file and check the PPT presentation from page 41 to page 48. I think my project will not work if ccsbs.c is not included because the ffcon.h file had been changed to read index.html in the SD card. In his presentation page 45, it explains the same 404 error as you got. So please follow his step in page 47 and page 48, and I think you will get it. Please let me know if you can get it or not.

    Hope you can make it work and I am looking forward to discussing with you.

    Regards,

    Bin

  • Bin,

    I have it working. I'm able to click download and have the entire AlbaTERN.csv file download from the SD card. I didn't make any changes to your project besides changing from static IP to DHCP. I followed the steps from the PowerPoint slides to make the necessary changes to ffcon.h (_USE_LFN set to 3 and _CODE_PAGE set to 437).

    Can I get the version of TI-RTOS you are using? Have you tried it in a different browser, say Google Chrome? (I have it working on both Chrome and FireFox) 

    Moses

  • Hi Moses,

    The version of my TIRTOS version is 1_10_00_23 and the CCS version is 5.5. I tried to use different browser but got the same result.

    I also tried DHCP this morning, and it is working as you indicated. However, to my application, concerto board is used offshore and data is transmitted through wireless such as wifi. So I have no idea how to configure it in DHCP, if you could have any idea on how to do it ? Instead, could you please set the IP address to be static such as 192.168.2.10, and see if you can get the same result as me.

    I am looking forward to your reply.

    Many Thanks,

    Bin

  • Bin,

    I set my application to use static IP and still have it working. I'm using the most recent TI-RTOS version available, that's the only thing different I can see. I can try it out with your version and encourage you to download and test it with the most recent version. I'll get back to you if I see some other possible problem.

    Moses

  • Bin,

    Here's my executable with your static IP of 192.168.2.10. Load it to your target and see if it works.

    *Fix the extension 

    0636.SD_Card.out.txt

    Moses

  • Hi Moses,

    Thanks for your kind help. The code is also working fine now on my computer. I do not know why is that, but since I changed it to DHCP and changed it back, it is working fine. But I am still very interested in you suggestion and would like to try it. But there is something which is not very clear to me. The attached file is a .out.txt file. Do I need to change the extension name? And how can I load it to my target (copy it to my project file?)?

    Many Thanks,

    Bin

  • Bin,

    The .txt was added to the filename so that I can attach it to this forum post. Click re-name and delete the .txt extension, so it should be just a.out. Since your code now works, you don't have to bother with it.

    Moses

    Please mark one of my posts as the answer if you feel satisfied with my help

  • Hi Moses,


    Thanks for your kind help. I will get back to you if further problems about this issue arise.

    Many Thanks,

    Bin