Skip to content

port to ESP-IDF 6.0 and open62541 v1.5.4#12

Open
diplfranzhoepfinger wants to merge 1 commit into
Pro:masterfrom
diplfranzhoepfinger:IDF6
Open

port to ESP-IDF 6.0 and open62541 v1.5.4#12
diplfranzhoepfinger wants to merge 1 commit into
Pro:masterfrom
diplfranzhoepfinger:IDF6

Conversation

@diplfranzhoepfinger

Copy link
Copy Markdown

feat: port to ESP-IDF 6.0 and open62541 v1.5.4

  • Update open62541 build to freertos-lwip architecture (renamed from
    freertosLWIP), providing FreeRTOS stub and no_install.cmake to satisfy
    CMake configure without a host FreeRTOS source tree
  • Fix UA_NS0_BLACKLIST option name (was UA_FILE_NS0_BLACKLIST)
  • Enable UA_ENABLE_TYPEDESCRIPTION (required by JSON encoding + Events)
  • Switch BUILD_COMMAND to open62541-amalgamation target
  • Add patch_config.cmake to disable UA_HAS_GETIFADDR in generated
    config.h (not available on FreeRTOS/ESP32)
  • Add compat_includes/ wrappers for FreeRTOS.h and task.h (IDF 5+
    requires freertos/ prefix)
  • Suppress all warnings on generated open62541.c (third-party file)
  • Add gethostname() shim to custom_getaddrinfo.c
  • Fix nodes_blacklist.txt: remove ~900 nodes that are transitively
    referenced by active nodes (DataType, HasTypeDefinition, reference
    type lookups)
  • Migrate main.c APIs for IDF 5+/6:
    • UA_String_deleteMembers/UA_LocalizedText_deleteMembers → _clear
    • tcpip_adapter → esp_netif
    • spi_flash_init/get_chip_size → esp_flash_get_size
    • sntp_* → esp_sntp_*
    • esp_task_wdt_init → esp_task_wdt_config_t struct
    • UA_ServerConfig.customHostname → serverUrls
    • UA_ARCHITECTURE_FREERTOSLWIP guard moved after open62541.h include
  • Add CONFIG_ETHERNET_HELPER_CUSTOM_HOSTNAME to sdkconfig.defaults
  • Extend factory partition to 3 MB (binary grew with v1.5.4 full NS0)
  • Add spi_flash to main component REQUIRES

Co-Authored-By: Claude Sonnet 4.6 [email protected]

feat: port to ESP-IDF 6.0 and open62541 v1.5.4

- Update open62541 build to freertos-lwip architecture (renamed from
  freertosLWIP), providing FreeRTOS stub and no_install.cmake to satisfy
  CMake configure without a host FreeRTOS source tree
- Fix UA_NS0_BLACKLIST option name (was UA_FILE_NS0_BLACKLIST)
- Enable UA_ENABLE_TYPEDESCRIPTION (required by JSON encoding + Events)
- Switch BUILD_COMMAND to open62541-amalgamation target
- Add patch_config.cmake to disable UA_HAS_GETIFADDR in generated
  config.h (not available on FreeRTOS/ESP32)
- Add compat_includes/ wrappers for FreeRTOS.h and task.h (IDF 5+
  requires freertos/ prefix)
- Suppress all warnings on generated open62541.c (third-party file)
- Add gethostname() shim to custom_getaddrinfo.c
- Fix nodes_blacklist.txt: remove ~900 nodes that are transitively
  referenced by active nodes (DataType, HasTypeDefinition, reference
  type lookups)
- Migrate main.c APIs for IDF 5+/6:
  - UA_String_deleteMembers/UA_LocalizedText_deleteMembers → _clear
  - tcpip_adapter → esp_netif
  - spi_flash_init/get_chip_size → esp_flash_get_size
  - sntp_* → esp_sntp_*
  - esp_task_wdt_init → esp_task_wdt_config_t struct
  - UA_ServerConfig.customHostname → serverUrls
  - UA_ARCHITECTURE_FREERTOSLWIP guard moved after open62541.h include
- Add CONFIG_ETHERNET_HELPER_CUSTOM_HOSTNAME to sdkconfig.defaults
- Extend factory partition to 3 MB (binary grew with v1.5.4 full NS0)
- Add spi_flash to main component REQUIRES

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant