Downloading noncompiled file to board

Hello everyone, working on the semestral project we encountered a simple problem. I hope it has as simple solution, unfortunately hidden from me. We prepared the page for HTTP server as a html file, and on request we send it to client. The problem is that on running the WindRiver run configuration, only compiled object files are downloaded without errors. As a consequence my program has no access to the page file. My question is: how to solve this problem? Is it somehow possible to download it to the board on "run", or it has to be done differently? Thanks in advance, Jan Blaha

Hello Jan, On 12/30/18 5:31 PM, blahaj22@fel.cvut.cz wrote:
Hello everyone,
working on the semestral project we encountered a simple problem. I hope it has as simple solution, unfortunately hidden from me. We prepared the page for HTTP server as a html file, and on request we send it to client. The problem is that on running the WindRiver run configuration, only compiled object files are downloaded without errors. As a consequence my program has no access to the page file.
My question is: how to solve this problem? Is it somehow possible to download it to the board on "run", or it has to be done differently?
To download it to board you need some program compiled on board that is able to transfer files (scp, tftp, ...). However, the easiest way (in my opinion) is to put your HTML page as macro to your code instead of separate file.
Thanks in advance, Jan Blaha
Have a nice day, Jiri Vlasak

On Sun, Dec 30 2018, Jiri Vlasak wrote:
Hello Jan,
On 12/30/18 5:31 PM, blahaj22@fel.cvut.cz wrote:
Hello everyone,
working on the semestral project we encountered a simple problem. I hope it has as simple solution, unfortunately hidden from me. We prepared the page for HTTP server as a html file, and on request we send it to client. The problem is that on running the WindRiver run configuration, only compiled object files are downloaded without errors. As a consequence my program has no access to the page file.
My question is: how to solve this problem? Is it somehow possible to download it to the board on "run", or it has to be done differently?
To download it to board you need some program compiled on board that is able to transfer files (scp, tftp, ...).
... and such a server does not run on our boards.
However, the easiest way (in my opinion) is to put your HTML page as macro to your code instead of separate file.
Or a variable: const char html[] = "<html>....." "<body> ...." "</body></html>"; The following converter can be useful: http://tomeko.net/online_tools/cpp_text_escape.php -MS
participants (3)
-
blahaj22@fel.cvut.cz
-
Jiri Vlasak
-
Michal Sojka