Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the ESP32-S3-USB-Bridge in a wireless mode at a remote site behind a firewall (AEGHB-753) #99

Open
3 tasks done
ammaree opened this issue Jul 28, 2024 · 22 comments

Comments

@ammaree
Copy link

ammaree commented Jul 28, 2024

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

We would like to use this dev board to access remote target devices located at customer site and behind a firewall, across the internet. For this we believe ESP-NOW need to be replaced with a normal IP stack and the remote host device need to be configured to act as STA to the local Wifi at the customer site.

To make installation easier the remote device should also enable AP mode if it cannot connect to the local SSID. The remote host device should also be able to be powered from the target device via 5V or 3V3

To fulfil our remote diagnostic and support requirements we need to be able to access and control the remote target (RxD, TxD, EN and IO0) through the remote host, allowing us to monitor (UART) reset, read and write flash of the remote target.

This configuration working across the internet brings complications of firewalls (NAT config we can handle) and latency / propagation delays. It also requires some enhanced telnet support to control the RST and BOOT signals between the central site and the remote host to target connection.

At the central support site we would like to use standard Espressif tools in idf.py and esptool.py, both with the socket://remote.host:port addressing scheme:

Any reason why this functionality is not demonstrated in an example?
Is there any reason why this is not (easily) possible to achieve, something we might be missing.

Ultimately we are looking for a reliable, higher performing version of ESP-Link focussed on ESP32xx target devices, but without the MQTT etc bells and whistles.

All advice appreciated.

@github-actions github-actions bot changed the title Using the ESP32-S3-USB-Bridge in a wireless mode at a remote site behind a firewall Using the ESP32-S3-USB-Bridge in a wireless mode at a remote site behind a firewall (AEGHB-753) Jul 28, 2024
@ammaree
Copy link
Author

ammaree commented Aug 14, 2024

I am trying to build the usb_wireless_bridge example using ESP-IDF latest Master. the follow errors (and warnings) come up.
[1038/1105] Building C object esp-idf/espressif__esp-now/CMakeFiles/__idf_espressif__esp-now.dir/src/debug/src/espnow_console.c.obj /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/debug/src/espnow_console.c: In function 'espnow_console_init': /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/debug/src/espnow_console.c:206:9: warning: 'esp_vfs_dev_uart_port_set_rx_line_endings' is deprecated: Please use uart_vfs_dev_port_set_rx_line_endings() instead [-Wdeprecated-declarations] 206 | esp_vfs_dev_uart_port_set_rx_line_endings(CONFIG_ESP_CONSOLE_UART_NUM, ESP_LINE_ENDINGS_CR); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/debug/src/espnow_console.c:21: /Users/andremaree/DevSpace/z-sdk/esp-idf-master/components/vfs/include/esp_vfs_dev.h:22:5: note: declared here 22 | int esp_vfs_dev_uart_port_set_rx_line_endings(int uart_num, esp_line_endings_t mode) __attribute__((deprecated("Please use uart_vfs_dev_port_set_rx_line_endings() instead"))); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/debug/src/espnow_console.c:208:9: warning: 'esp_vfs_dev_uart_port_set_tx_line_endings' is deprecated: Please use uart_vfs_dev_port_set_tx_line_endings() instead [-Wdeprecated-declarations] 208 | esp_vfs_dev_uart_port_set_tx_line_endings(CONFIG_ESP_CONSOLE_UART_NUM, ESP_LINE_ENDINGS_CRLF); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/andremaree/DevSpace/z-sdk/esp-idf-master/components/vfs/include/esp_vfs_dev.h:24:5: note: declared here 24 | int esp_vfs_dev_uart_port_set_tx_line_endings(int uart_num, esp_line_endings_t mode) __attribute__((deprecated("Please use uart_vfs_dev_port_set_tx_line_endings() instead"))); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/debug/src/espnow_console.c:230:9: warning: 'esp_vfs_dev_uart_use_driver' is deprecated: Please use uart_vfs_dev_use_driver() instead [-Wdeprecated-declarations] 230 | esp_vfs_dev_uart_use_driver(CONFIG_ESP_CONSOLE_UART_NUM); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/andremaree/DevSpace/z-sdk/esp-idf-master/components/vfs/include/esp_vfs_dev.h:20:6: note: declared here 20 | void esp_vfs_dev_uart_use_driver(int uart_num) __attribute__((deprecated("Please use uart_vfs_dev_use_driver() instead"))); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:34:5: error: expected specifier-qualifier-list before 'SLIST_ENTRY' 34 | SLIST_ENTRY(espnow_group_item) next; | ^~~~~~~~~~~ /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:37:8: error: return type defaults to 'int' [-Werror=implicit-int] 37 | static SLIST_HEAD(group_item_list_, espnow_group_item) g_group_item_list; | ^~~~~~~~~~ /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c: In function 'SLIST_HEAD': /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:37:56: error: expected declaration specifiers before 'g_group_item_list' 37 | static SLIST_HEAD(group_item_list_, espnow_group_item) g_group_item_list; | ^~~~~~~~~~~~~~~~~ /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:40:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 40 | { | ^ /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:63:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 63 | { | ^ /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:78:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 78 | { | ^ /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:90:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 90 | { | ^ /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:106:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token 106 | { | ^ /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:37:8: error: type of 'group_item_list_' defaults to 'int' [-Werror=implicit-int] 37 | static SLIST_HEAD(group_item_list_, espnow_group_item) g_group_item_list; | ^~~~~~~~~~ /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:37:8: error: type of 'espnow_group_item' defaults to 'int' [-Werror=implicit-int] /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:116: error: expected '{' at end of input /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c: At top level: /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:37:8: warning: 'SLIST_HEAD' defined but not used [-Wunused-function] 37 | static SLIST_HEAD(group_item_list_, espnow_group_item) g_group_item_list; | ^~~~~~~~~~ /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:30:20: warning: 'TAG' defined but not used [-Wunused-variable] 30 | static const char *TAG = "espnow_group"; | ^~~ cc1: some warnings being treated as errors [1059/1105] Building C object esp-idf/espressif__esp-now/CMakeFiles/__idf_espressif__esp-now.dir/src/debug/src/commands/cmd_iperf.c.obj /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/debug/src/commands/cmd_iperf.c: In function 'espnow_config_func': /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/debug/src/commands/cmd_iperf.c:113:9: warning: 'esp_wifi_config_espnow_rate' is deprecated: This API can be only used when rate is non-HE rate, please use esp_now_set_peer_rate_config if you want full support of the rate. [-Wdeprecated-declarations] 113 | ESP_ERROR_CHECK(esp_wifi_config_espnow_rate(ESP_IF_WIFI_STA, espnow_config_args.rate->ival[0])); | ^~~~~~~~~~~~~~~ In file included from /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/include/espnow.h:17, from /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/debug/src/commands/cmd_iperf.c:28: /Users/andremaree/DevSpace/z-sdk/esp-idf-master/components/esp_wifi/include/esp_now.h:270:11: note: declared here 270 | esp_err_t esp_wifi_config_espnow_rate(wifi_interface_t ifx, wifi_phy_rate_t rate) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ [1062/1105] Building C object esp-idf/espressif__tinyusb/CMakeFiles/__idf_espressif__tinyusb.dir/src/portable/espressif/esp32sx/dcd_esp32sx.c.obj

Any suggestions for trying to fix this?

Although the example does not support standard Wifi and thus won't operate at a remote site behind a firewall (with NAT) we are just trying to test the concept.

Thanks

@ammaree
Copy link
Author

ammaree commented Aug 26, 2024

@igrr

A month later and noresponse from anybody. The current repo does not build with ESP-IDF master, comes up with 100's of errors.

Can we please get to a point ASAP where this can build with 5v3 or master, we would like to start a process to add normal IP support to access a device at a remote site.

Please !!!!

@lijunru-hub
Copy link
Contributor

Sorry for the late reply. The public network debugging solution is quite interesting, and we already have clients who have developed remote debuggers based on the public network. However, we currently don't have the resources to dedicate to this feature, so you might need to experiment on your own. We will work on fixing the compilation issue as soon as possible. In the meantime, you can revert to the IDF version before release/v5.2 to ensure correct compilation.

@ammaree
Copy link
Author

ammaree commented Aug 28, 2024

@lijunru-hub

Thanks for the response, sorry about nagging.
In order for us to make a decision on possibly committing resources, can you help with some guidance.

A: https://github.com/espressif/esp-dev-kits/tree/master/esp32-s3-usb-bridge/examples/usb_wireless_bridge
B: https://github.com/espressif/esp-usb-bridge

1: Why are there 2 different repos, both focussing on very much the same functionality
2: Of the 2 repos above, which of them is where Espressif will be devoting resources?
3: If your focus is specifically on the repo A above, any plans to consolidate the SWD and similar functionality from repo B?
4: Any timeframe for getting repo A (if that is where you will focus) to a successful compile state, with updated IDF and components?

Thank

@lijunru-hub
Copy link
Contributor

  1. A is a wireless debugging solution based on an older version of B.
  2. More code maintenance will focus on B.
  3. SWD has limited relevance for the debugging needs focused on ESP32 in A.
  4. ASAP.

@ammaree
Copy link
Author

ammaree commented Aug 28, 2024

Thanks for the response.

So if I understand correctly you will be focussing on A (usb_wireless_bridge) ASAP.

Any plans or ideas for adding normal IP type communication as alternative to or replacement for ESP-NOW?

@lijunru-hub
Copy link
Contributor

It may be necessary for you to implement IP-based debugging on your own, but it is feasible, as some clients have already developed related products.

@ammaree
Copy link
Author

ammaree commented Sep 3, 2024

@lijunru-hub
Any progress on updating the usb_wireless_bridge example to compile using IDF v5.3 or later, preferably master?

We would like to get started working on the LWIP functionality but unable to do so with current state of the repo.

Thanks for your help

@lijunru-hub
Copy link
Contributor

I'll look into it as soon as possible.

@ammaree
Copy link
Author

ammaree commented Sep 27, 2024

@lijunru-hub

Any progress on updating for IDF v5.3 or master. It would be of great value to have some idea of when we can expect to start testing, even if just an early beta version?

In your post about a month ago you mentioned that some clients have already developed related products, any chance you can provide me with links to those so I can have a look at viability to purchase/use?

The requirement to debug and flash remote devices behind a firewall has high priority on our side...

Thanks

@ammaree
Copy link
Author

ammaree commented Oct 8, 2024

@lijunru-hub, sorry to continue bugging you but...

  1. Any chance of an indication when the updates to support v5.3/master can be expected?
  2. Can you please check and resend links for any and all already developed similar/related products?

If we can find something already available with the required minimum functionality and at a justifiable price that can buy us (and yourself) some time.

Please, please, please, becoming critical this side..

@ammaree
Copy link
Author

ammaree commented Oct 9, 2024

@ESP-Mars
@lijunru-hub

Thanks for the info, got to the link, translated, but the PW200 but cannot get more info, nor can I create a login from South Africa.

Found www.powerwriter.com, only product that MIGHT be able to do the trick is the PowerDebugger. None of the PW200/300/400/PWLINK2/PWX1 has wifi capabilities. Considering the list of functionality it seems the product is focussed on ARM and limited RISC-V with SWD/ITM/JTAG etc, none of which we are interested in.

All we need is remote access via public IP to ESP32xxx UART port for monitoring and flashing. Have looked for a price to determine feasibility but cannot find it anywhere, so maybe you can help with separate pricing for PowerDebugger TX and RX items.

But considering we need 2xTX and ~10xRX to start with, very unlikely to be justifiable.

@ammaree
Copy link
Author

ammaree commented Oct 17, 2024

@igrr

Any chance you can assist to move this issue forward, please?

We are based in South Africa and the TaoBao link provided is of no help to us. The proposed alternative product does not look viable to us, not specifically ESp32 focussed and unlikely justifiable price.

If we can just get the existing example updated to successfully compile with v5.3 or preferably master, that will be a big step forward.

Although the ultimate goal still has to be full IP support to access remote devices behind a firewall.

Thanks

@lijunru-hub
Copy link
Contributor

@ammaree
I completely understand your sense of urgency. We have already updated the example to support the latest IDF build, but the code release will take a bit more time. Please be patient.

@ammaree
Copy link
Author

ammaree commented Oct 25, 2024

@lijunru-hub

Thanks for the update, have synced the repo, done full clean (couple of times) but still coming up with errors

Executing action: all (aliases: build)
Running ninja in directory /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/build
Executing "ninja all"...
[4/120] Building C object esp-idf/espressif__esp-now/CMakeFiles/__idf_espressif__esp-now.dir/src/espnow/src/espnow_group.c.obj
FAILED: esp-idf/espressif__esp-now/CMakeFiles/__idf_espressif__esp-now.dir/src/espnow/src/espnow_group.c.obj 
/Users/andremaree/.espressif/tools/xtensa-esp-elf/esp-14.2.0_20240906/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc -DESP_PLATFORM -DIDF_VER=\"v5.4-dev-3602-ga97a7b0962-dirty\" -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -DSOC_MMU_PAGE_SIZE=CONFIG_MMU_PAGE_SIZE -DSOC_XTAL_FREQ_MHZ=CONFIG_XTAL_FREQ -D_GLIBCXX_HAVE_POSIX_SEMAPHORE -D_GLIBCXX_USE_POSIX_SEMAPHORE -D_GNU_SOURCE -D_POSIX_READER_WRITER_LOCKS -I/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/build/config -I/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/control/include -I/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/debug/include -I/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/debug/include/sdcard -I/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/debug/src -I/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/debug/src/commands/pcap -I/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/include -I/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/ota/include -I/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/provisioning/include -I/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/security/include -I/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/security/include/protocomm/security -I/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/utils/include -I/Users/andremaree/DevSpace/z-sdk/master/components/protocomm/proto-c -I/Users/andremaree/DevSpace/z-sdk/master/components/newlib/platform_include -I/Users/andremaree/DevSpace/z-sdk/master/components/freertos/config/include -I/Users/andremaree/DevSpace/z-sdk/master/components/freertos/config/include/freertos -I/Users/andremaree/DevSpace/z-sdk/master/components/freertos/config/xtensa/include -I/Users/andremaree/DevSpace/z-sdk/master/components/freertos/FreeRTOS-Kernel/include -I/Users/andremaree/DevSpace/z-sdk/master/components/freertos/FreeRTOS-Kernel/portable/xtensa/include -I/Users/andremaree/DevSpace/z-sdk/master/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos -I/Users/andremaree/DevSpace/z-sdk/master/components/freertos/esp_additions/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_hw_support/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_hw_support/include/soc -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_hw_support/include/soc/esp32s3 -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_hw_support/dma/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_hw_support/ldo/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_hw_support/debug_probe/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_hw_support/port/esp32s3/. -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_hw_support/port/esp32s3/include -I/Users/andremaree/DevSpace/z-sdk/master/components/heap/include -I/Users/andremaree/DevSpace/z-sdk/master/components/heap/tlsf -I/Users/andremaree/DevSpace/z-sdk/master/components/log/include -I/Users/andremaree/DevSpace/z-sdk/master/components/soc/include -I/Users/andremaree/DevSpace/z-sdk/master/components/soc/esp32s3 -I/Users/andremaree/DevSpace/z-sdk/master/components/soc/esp32s3/include -I/Users/andremaree/DevSpace/z-sdk/master/components/soc/esp32s3/register -I/Users/andremaree/DevSpace/z-sdk/master/components/hal/platform_port/include -I/Users/andremaree/DevSpace/z-sdk/master/components/hal/esp32s3/include -I/Users/andremaree/DevSpace/z-sdk/master/components/hal/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_rom/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_rom/esp32s3/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_rom/esp32s3/include/esp32s3 -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_rom/esp32s3 -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_common/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_system/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_system/port/soc -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_system/port/include/private -I/Users/andremaree/DevSpace/z-sdk/master/components/xtensa/esp32s3/include -I/Users/andremaree/DevSpace/z-sdk/master/components/xtensa/include -I/Users/andremaree/DevSpace/z-sdk/master/components/xtensa/deprecated_include -I/Users/andremaree/DevSpace/z-sdk/master/components/lwip/include -I/Users/andremaree/DevSpace/z-sdk/master/components/lwip/include/apps -I/Users/andremaree/DevSpace/z-sdk/master/components/lwip/include/apps/sntp -I/Users/andremaree/DevSpace/z-sdk/master/components/lwip/lwip/src/include -I/Users/andremaree/DevSpace/z-sdk/master/components/lwip/port/include -I/Users/andremaree/DevSpace/z-sdk/master/components/lwip/port/freertos/include -I/Users/andremaree/DevSpace/z-sdk/master/components/lwip/port/esp32xx/include -I/Users/andremaree/DevSpace/z-sdk/master/components/lwip/port/esp32xx/include/arch -I/Users/andremaree/DevSpace/z-sdk/master/components/lwip/port/esp32xx/include/sys -I/Users/andremaree/DevSpace/z-sdk/master/components/console -I/Users/andremaree/DevSpace/z-sdk/master/components/vfs/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_vfs_console/include -I/Users/andremaree/DevSpace/z-sdk/master/components/fatfs/diskio -I/Users/andremaree/DevSpace/z-sdk/master/components/fatfs/src -I/Users/andremaree/DevSpace/z-sdk/master/components/fatfs/vfs -I/Users/andremaree/DevSpace/z-sdk/master/components/wear_levelling/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_partition/include -I/Users/andremaree/DevSpace/z-sdk/master/components/sdmmc/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_sdmmc/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_gpio/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_sdspi/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_spi/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_pm/include -I/Users/andremaree/DevSpace/z-sdk/master/components/spiffs/include -I/Users/andremaree/DevSpace/z-sdk/master/components/app_update/include -I/Users/andremaree/DevSpace/z-sdk/master/components/bootloader_support/include -I/Users/andremaree/DevSpace/z-sdk/master/components/bootloader_support/bootloader_flash/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_app_format/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_bootloader_format/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_http_client/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_event/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_https_ota/include -I/Users/andremaree/DevSpace/z-sdk/master/components/efuse/include -I/Users/andremaree/DevSpace/z-sdk/master/components/efuse/esp32s3/include -I/Users/andremaree/DevSpace/z-sdk/master/components/mbedtls/port/include -I/Users/andremaree/DevSpace/z-sdk/master/components/mbedtls/mbedtls/include -I/Users/andremaree/DevSpace/z-sdk/master/components/mbedtls/mbedtls/library -I/Users/andremaree/DevSpace/z-sdk/master/components/mbedtls/esp_crt_bundle/include -I/Users/andremaree/DevSpace/z-sdk/master/components/mbedtls/mbedtls/3rdparty/everest/include -I/Users/andremaree/DevSpace/z-sdk/master/components/mbedtls/mbedtls/3rdparty/p256-m -I/Users/andremaree/DevSpace/z-sdk/master/components/mbedtls/mbedtls/3rdparty/p256-m/p256-m -I/Users/andremaree/DevSpace/z-sdk/master/components/protobuf-c/protobuf-c -I/Users/andremaree/DevSpace/z-sdk/master/components/protocomm/include/common -I/Users/andremaree/DevSpace/z-sdk/master/components/protocomm/include/security -I/Users/andremaree/DevSpace/z-sdk/master/components/protocomm/include/transports -I/Users/andremaree/DevSpace/z-sdk/master/components/protocomm/include/crypto/srp6a -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_timer/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_wifi/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_wifi/wifi_apps/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_wifi/wifi_apps/nan_app/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_wifi/include/local -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_phy/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_phy/esp32s3/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_netif/include -I/Users/andremaree/DevSpace/z-sdk/master/components/spi_flash/include -I/Users/andremaree/DevSpace/z-sdk/master/components/nvs_flash/include -I/Users/andremaree/DevSpace/z-sdk/master/components/driver/deprecated -I/Users/andremaree/DevSpace/z-sdk/master/components/driver/i2c/include -I/Users/andremaree/DevSpace/z-sdk/master/components/driver/touch_sensor/include -I/Users/andremaree/DevSpace/z-sdk/master/components/driver/twai/include -I/Users/andremaree/DevSpace/z-sdk/master/components/driver/touch_sensor/esp32s3/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_ringbuf/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_pcnt/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_gptimer/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_mcpwm/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_ana_cmpr/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_i2s/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_sdio/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_dac/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_rmt/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_tsens/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_sdm/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_i2c/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_uart/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_ledc/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_parlio/include -I/Users/andremaree/DevSpace/z-sdk/master/components/esp_driver_usb_serial_jtag/include -mlongcalls  -fno-builtin-memcpy -fno-builtin-memset -fno-builtin-bzero -fno-builtin-stpcpy -fno-builtin-strncpy -fdiagnostics-color=always -fdiagnostics-color=always -Wno-cpp -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations -Wextra -Wno-error=extra -Wno-unused-parameter -Wno-sign-compare -Wno-enum-conversion -gdwarf-4 -ggdb -Og -fno-shrink-wrap -fmacro-prefix-map=/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge=. -fmacro-prefix-map=/Users/andremaree/DevSpace/z-sdk/master=/IDF -fstrict-volatile-bitfields -fno-jump-tables -fno-tree-switch-conversion -std=gnu17 -Wno-old-style-declaration -Wno-pointer-sign -Wno-format -DESP_NOW_VER_MAJOR=2 -DESP_NOW_VER_MINOR=3 -DESP_NOW_VER_PATCH=0 -MD -MT esp-idf/espressif__esp-now/CMakeFiles/__idf_espressif__esp-now.dir/src/espnow/src/espnow_group.c.obj -MF esp-idf/espressif__esp-now/CMakeFiles/__idf_espressif__esp-now.dir/src/espnow/src/espnow_group.c.obj.d -o esp-idf/espressif__esp-now/CMakeFiles/__idf_espressif__esp-now.dir/src/espnow/src/espnow_group.c.obj -c /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c
/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:34:5: error: expected specifier-qualifier-list before 'SLIST_ENTRY'
   34 |     SLIST_ENTRY(espnow_group_item) next;
      |     ^~~~~~~~~~~
/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:37:8: error: return type defaults to 'int' [-Wimplicit-int]
   37 | static SLIST_HEAD(group_item_list_, espnow_group_item) g_group_item_list;
      |        ^~~~~~~~~~
/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c: In function 'SLIST_HEAD':
/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:37:56: error: expected declaration specifiers before 'g_group_item_list'
   37 | static SLIST_HEAD(group_item_list_, espnow_group_item) g_group_item_list;
      |                                                        ^~~~~~~~~~~~~~~~~
/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:40:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   40 | {
      | ^
/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:63:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   63 | {
      | ^
/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:78:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   78 | {
      | ^
/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:90:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   90 | {
      | ^
/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:106:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
  106 | {
      | ^
/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:37:8: error: type of 'group_item_list_' defaults to 'int' [-Wimplicit-int]
   37 | static SLIST_HEAD(group_item_list_, espnow_group_item) g_group_item_list;
      |        ^~~~~~~~~~
/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:37:8: error: type of 'espnow_group_item' defaults to 'int' [-Wimplicit-int]
/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:116: error: expected '{' at end of input
/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c: At top level:
/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:37:8: warning: 'SLIST_HEAD' defined but not used [-Wunused-function]
   37 | static SLIST_HEAD(group_item_list_, espnow_group_item) g_group_item_list;
      |        ^~~~~~~~~~
/Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/managed_components/espressif__esp-now/src/espnow/src/espnow_group.c:30:20: warning: 'TAG' defined but not used [-Wunused-variable]
   30 | static const char *TAG = "espnow_group";
      |                    ^~~
[21/120] Linking C static library esp-idf/unity/libunity.a
ninja: build stopped: subcommand failed.
ninja failed with exit code 1, output of the command is in the /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/build/log/idf_py_stderr_output_51311 and /Users/andremaree/DevSpace/z-projects/usb_wireless_bridge/build/log/idf_py_stdout_output_51311

Any suggestions?

@lijunru-hub
Copy link
Contributor

I am unable to reproduce this error on my side; the compilation completes successfully.

@ammaree
Copy link
Author

ammaree commented Oct 25, 2024 via email

@ammaree
Copy link
Author

ammaree commented Oct 25, 2024

@lijunru-hub

Apologies, fault is my side. Cleaned everything, resync'd and tried again, all working.

Will now try to flash the new firmware and then start looking at adding the remote IP support.

Just so I know, is there a changelog available that I can look at to be aware of changes?

Thanks again.

@lijunru-hub
Copy link
Contributor

@ammaree
Due to some changes in the dependent components, updating the component versions to resolve certain compilation errors will allow support for the master branch. You can check the specific changes in this commit.

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

No branches or pull requests

3 participants