Squashed commit of the following:

update for tag movement
    updated to new release
    update pack in examples
    new release number
    rename to extra
    Cleanup
    Added ready-made examples to ST pack
    Add Keil examples
    Fix CRLF, start adding examples descriptions
    Remove examples
    STM32Cube Expansion Pack with no examples
    Add STM32Cube Expansion Pack skeleton
    Added examples for discussion
    Add support for Cube
    Working on examples
    pack skeleton ready
This commit is contained in:
Sergio R. Caprile committed 2026-04-08 11:41:26 -03:00
1 parent b1c2ffe1a0
commit 2dffbc32ba
941 files changed
+646479 -1

No files matched your search

@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<package schemaVersion="1.7.2" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="PACK.xsd">
<vendor>Cesanta</vendor>
<name>I-CUBE-Mongoose</name>
<description>Mongoose Embedded Web server, HTTP/MQTT/Websocket library</description>
<url>https://mongoose.ws/downloads/stm32pack/</url>
<license>License.txt</license>
<supportContact>https://mongoose.ws/contact/</supportContact>
<releases>
<release date="2023-05-24" version="7.10.0">See https://github.com/cesanta/mongoose/releases/tag/7.8</release>
</releases>
<keywords>
<keyword>CUBE_RULES_COMPLIANT</keyword>
<keyword>IMPLEMENTED_WITH_STM32CUBEMX</keyword>
</keywords>
<taxonomy>
<description Cclass="Network Library">Network Library</description>
</taxonomy>
<conditions>
<condition id="Requires_Mongoose">
<require Cclass="Network Library" Cgroup="Mongoose"/>
</condition>
</conditions>
<components>
<component Cclass="Network Library" Cgroup="Mongoose" Cversion="7.10.0" maxInstances="1">
<description>Mongoose HTTP/MQTT/Websocket Library</description>
<files>
<file category="source" name="Middlewares/Third_Party/Mongoose/mongoose.c"/>
<file category="header" name="Middlewares/Third_Party/Mongoose/mongoose.h"/>
</files>
</component>
</components>
<examples>
<example doc="README.md" folder="Projects/NUCLEO-F746ZG/Examples/nucleo-f746zg-cube-baremetal" name="nucleo-f746zg-cube-baremetal" public="false" version="7.10.0">
<description>Baremetal web device dashboard on NUCLEO-F746ZG, built on STM32CubeIDE</description>
<board Dvendor="STMicroelectronics:13" name="NUCLEO-F746ZG" vendor="STMicroelectronics"/>
<project>
<environment folder="nucleo-f746zg-cube-baremetal" load="nucleo-f746zg-cube-baremetal.ioc" name="stm32cubemx"/>
<environment folder="nucleo-f746zg-cube-baremetal" load=".cproject" name="stm32cubeide"/>
</project>
<attributes>
<category>Getting started</category>
<category>Networking</category>
<keyword>Web server</keyword>
<keyword>HTTP</keyword>
<keyword>MQTT</keyword>
<keyword>SNTP</keyword>
<keyword>network</keyword>
</attributes>
</example>
<example doc="README.md" folder="Projects/NUCLEO-F746ZG/Examples/nucleo-f746zg-cube-freertos" name="nucleo-f746zg-cube-freertos" public="false" version="7.10.0">
<description>Web device dashboard using Mongoose as a FreeRTOS task on a NUCLEO-F746ZG, built on STM32CubeIDE</description>
<board Dvendor="STMicroelectronics:13" name="NUCLEO-F746ZG" vendor="STMicroelectronics"/>
<project>
<environment folder="nucleo-f746zg-cube-freertos" load="nucleo-f746zg-cube-freertos.ioc" name="stm32cubemx"/>
<environment folder="nucleo-f746zg-cube-freertos" load=".cproject" name="stm32cubeide"/>
</project>
<attributes>
<category>Getting started</category>
<category>Networking</category>
<keyword>Web server</keyword>
<keyword>HTTP</keyword>
<keyword>MQTT</keyword>
<keyword>SNTP</keyword>
<keyword>network</keyword>
</attributes>
</example>
<example doc="README.md" folder="Projects/NUCLEO-F746ZG/Examples/nucleo-f746zg-cube-freertos-lwip" name="nucleo-f746zg-cube-freertos-lwip" public="false" version="7.10.0">
<description>Web device dashboard using Mongoose over FreeRTOS + lwIP on a NUCLEO-F746ZG, built on STM32CubeIDE</description>
<board Dvendor="STMicroelectronics:13" name="NUCLEO-F746ZG" vendor="STMicroelectronics"/>
<project>
<environment folder="nucleo-f746zg-cube-freertos-lwip" load="nucleo-f746zg-cube-freertos-lwip.ioc" name="stm32cubemx"/>
<environment folder="nucleo-f746zg-cube-freertos-lwip" load=".cproject" name="stm32cubeide"/>
</project>
<attributes>
<category>Getting started</category>
<category>Networking</category>
<keyword>Web server</keyword>
<keyword>HTTP</keyword>
<keyword>MQTT</keyword>
<keyword>SNTP</keyword>
<keyword>network</keyword>
</attributes>
</example>
</examples>
</package>
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<IP xmlns="http://mcd.rou.st.com/modules.php?name=mcu" xmlns:ns0="http://www.w3.org/2001/XMLSchema-instance" DBVersion="V4.0" Name="I-CUBE-Mongoose" RootFolder="Packs/Cesanta/I-CUBE-Mongoose/7.10.0/" Version="7.10.0" ns0:schemaLocation="http://mcd.rou.st.com/modules.php?name=mcu ../../../../../../../doc/V4/Development/Specifications/db/thirdPartyDb.xsd">
<RefConfig Name="NetworkOoLibraryJjMongoose">
<Component Name="NetworkOoLibrary:Mongoose:$NetworkOoLibraryJjMongoose"/>
<ConfigFile Name="config"/>
</RefConfig>
<RefConfigFile Added="true" Description="https://mongoose.ws/documentation/#build-options" Name="config" Template="mongoose_conf.ftl">
<File Category="header" Condition="all" Name="App/mongoose_custom.h"/>
<Argument Added="true" AddressOf="false" GenericType="simple" Name="MG_ENABLE_PACKED_FS" OptimizationCondition="equal"/>
<Argument Added="true" AddressOf="false" GenericType="simple" Name="MG_ENABLE_CUSTOM_MILLIS" OptimizationCondition="equal"/>
<Argument Added="true" AddressOf="false" GenericType="simple" Name="MG_ENABLE_MBEDTLS" OptimizationCondition="equal"/>
<Argument Added="true" AddressOf="false" GenericType="simple" Name="MG_ARCH" OptimizationCondition="equal"/>
<Argument Added="true" AddressOf="false" GenericType="simple" Name="MG_STMPACK_NET" OptimizationCondition="equal"/>
<Argument Added="true" AddressOf="false" GenericType="simple" Name="MG_ENABLE_CUSTOM_RANDOM" OptimizationCondition="equal"/>
</RefConfigFile>
<RefComponent Cclass="NetworkOoLibrary" Cgroup="Mongoose" Cversion="7Gg10Gg0">
<File Category="source" Condition="" Name="Middlewares/Third_Party/Mongoose/mongoose.c"/>
<File Category="header" Condition="" Name="Middlewares/Third_Party/Mongoose/mongoose.h"/>
</RefComponent>
</IP>
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<IP xmlns="http://mcd.rou.st.com/modules.php?name=mcu" DBVersion="V4.0" IPType="Thirdparty" IpGroup="Additional Software" Name="Cesanta.I-CUBE-Mongoose" Version="7.10.0" xmlns:ns0="http://www.w3.org/2001/XMLSchema-instance" ns0:schemaLocation="http://mcd.rou.st.com/modules.php?name=mcu ../../../../../../../doc/V4/Development/Specifications/db/IP_Modes.xsd">
<!--Generated by CubeMX-->
<RefMode Abstract="true" Name="NetworkOoLibraryJjMongoose">
<ConfigForMode>NetworkOoLibraryJjMongoose</ConfigForMode>
<Parameter Name="NetworkOoLibraryJjMongoose"/>
<Parameter Added="true" Name="MG_ARCH"/>
<Parameter Added="true" Name="MG_STMPACK_NET"/>
<Parameter Added="true" Name="MG_ENABLE_MBEDTLS"/>
<Parameter Added="true" Name="MG_ENABLE_CUSTOM_MILLIS"/>
<Parameter Added="true" Name="MG_ENABLE_CUSTOM_RANDOM"/>
<Parameter Added="true" Name="MG_ENABLE_PACKED_FS"/>
</RefMode>
<ModeLogicOperator Name="OR">
<Mode Name="NetworkOoLibraryJjMongoose">
<ModeLogicOperator Name="OR">
<Mode Name="NetworkOoLibraryJjMongoose">
<SignalLogicalOp Name="AND">
<Signal Name="VS_NetworkOoLibraryJjMongoose_7.10.0_7.10.0"/>
</SignalLogicalOp>
</Mode>
</ModeLogicOperator>
</Mode>
</ModeLogicOperator>
<RefSignal Name="VS_NetworkOoLibraryJjMongoose_7.10.0_7.10.0" Virtual="true"/>
<RefParameter Comment="Mongoose HTTP/MQTT/Websocket Library" DefaultValue="false" Group="Software component selection" Name="NetworkOoLibraryJjMongoose" TabName="NetworkOoLibraryJjMongoose" Type="boolean" Visible="false">
<PossibleValue Comment="ENABLE" Semaphore="SEMNetworkOoLibraryJjMongoose" Value="true"/>
<PossibleValue Comment="DISABLE" Value="false"/>
</RefParameter>
<RefParameter Comment="Condition Ii Requires Ii Mongoose" DefaultValue="true" Name="CONDITIONIiRequiresIiMongoose" Type="boolean" Visible="false"/>
<RefParameter Added="true" Comment="Enable packed (embedded) filesystem" DefaultValue="true" Group="Filesystem Support" Name="MG_ENABLE_PACKED_FS" TabName="Parameter Settings" Type="boolean">
<PossibleValue Comment="true" Value="true"/>
<PossibleValue Comment="false" Value="false"/>
</RefParameter>
<RefParameter Added="true" Comment="Enable custom mg_millis()" DefaultValue="true" Group="Basic Parameters" Name="MG_ENABLE_CUSTOM_MILLIS" TabName="Parameter Settings" Type="boolean">
<Description>Use a user-provided function to get uptime in milliseconds, otherwise Mongoose will default to using time(). Except for bare metal, Mongoose will use the time base for the configured architecture</Description>
<PossibleValue Comment="true" Value="true"/>
<PossibleValue Comment="false" Value="false"/>
</RefParameter>
<RefParameter Added="true" Comment="Use Mbed-TLS" DefaultValue="false" Group="Networking Support" Name="MG_ENABLE_MBEDTLS" TabName="Parameter Settings" Type="boolean">
<Description>Mongoose will use Mbed-TLS calls for TLS-related functionality</Description>
<PossibleValue Comment="true" Value="true"/>
<PossibleValue Comment="false" Value="false"/>
</RefParameter>
<RefParameter Added="true" Comment="System Architecture" DefaultValue="MG_STMPACK_ARCH" Group="Basic Parameters" Name="MG_ARCH" TabName="Parameter Settings" Type="list">
<Description>Select either bare metal operation or a supported RTOS
"FreeRTOS" uses direct FreeRTOS calls
"CMSIS-RTOS v1" supports only Keil RTX through API v1
"CMSIS-RTOS v2" supports Keil RTX5 and FreeRTOS through API v2</Description>
<PossibleValue Comment="FreeRTOS" Value="MG_ARCH_FREERTOS"/>
<PossibleValue Comment="CMSIS-RTOS v1" Value="MG_ARCH_CMSIS_RTOS1"/>
<PossibleValue Comment="CMSIS-RTOS v2" Value="MG_ARCH_CMSIS_RTOS2"/>
<PossibleValue Comment="Bare metal" Value="MG_STMPACK_ARCH"/>
</RefParameter>
<RefParameter Added="true" Comment="Enable custom mg_rand()" DefaultValue="true" Group="Basic Parameters" Name="MG_ENABLE_CUSTOM_RANDOM" TabName="Parameter Settings" Type="boolean">
<Description>Use a user-provided function to generate random numbers, otherwise Mongoose will default to using rand()</Description>
<PossibleValue Comment="true" Value="true"/>
<PossibleValue Comment="false" Value="false"/>
</RefParameter>
<RefParameter Added="true" Comment="Networking stack" DefaultValue="0" Group="Networking Support" Name="MG_STMPACK_NET" TabName="Parameter Settings" Type="list">
<Description>Select the networking stack to use with Mongoose Library
The built-in stack can run on bare metal or over any RTOS
"lwIP" requires using an RTOS and BSD socket mode
"MDK" requires using CMSIS-RTOS1 (RTX + RL) or CMSIS-RTOS2 (MDK Plus or Pro), and BSD socket mode</Description>
<PossibleValue Comment="Built-in" Value="0"/>
<PossibleValue Comment="lwIP" Value="1"/>
<PossibleValue Comment="FreeRTOS-Plus-TCP" Value="2"/>
<PossibleValue Comment="MDK (RL)" Value="3"/>
</RefParameter>
</IP>
@@ -0,0 +1,72 @@
[#ftl]
/**
******************************************************************************
* File Name : ${name}
* Description : This file provides code for the configuration
* of the ${name} instances.
******************************************************************************
[@common.optinclude name=mxTmpFolder+"/license.tmp"/][#--include License text --]
******************************************************************************
*/
[#assign s = name]
[#assign toto = s?replace(".","__")]
[#assign dashReplace = toto?replace("-","_")]
[#assign inclusion_protection = dashReplace?upper_case]
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __${inclusion_protection}__
#define __${inclusion_protection}__
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
[#if includes??]
[#list includes as include]
#include "${include}"
[/#list]
[/#if]
[#-- SWIPdatas is a list of SWIPconfigModel --]
[#list SWIPdatas as SWIP]
[#-- Global variables --]
[#if SWIP.variables??]
[#list SWIP.variables as variable]
extern ${variable.value} ${variable.name};
[/#list]
[/#if]
[#-- Global variables --]
[#assign instName = SWIP.ipName]
[#assign fileName = SWIP.fileName]
[#assign version = SWIP.version]
/**
MiddleWare name : ${instName}
MiddleWare fileName : ${fileName}
MiddleWare version : ${version}
*/
[#if SWIP.defines??]
[#list SWIP.defines as definition]
/*---------- [#if definition.comments??]${definition.comments} [/#if] -----------*/
#define ${definition.name} #t#t ${definition.value}
[#if definition.description??]${definition.description} [/#if]
[/#list]
[/#if]
[/#list]
#ifdef __cplusplus
}
#endif
#endif /*__ ${inclusion_protection}_H */
/**
* @}
*/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
@@ -0,0 +1,35 @@
[#ftl]
// If we could guess an MG_ARCH so far, preserve it, otherwise try GCC-based
#if defined(MG_ARCH)
#define MG_STMPACK_ARCH MG_ARCH
#undef MG_ARCH
#elif defined(__GNUC__)
#define MG_STMPACK_ARCH MG_ARCH_NEWLIB
#endif
[#list SWIPdatas as SWIP]
[#if SWIP.defines??]
[#list SWIP.defines as def]
#define ${def.name} [#if def.value == "true"] 1 [#elseif def.value == "false"] 0 [#else]${def.value}[/#if]
[/#list]
[/#if]
[/#list]
// Translate to Mongoose macros
#if MG_STMPACK_NET == 0
#define MG_ENABLE_TCPIP 1
#elif MG_STMPACK_NET == 1
#define MG_ENABLE_LWIP 1
#elif MG_STMPACK_NET == 2
#define MG_ENABLE_FREERTOS_TCP 1
#elif MG_STMPACK_NET == 3
#define MG_ENABLE_RL 1
#endif
#if MG_ENABLE_PACKED_FS
#define MG_ENABLE_FILE 0
#endif
// See https://mongoose.ws/documentation/#build-options
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<package schemaVersion="1.7.2" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="PACK.xsd">
<vendor>Cesanta</vendor>
<name>I-CUBE-Mongoose::FROM_SCRATCH_GENERATED::CUBE_RULES</name>
<description>Mongoose Embedded Web server, HTTP/MQTT/Websocket library</description>
<url>https://mongoose.ws/downloads/stm32pack/</url>
<license>../../LICENSE::License.txt</license>
<supportContact>https://mongoose.ws/contact/</supportContact>
<releases>
<release date="2023-05-24" version="7.10.0">See https://github.com/cesanta/mongoose/releases/tag/7.8</release>
</releases>
<keywords>
<keyword>CUBE_RULES_COMPLIANT</keyword>
<keyword>IMPLEMENTED_WITH_STM32CUBEMX</keyword>
</keywords>
<taxonomy>
<description Cclass="Network Library">Network Library</description>
</taxonomy>
<conditions>
<condition id="Requires_Mongoose">
<require Cclass="Network Library" Cgroup="Mongoose"/>
</condition>
</conditions>
<components>
<component Cclass="Network Library" Cgroup="Mongoose" Cversion="7.10.0" maxInstances="1">
<description>Mongoose HTTP/MQTT/Websocket Library</description>
<files>
<file category="source" name="../../mongoose.c::Middlewares/Third_Party/Mongoose/mongoose.c"/>
<file category="header" name="../../mongoose.h::Middlewares/Third_Party/Mongoose/mongoose.h"/>
</files>
</component>
</components>
<examples>
<example doc="README.md" folder="Examples/nucleo-f746zg-cube-baremetal::Projects/NUCLEO-F746ZG/Examples/nucleo-f746zg-cube-baremetal" name="nucleo-f746zg-cube-baremetal" public="false" version="7.10.0">
<description>Baremetal web device dashboard on NUCLEO-F746ZG, built on STM32CubeIDE</description>
<board Dvendor="STMicroelectronics:13" name="NUCLEO-F746ZG" vendor="STMicroelectronics"/>
<project>
<environment folder="nucleo-f746zg-cube-baremetal" load="nucleo-f746zg-cube-baremetal.ioc" name="stm32cubemx"/>
<environment folder="nucleo-f746zg-cube-baremetal" load=".cproject" name="stm32cubeide"/>
</project>
<attributes>
<category>Getting started</category>
<category>Networking</category>
<keyword>Web server</keyword>
<keyword>HTTP</keyword>
<keyword>MQTT</keyword>
<keyword>SNTP</keyword>
<keyword>network</keyword>
</attributes>
</example>
<example doc="README.md" folder="Examples/nucleo-f746zg-cube-freertos::Projects/NUCLEO-F746ZG/Examples/nucleo-f746zg-cube-freertos" name="nucleo-f746zg-cube-freertos" public="false" version="7.10.0">
<description>Web device dashboard using Mongoose as a FreeRTOS task on a NUCLEO-F746ZG, built on STM32CubeIDE</description>
<board Dvendor="STMicroelectronics:13" name="NUCLEO-F746ZG" vendor="STMicroelectronics"/>
<project>
<environment folder="nucleo-f746zg-cube-freertos" load="nucleo-f746zg-cube-freertos.ioc" name="stm32cubemx"/>
<environment folder="nucleo-f746zg-cube-freertos" load=".cproject" name="stm32cubeide"/>
</project>
<attributes>
<category>Getting started</category>
<category>Networking</category>
<keyword>Web server</keyword>
<keyword>HTTP</keyword>
<keyword>MQTT</keyword>
<keyword>SNTP</keyword>
<keyword>network</keyword>
</attributes>
</example>
<example doc="README.md" folder="Examples/nucleo-f746zg-cube-freertos-lwip::Projects/NUCLEO-F746ZG/Examples/nucleo-f746zg-cube-freertos-lwip" name="nucleo-f746zg-cube-freertos-lwip" public="false" version="7.10.0">
<description>Web device dashboard using Mongoose over FreeRTOS + lwIP on a NUCLEO-F746ZG, built on STM32CubeIDE</description>
<board Dvendor="STMicroelectronics:13" name="NUCLEO-F746ZG" vendor="STMicroelectronics"/>
<project>
<environment folder="nucleo-f746zg-cube-freertos-lwip" load="nucleo-f746zg-cube-freertos-lwip.ioc" name="stm32cubemx"/>
<environment folder="nucleo-f746zg-cube-freertos-lwip" load=".cproject" name="stm32cubeide"/>
</project>
<attributes>
<category>Getting started</category>
<category>Networking</category>
<keyword>Web server</keyword>
<keyword>HTTP</keyword>
<keyword>MQTT</keyword>
<keyword>SNTP</keyword>
<keyword>network</keyword>
</attributes>
</example>
</examples>
</package>
Whitespace-only changes.