cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP server from cube firmware?

tau
Associate II
Posted on June 07, 2016 at 09:36

Hi,

   are there any tutorials for getting an HTTP server working from cube firmware?

I found the demo project in the F7 cube firmware V1.4.0 which displays which tasks are running on FreeRTOS. Works fine, great. Now I want to modify that, but it's a project with referenced files.

I would like:

Fatfs (on SD card)

LwIP http server

http server running from files on the sd card.

LCD status display on STM32F746 disco board.

Is there an easy way to make the above? CubeMX doesn't seem to do the BSP side of things properly, and SW4STM32 doesn't seem to do the LwIP side of things correctly, it just includes everything; I've just been tracking down broken include dependencies for the past day.

How have other people done this? 
2 REPLIES 2
Walid FTITI_O
Senior II
Posted on June 08, 2016 at 13:48

Hi Turboman,

I suggest that you take a look to the following resources.:

- Application note

LwIP TCP/IP stack demonstration for STM32F4x7 microcontrollers�?

http://www.st.com/content/ccc/resource/technical/document/application_note/fd/5d/64/cf/7c/38/4c/30/DM00036pdf/files/DM00036pdf/jcr:content/translations/en.DM00036pdf

- STM32CubeMx user manual AN1718

- ''FatFs_uSD'' example in STM32CubeF7 at this path : STM32Cube_FW_F7_V1.4.0\Projects\STM32746G-Discovery\Applications\FatFs\FatFs_uSD

- ''LwIP_HTTP_Server_Netconn_RTOS'' at this path: STM32Cube_FW_F7_V1.3.0\Projects\STM32746G-Discovery\Applications\LwIP\LwIP_HTTP_Server_Netconn_RTOS

- This thread ''

https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=https%3a//my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/HTTP%20Server.%20Webpage%20in%20SD&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F&currentviews=937

''

You should proceed by fragments in you project and then do the integration since you don't find a ready complex/ mixed application use.

-Hannibal-

tau
Associate II
Posted on June 13, 2016 at 16:40

Thanks for your help, I only just came back to this post but have got it working - and did pretty much what you suggested, doing it bit by bit.

Mostly it was copy-paste into the new files, but I did find the culprit I think. There is no hal.h file in lwipopts.h, in the cubemx generated project. Anwyay, it's serving web pages, so I'm modifying it bit by bit to increase the functionality.

thanks again 🙂