Skip to main content
Visitor II
April 5, 2022
Solved

How to generate .bin from web files (Web server application)

  • April 5, 2022
  • 4 replies
  • 3964 views

Hi everybody,

I am working with AZURE RTOS and I have implemented an HTTP web server application. I started from the example available in CubeIDE. Everything is working properly but now I need to modifiy the HTTP web page. For this, it is necessary to generate a .bin file from the .js, .css and .html files:

0693W00000LwvohQAB.pngCould somebody help me with this issue? I think it should exists a script or something like that for it.

Thanks in advance.

    This topic has been closed for replies.
    Best answer by mattias norlander

    Hi,

    In this case I think you may find this thread interesting:

    https://community.st.com/s/question/0D53W00000etOsmSAE/http-server-convert-html-file-to-c-data-array-for-in-memory-storage-does-anybody-have-a-good-example

    Have a look at Vangelis answer...

    4 replies

    ST Employee
    April 6, 2022

    Hi,

    Did you start from:

    X-CUBE-AZRTOS-H7\2.0.0\Projects\STM32H735G-DK\Applications\NetXDuo\Nx_WebServer

    If relying on the above example then you are storing the webpage on an SD-card, relying on FileX... No bin-file should be needed.

    So, I assume you are based on another example?

    agalindoAuthor
    Visitor II
    April 6, 2022

    Hi,

    I started from:

    X-CUBE-AZRTOS-F4\1.0.0\Projects\STM32F429ZI-Nucleo\Applications\NetXDuo\Nx_WebServer

    Then, it is necessary to store the binary in the flash memory. Actually that is the best solution for my project as I don't have SD-card reader (LevelX is used as well).

    Thanks.

    ST Employee
    April 7, 2022
    agalindoAuthor
    Visitor II
    April 7, 2022

    Thank you so much. Something like that is just what I was testing. A perl script.

    agalindoAuthor
    Visitor II
    April 19, 2022

    I'm still trying to generate the web files for flash memory. web_content.bin (from web server example) has been generated in any way and I would like to know it. Does somebody know something about it?

    Visitor II
    April 11, 2023

    Just in case you are still looking for a solution, here is a script to generate raw FAT disk. 

    github.com/TiejunMS/utils/tree/main/scripts/gen_raw_disk