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.

How do I use my own homepage on TiVa example?



Hi all,


My project starts from enet_lwip, and it works fine so far.


I don't need a webpage, but since the example comes with one, I will just keep it but I want to change the basic home page to point to my company products instead of TiVa line.


In enet_lwip, the index.html is under the fs folder, but when I change the index.html, it has no effect on the .hex, it still uses the TiVa page. Obviously, fs is not included in the build, enet_lwip simply links to the .obj created previously.

So, what do I need to do so that I can have my own simple webpage?


Thanks!

  • Hello David

    There is an application in tools called makefsfile. You need to keep all the files together in a single folder and then use the utility to compile the folder to a header file that can be used

    Regards
    Amit
  • Poster here appears to have well mastered the "basics" and provides a clear description of his (real) efforts and results.

    Yet he was stuck - at a dead end/impasse.

    How could he (or many others) have known about the fine detail you offer?   And - it's not hard to predict that such an issue would arise - is it not?

    Might this suggest that "more time be devoted to clarifying existing documentation/code examples" and less to, "I NEED to build a quad - gimme everything - it's (always) Urgent!?"

  • Hi Amit, you just forgot: as is written on read me and on source code too. I think read code and files on a folder can be a must to use some software examples. ;)
  • Hello cb1,

    The test code and Readme along with the application has the same information. This is besides the pdf in the doc for the TivaWare Installation.

    Thanks Roberto....

    Regards
    Amit
  • Thanks Amit,

    Yeah, indeed, I was way too quick to call for help, I didn't realize the instruction was actually on the SECOND commented section. Once I got the example working, I simply scroll down in a hurry to add my codes and when the my codes were working, I totally forgot to go back to that section. Thank you for your patience! Kudos to TI's FAE, for understanding stupid error can happen to anyone :)


  • David Chance said:
    I didn't realize the instruction was actually on the SECOND commented section.

    Hi Amit,

    Issue is not w/you - but (again) at the (curious, and repeated) failure to properly "high-light" such very predictable, "Gotchas!"

    Poster is skilled, aware - and yet (still) missed the critical point - (perhaps buried in the mice-type...)

    Does this not "ring" of (oh so long) FAILED highlighting of PF0/PD7?   (Ans: of course it does)

    What is the justification for "hiding" vital commentary in the "SECOND" commented section?  Clearly - poster missed it.  Why was it placed there?

    Fundamental "warning/alerting" mechanics appear to escape many in your documentation department.  And - by contrast - each/every LM3S (may they rest in peace) was emblazoned with, "NRND (large type) - in glorious Red - TOP of Page 1 - were they not?   Why is that "horror" entitled to "high-light" while so much else appears in (hard to note) monochromatic, mice-type?  

  • Hi Amit, sorry but I have to confess never seen that section or probably forgotten in the far past...
    I read some pdf and are well written software user manuals so we can also use to answer repetitive ask: Have you read PDF on Doc section?
    Now after reading tons of code examples and readme I also seen PDF Sw UM too, we forever learn or discover more from who [collaborate to or ] made them.
    I express a thank for all us.
  • A few extra steps for future reference:

    1) Add a file called rebuildfs.bat to the project, with the following content:

    C:\ti\TivaWare_C_Series-2.1.0.12573\tools\bin\makefsfile -i C:\Users\MyName\workspace_v6_0\enet_lwip\fs -o C:\Users\MyName\workspace_v6_0\enet_lwip\enet_fsdata.h -r -h -q

    , where MyName is the folder that contains the project, enet_lwip is the project name.
    Note: hard path makes the line readable, skipping dependence/makefile so that we don't need to keep track of the web pages when we add images and other pages

    2) In CCS:enet_lwip: Project->Properties->CCS Build->Steps, add the following to Pre-build steps:
    ${ProjDirPath}/rebuild_fs.bat

    From now on, when you build the project, the webpage will be compiled and included automatically.

    Since a lazy path is taken here by inserting the batch file to the pre-build steps directly, it always recompile the web fs folder regardless the status of the web/fs folder, thus rebuilding may take longer time for each build. If the website is stabilized, place the text "REM" in front of the command line in rebuildfs.bat so that it will skip it.
  • David Chance said:
    Since a lazy path is taken here by inserting the batch file to the pre-build steps directly, it always recompile the web fs folder regardless the status of the web/fs folder, thus rebuilding may take longer time for each build. If the website is stabilized, place the text "REM" in front of the command line in rebuildfs.bat so that it will skip it.

     Dear David, your hint is of no use to community than for noobs...

     I don't think this forum has noobs grade nor I think is correct check herself for answered when Amit FIRST addressed the solution of command reference embedded in source code and readme too.

     Adding absolute path IMHO is a MUST NOT DO!! I forever hate windows for this WORST unregular root path locked to past of uneven choices.

     CCS is multiplatform and I HOPE we soon see an absolute path free version, this BAD HABIT generate issue on Linux and more and more worst on the windoze platform unable to do relocation and getting ide crash when not on same disk.

     DON'T DO THAT!!!!

  • Sorry, I didn't realize it would add points to Amit (maybe extra $, too). I just wanted to close the thread so that TI didn't have to worry about it (after posting mine, it was the closest one to click to to do so)

    I have fixed it already

    The quick note is for my and others' future reference, and you don't have to use it

  • This is PUBLIC not private forum. Question of good education prevent lave post to himself, it is forever better close first useful answer too. (EDIT: added too)

    (Edit add line:)

     Removing a verified answer on old rule was felt as negative and drop away some point.

  • Not sure what you mean, I really didn't mean to take any credit (which may lead to physical reward?) away from him/her, if possible, I will be glad to give ALL my points to him/her as compensation

  • As for the hard path, I can easily get rid of the one referring to the project. If a project is imported from the TI example, such as enet_lwip, SW_ROOT can be used to create the path for makefsfile, but if the project is creaed/imported via other methods, I am not sure if SW_ROOT global variable is still good for the makefsfile, so I keep this ONE in hardpath, like it or not

    Anyway, change

    C:\ti\TivaWare_C_Series-2.1.0.12573\tools\bin\makefsfile -i C:\Users\MyName\workspace_v6_0\enet_lwip\fs -o C:\Users\MyName\workspace_v6_0\enet_lwip\enet_fsdata.h -r -h -q

    to

    C:\ti\TivaWare_C_Series-2.1.0.12573\tools\bin\makefsfile -i %1\fs -o %1\enet_fsdata.h -r -h -q

    change

    ${ProjDirPath}/rebuild_fs.bat

    to

    ${ProjDirPath}/rebuild_fs.bat ${ProjDirPath}

  • This is NOT wiki. I have been to many public forums, and never seen rules preventing leaving useful note for self and some other people.

    Is this a written rule here? If so, I will fully respect it in the future

  • Sorry David, I also wrote in unreadable form, I am tired of too many are on forum without a  clear rule, if rule are not changed with new look, I am aware of too and no mention was published on change, so  I remember these rules where active:

    You get point  and award from verified answer, so solving problem was a first rule,  your cancellation of your verify costed a point drop and I don't remember whatever other it was.

     With time another valuation appeared  in term of  star on top of messages, again no public announcement was seen.

     Today still is recognition of help by <<verify button>>  and appeared this new button "Like" none explained us what means to.

     My rule remain  to verify all messages helped to solution and NEVER cancel a verify also if left by mistake due it cost reputation and point to poster of that message. Is not a trouble for you or me but some hand at work comments are welcome.

     

    David Chance said:
    Is this a written rule here? If so, I will fully respect it in the future

     This is a very  good point of and again we may ask Amit if know about new rules and can point all us to where are them written.

  • David Chance said:
    Is this a written rule here? If so, I will fully respect it in the future

     Hi David, I found where rules are hidden searching a forum, this new look is very less useful than old.

     To be of help to all other too here is forum rule and usage but I feel incomplete, no mention of Like button rule. At last the new anouncement too:

    http://e2e.ti.com/group/helpcentral/w/e2e/455.07-becoming-recognized