diff --git a/resources/I-CUBE-Mongoose/Cesanta.I-CUBE-Mongoose.pdsc b/resources/I-CUBE-Mongoose/Cesanta.I-CUBE-Mongoose.pdsc index b3817b0a..af822705 100644 --- a/resources/I-CUBE-Mongoose/Cesanta.I-CUBE-Mongoose.pdsc +++ b/resources/I-CUBE-Mongoose/Cesanta.I-CUBE-Mongoose.pdsc @@ -1,13 +1,21 @@ - + Cesanta I-CUBE-Mongoose - Mongoose - a lightweight networking library providing TCP/IP stack, TLS, HTTP (Embedded Web Server), WebSocket, MQTT, and Firmware OTA updates. Build production-ready web device dashboards and MQTT cloud connectivity without stitching multiple components together. - + Mongoose - a full-stack networking library for microcontrollers: Ethernet and Wi-Fi drivers, TCP/IP stack, TLS 1.3, HTTP, WebSocket, MQTT, Modbus, OTA updates and device management, in a two-file C/C++ library, on any RTOS or bare metal. https://mongoose.ws/downloads/stm32pack/ License.txt https://mongoose.ws/contact/ + + + + + + + + + See https://github.com/cesanta/mongoose/releases/tag/7.23 See https://github.com/cesanta/mongoose/releases/tag/7.23 See https://github.com/cesanta/mongoose/releases/tag/7.21 See https://github.com/cesanta/mongoose/releases/tag/7.21 @@ -20,7 +28,7 @@ IMPLEMENTED_WITH_STM32CUBEMX - + Networking Core @@ -28,7 +36,15 @@ + + + + + + + + diff --git a/resources/I-CUBE-Mongoose/Makefile b/resources/I-CUBE-Mongoose/Makefile index bad6884c..b4b7e2af 100644 --- a/resources/I-CUBE-Mongoose/Makefile +++ b/resources/I-CUBE-Mongoose/Makefile @@ -1,10 +1,16 @@ -VERSION = 7.23.1 +VERSION = 7.23.2 REPO_ROOT = ../.. MX ?= /Applications/STMicroelectronics/STM32CubeMX.app/Contents/MacOs/STM32CubeMX -FILES = Cesanta.I-CUBE-Mongoose.pdsc Release_Notes.html mongoose_config.h README.md +FILES = Cesanta.I-CUBE-Mongoose.pdsc Release_Notes.html mongoose_config.h README.md .config/mongoose_parameters.json GENERATED = License.txt mongoose.h mongoose.c +MX2 ?= $(HOME)/STMicroelectronics/STM32CubeMX2_1.1.2/.bin/cube +PACKSDIR ?= $(HOME)/Library/Application Support/stm32cube/packs +MX2CPN ?= STM32C5A3ZGT6 +MX2PROJ = $(CURDIR)/mx2test/test.ioc2 + +NAME = Cesanta.I-CUBE-Mongoose.$(VERSION) +PACK = $(NAME).pack -PACK = Cesanta.I-CUBE-Mongoose.$(VERSION).pack all: $(PACK) Cesanta.I-CUBE-Mongoose.$(VERSION).pack: $(FILES) $(GENERATED) @@ -44,5 +50,19 @@ mongoose.h: Mongoose mongoose.c: Mongoose cp $(REPO_ROOT)/mongoose.c $@ +test_mx2: $(PACK) + -$(MX2) pack remove --cmsis-pack-root "$(PACKSDIR)" $(NAME) + rm -f "$(PACKSDIR)/.Download/$(PACK)" + $(MX2) pack install --cmsis-pack-root "$(PACKSDIR)" "$(CURDIR)/$(PACK)" + export PATH="$(dir $(MX2)):$$PATH"; \ + PORT=$$(cube lifecycle-mx start-only | sed -n 's/^BACKEND_PORT *//p'); \ + cube mx project close --port $$PORT -p "$(MX2PROJ)" --discard > /dev/null 2>&1; \ + rm -rf mx2test && mkdir mx2test && \ + cube mx project create-from-mcu --port $$PORT --cpn $(MX2CPN) -l "$(CURDIR)/mx2test" -n test --empty-project && \ + cube mx middleware enable-middleware --port $$PORT -p "$(MX2PROJ)" -n Mongoose | tee mx2test/enable.json && \ + grep -q '"status": "success"' mx2test/enable.json && \ + cube mx project save --port $$PORT -p "$(MX2PROJ)" && \ + cube mx project close --port $$PORT -p "$(MX2PROJ)" --discard + clean: - rm -rf *.pack STM32CubeMX/*.$(VERSION)_*.xml $(GENERATED) + rm -rf *.pack STM32CubeMX/*.$(VERSION)_*.xml $(GENERATED) mx2test