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

wifi_eswifi: Unable to start TCP/UDP client #25600

Closed
nandojve opened this issue May 26, 2020 · 14 comments
Closed

wifi_eswifi: Unable to start TCP/UDP client #25600

nandojve opened this issue May 26, 2020 · 14 comments
Assignees
Labels
area: Networking area: Wi-Fi Wi-Fi bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 priority: low Low impact/importance bug Stale

Comments

@nandojve
Copy link
Member

nandojve commented May 26, 2020

Describe the bug
After receive an wifi_eswifi: Unable to start TCP/UDP client the tcp/ip only works after restart the board.

To Reproduce

  1. clone https://github.com/UpdateHub/zephyr/commits/topic/uhu_wifi
  2. set variables at samples/net/updatehub/prj.conf
    CONFIG_UPDATEHUB_WIFI_SSID="wifi network"
    CONFIG_UPDATEHUB_WIFI_PSK="password"
  3. west build -b disco_l475_iot1 samples/net/updatehub
  4. sign image
    ~/<zephyr_home_dir>/bootloader/mcuboot/scripts/imgtool.py sign --key ~/<zephyr_home_dir>/bootloader/mcuboot/root-rsa-2048.pem --header-size 0x200 --align 8 --version 1.0.0 --slot-size 0x6C000 ~/<zephyr_home_dir>/zephyr/build/zephyr/zephyr.hex ~/<zephyr_home_dir>/zephyr/build/zephyr/zephyr-1.0.0.hex
  5. west flash --hex-file build/zephyr/zephyr-1.0.0.hex
  6. See error on terminal

Expected behavior
if for any reason devices have problems to create a TCP/IP client the future attempts must work.

Impact
Features stop to work.

Screenshots or console output

*** Booting Zephyr OS build v2.3.0-rc1-138-g1d06829ef97b  ***
[00:00:00.005,000] <inf> mcuboot: Starting bootloader
[00:00:00.006,000] <inf> mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x1
[00:00:00.006,000] <inf> mcuboot: Scratch: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
[00:00:00.006,000] <inf> mcuboot: Boot source: primary slot
[00:00:00.013,000] <inf> mcuboot: Swap type: none


uart:~$ *** Booting Zephyr OS build v2.3.0-rc1-299-gd80ed410fe10  ***
[00:00:00.538,000] <inf> main: UpdateHub sample app started
[00:00:00.546,000] <inf> main: Confirming the boot image
[00:00:03.632,000] <inf> main: WIFI Connected
[00:00:03.657,000] <inf> main: Starting UpdateHub polling mode
[00:00:04.206,000] <inf> updatehub: No update available
uart:~$ updatehub run 
Starting UpdateHub run...
[00:00:20.094,000] <inf> updatehub: Probe metadata received
[00:00:26.580,000] <dbg> updatehub.install_update_cb: Flash: Address: 0x00000000, Size: 1024, Flush: 0
[00:00:27.147,000] <dbg> updatehub.install_update_cb: Flash: Address: 0x00000400, Size: 1024, Flush: 0
...
[00:01:03.463,000] <dbg> updatehub.install_update_cb: Flash: Address: 0x00010400, Size: 1024, Flush: 0
[00:01:04.030,000] <dbg> updatehub.install_update_cb: Flash: Address: 0x00010800, Size: 1024, Flush: 0
[00:01:04.292,000] <err> wifi_eswifi: Unable to start TCP/UDP client
[00:01:04.299,000] <err> updatehub: Cannot connect to UDP remote
[00:01:04.596,000] <err> updatehub: Could not receive data
Error installing update.
uart:~$ updatehub run 
Starting UpdateHub run...
[00:01:19.796,000] <err> wifi_eswifi: Unable to start TCP/UDP client
[00:01:19.803,000] <err> updatehub: Cannot connect to UDP remote
Invalid response
[00:02:04.365,000] <err> wifi_eswifi: Unable to start TCP/UDP client
[00:02:04.374,000] <err> updatehub: Cannot connect to UDP remote
[00:03:04.442,000] <err> wifi_eswifi: Unable to start TCP/UDP client
[00:03:04.451,000] <err> updatehub: Cannot connect to UDP remote
[00:04:04.462,000] <err> updatehub: Failed to create UDP socket
uart:~$ 

Environment (please complete the following information):

  • OS: Linux
  • Toolchain Zephyr SDK 0.11.2
  • Commit SHA 855b6c1

Additional context
CONFIG_NET_PKT_RX_COUNT=default
CONFIG_NET_PKT_TX_COUNT=default
CONFIG_NET_BUF_RX_COUNT=default
CONFIG_NET_BUF_TX_COUNT=default

@nandojve nandojve added the bug The issue is a bug, or the PR is fixing a bug label May 26, 2020
@nandojve
Copy link
Member Author

CC @otavio @carlescufi @erwango @jukkar

@erwango
Copy link
Member

erwango commented May 26, 2020

@nandojve if I'm correct, you have an esp shield, do you confirm this is working on the same board with esp shield (and eswifi deactivated ) ?
If yes, can you enable and provide WIFI logs ?

@carlescufi
Copy link
Member

See also #25621. CC @bwasim

@bwasim
Copy link
Contributor

bwasim commented May 26, 2020

In my case, Zephyr was acting as a TCP server and a client was able to successfully connect to it. However, the WiFi driver did not pass the client information to the application layer which caused NET stack to fail (whenever the application layer tried to send data to the client)..

In this case, an AT command to the WiFi chip is failing. So this is different..

@erwango
Copy link
Member

erwango commented May 26, 2020

@loicpoulain can you have a check ?

@carlescufi carlescufi added area: Networking area: Wi-Fi Wi-Fi platform: STM32 ST Micro STM32 priority: low Low impact/importance bug labels May 26, 2020
@nandojve
Copy link
Member Author

@nandojve if I'm correct, you have an esp shield, do you confirm this is working on the same board with esp shield (and eswifi deactivated ) ?
If yes, can you enable and provide WIFI logs ?

Hi @erwango

I noted that when use more buffers UpdateHub client works.
CONFIG_NET_PKT_RX_COUNT=8
CONFIG_NET_PKT_TX_COUNT=8
CONFIG_NET_BUF_RX_COUNT=20
CONFIG_NET_BUF_TX_COUNT=20

I think es-WIFI need more intensive tests because more buffers can delay the problem. ESP offload driver and frdm-k64 with ethernet are working fine using default buffer config.

As requested, below logs from ESP offload driver. I hope it can help to identify the problem.

*** Booting Zephyr OS build v2.3.0-rc1-138-g1d06829ef97b  ***
[00:00:00.005,000] <inf> mcuboot: Starting bootloader
[00:00:00.006,000] <inf> mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x1
[00:00:00.006,000] <inf> mcuboot: Scratch: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
[00:00:00.006,000] <inf> mcuboot: Boot source: primary slot
[00:00:00.013,000] <inf> mcuboot: Swap type: test


[00:00:00.001,000] <inf> wifi_esp: Waiting for interface to come up
uart:~$ m[00:00:00.566,000] <inf> wifi_esp: ESP Wi-Fi ready
uart:~$ *** Booting Zephyr OS build v2.3.0-rc1-325-g36afe1cd643f  ***
[00:00:00.578,000] <inf> main: UpdateHub sample app started
[00:00:00.586,000] <inf> main: Confirming the boot image
[00:00:04.482,000] <inf> main: WIFI Connected
[00:00:04.503,000] <inf> main: Starting UpdateHub polling mode
[00:00:04.511,000] <dbg> wifi_esp_offload.esp_get: 
[00:00:04.519,000] <dbg> wifi_esp_offload.esp_connect: link 0, timeout 3000
[00:00:04.528,000] <dbg> wifi_esp_offload._sock_connect: link 0, ip_proto UDP, addr 192.168.10.199
[00:00:05.338,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:05.349,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:05.360,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:05.370,000] <dbg> wifi_esp_offload._sock_send: link 0, len 260
[00:00:05.458,000] <inf> updatehub: Probe metadata received
[00:00:05.467,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x0, data 0x0
[00:00:05.481,000] <dbg> wifi_esp_offload.esp_get: 
[00:00:05.489,000] <dbg> wifi_esp_offload.esp_connect: link 0, timeout 3000
[00:00:05.498,000] <dbg> wifi_esp_offload._sock_connect: link 0, ip_proto UDP, addr 192.168.10.199
[00:00:05.515,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:05.527,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:05.538,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:05.548,000] <dbg> wifi_esp_offload._sock_send: link 0, len 401
[00:00:05.608,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x0, data 0x0
[00:00:05.622,000] <dbg> wifi_esp_offload.esp_get: 
[00:00:05.629,000] <dbg> wifi_esp_offload.esp_connect: link 0, timeout 3000
[00:00:05.639,000] <dbg> wifi_esp_offload._sock_connect: link 0, ip_proto UDP, addr 192.168.10.199
[00:00:05.656,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:05.667,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:05.679,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:05.689,000] <dbg> wifi_esp_offload._sock_send: link 0, len 400
[00:00:05.749,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x0, data 0x0
[00:00:10.520,000] <dbg> wifi_esp_offload.esp_get: 
[00:00:10.528,000] <dbg> wifi_esp_offload.esp_connect: link 0, timeout 3000
[00:00:10.537,000] <dbg> wifi_esp_offload._sock_connect: link 0, ip_proto UDP, addr 192.168.10.199
[00:00:10.555,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:10.566,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:10.578,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:10.587,000] <dbg> wifi_esp_offload._sock_send: link 0, len 291
[00:00:10.739,000] <dbg> updatehub.install_update_cb: Flash: Address: 0x00000000, Size: 1024, Flush: 0
[00:00:10.763,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:10.774,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:10.784,000] <dbg> wifi_esp_offload._sock_send: link 0, len 291
[00:00:10.927,000] <dbg> updatehub.install_update_cb: Flash: Address: 0x00000400, Size: 1024, Flush: 0
[00:00:10.951,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:10.962,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:10.972,000] <dbg> wifi_esp_offload._sock_send: link 0, len 291
[00:00:11.111,000] <dbg> updatehub.install_update_cb: Flash: Address: 0x00000800, Size: 1024, Flush: 0
[00:00:11.135,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:11.146,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:11.156,000] <dbg> wifi_esp_offload._sock_send: link 0, len 291
[00:00:11.299,000] <dbg> updatehub.install_update_cb: Flash: Address: 0x00000c00, Size: 1024, Flush: 0
[00:00:11.322,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:11.334,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:11.344,000] <dbg> wifi_esp_offload._sock_send: link 0, len 291

...


[00:00:57.770,000] <dbg> updatehub.install_update_cb: Flash: Address: 0x0003f800, Size: 1024, Flush: 0
[00:00:57.794,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:57.805,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:57.815,000] <dbg> wifi_esp_offload._sock_send: link 0, len 292
[00:00:57.954,000] <dbg> updatehub.install_update_cb: Flash: Address: 0x0003fc00, Size: 1024, Flush: 0
[00:00:57.978,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:57.989,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:57.999,000] <dbg> wifi_esp_offload._sock_send: link 0, len 292
[00:00:58.138,000] <dbg> updatehub.install_update_cb: Flash: Address: 0x00040000, Size: 1024, Flush: 0
[00:00:58.162,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:58.173,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:58.183,000] <dbg> wifi_esp_offload._sock_send: link 0, len 292
[00:00:58.325,000] <dbg> updatehub.install_update_cb: Flash: Address: 0x00040400, Size: 1024, Flush: 0
[00:00:58.349,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:58.360,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:58.370,000] <dbg> wifi_esp_offload._sock_send: link 0, len 292
[00:00:58.509,000] <dbg> updatehub.install_update_cb: Flash: Address: 0x00040800, Size: 1024, Flush: 0
[00:00:58.533,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:58.544,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:58.554,000] <dbg> wifi_esp_offload._sock_send: link 0, len 292
[00:00:58.692,000] <dbg> updatehub.install_update_cb: Flash: Address: 0x00040c00, Size: 1024, Flush: 0
[00:00:58.715,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:58.727,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:58.737,000] <dbg> wifi_esp_offload._sock_send: link 0, len 292
[00:00:58.876,000] <dbg> updatehub.install_update_cb: Flash: Address: 0x00041000, Size: 1024, Flush: 0
[00:00:58.899,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:58.911,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:58.921,000] <dbg> wifi_esp_offload._sock_send: link 0, len 292
[00:00:59.061,000] <dbg> updatehub.install_update_cb: Flash: Address: 0x00041400, Size: 1024, Flush: 0
[00:00:59.085,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:59.096,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:59.106,000] <dbg> wifi_esp_offload._sock_send: link 0, len 292
[00:00:59.248,000] <dbg> updatehub.install_update_cb: Flash: Address: 0x00041800, Size: 1024, Flush: 0
[00:00:59.272,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:59.283,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:59.293,000] <dbg> wifi_esp_offload._sock_send: link 0, len 292
[00:00:59.422,000] <dbg> updatehub.install_update_cb: Flash: Address: 0x00041c00, Size: 912, Flush: 1
[00:00:59.444,000] <inf> updatehub: Firmware downloaded successfully
[00:00:59.453,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x0, data 0x0
[00:00:59.468,000] <dbg> wifi_esp_offload.esp_get: 
[00:00:59.475,000] <dbg> wifi_esp_offload.esp_connect: link 0, timeout 3000
[00:00:59.485,000] <dbg> wifi_esp_offload._sock_connect: link 0, ip_proto UDP, addr 192.168.10.199
[00:00:59.502,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:59.513,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:59.525,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:59.535,000] <dbg> wifi_esp_offload._sock_send: link 0, len 400
[00:00:59.604,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x0, data 0x0
[00:00:59.618,000] <dbg> wifi_esp_offload.esp_get: 
[00:00:59.626,000] <dbg> wifi_esp_offload.esp_connect: link 0, timeout 3000
[00:00:59.635,000] <dbg> wifi_esp_offload._sock_connect: link 0, ip_proto UDP, addr 192.168.10.199
[00:00:59.653,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:59.664,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:59.675,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:59.685,000] <dbg> wifi_esp_offload._sock_send: link 0, len 399
[00:00:59.752,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x0, data 0x0
[00:00:59.766,000] <dbg> wifi_esp_offload.esp_get: 
[00:00:59.773,000] <dbg> wifi_esp_offload.esp_connect: link 0, timeout 3000
[00:00:59.783,000] <dbg> wifi_esp_offload._sock_connect: link 0, ip_proto UDP, addr 192.168.10.199
[00:00:59.800,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:59.811,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x802f833, data 0x0
[00:00:59.823,000] <dbg> wifi_esp_offload.esp_sendto: link 0, timeout -1717986919
[00:00:59.833,000] <dbg> wifi_esp_offload._sock_send: link 0, len 399
[00:00:59.900,000] <dbg> wifi_esp_offload.esp_recv: link_id 0, timeout 0, cb 0x0, data 0x0
[00:00:59.914,000] <inf> updatehub: Image flashed successfully, you can reboot now
uart:~$ *** Booting Zephyr OS build v2.3.0-rc1-138-g1d06829ef97b  ***
[00:00:00.005,000] <inf> mcuboot: Starting bootloader
[00:00:00.006,000] <inf> mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x1
[00:00:00.006,000] <inf> mcuboot: Scratch: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
[00:00:00.006,000] <inf> mcuboot: Boot source: primary slot
[00:00:00.013,000] <inf> mcuboot: Swap type: test


[00:00:00.001,000] <inf> wifi_esp: Waiting for interface to come up
uart:~$ m[00:00:00.567,000] <inf> wifi_esp: ESP Wi-Fi ready
uart:~$ *** Booting Zephyr OS build v2.3.0-rc1-325-g36afe1cd643f  ***
[00:00:00.579,000] <inf> main: UpdateHub sample app started
[00:00:00.587,000] <inf> main: Confirming the boot image
[00:00:04.487,000] <inf> main: WIFI Connected
[00:00:04.503,000] <inf> main: Starting UpdateHub polling mode

@loicpoulain
Copy link
Collaborator

@nandojve could you please also increase debug log to DBG for eswifi.
As well, can you try to apply the patches from #26712

@nandojve
Copy link
Member Author

nandojve commented Jul 11, 2020

Hi @loicpoulain , I would like check but I'm stuck again with #25010.
CC @ABOSTM

On Linux:

st-flash erase
west flash MCUBoot

*** Booting Zephyr OS build zephyr-v2.3.0-1003-g3e09400cc965  ***
[00:00:00.005,000] <inf> mcuboot: Starting bootloader
[00:00:00.007,000] <inf> mcuboot: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
[00:00:00.007,000] <inf> mcuboot: Scratch: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
[00:00:00.007,000] <inf> mcuboot: Boot source: primary slot
[00:00:00.013,000] <inf> mcuboot: Swap type: none
[00:00:00.013,000] <err> mcuboot: Unable to find bootable image

Than flash this new hello world

diff --git a/samples/hello_world/prj.conf b/samples/hello_world/prj.conf
index b2a4ba5910..08ea5c1f9a 100644
--- a/samples/hello_world/prj.conf
+++ b/samples/hello_world/prj.conf
@@ -1 +1,5 @@
 # nothing here
+CONFIG_BOOTLOADER_MCUBOOT=y
+CONFIG_IMG_MANAGER=y
+CONFIG_FLASH=y
+CONFIG_MPU_ALLOW_FLASH_WRITE=y
diff --git a/samples/hello_world/src/main.c b/samples/hello_world/src/main.c
index 6c5c8a27dc..e5733d6f73 100644
--- a/samples/hello_world/src/main.c
+++ b/samples/hello_world/src/main.c
@@ -7,7 +7,20 @@
 #include <zephyr.h>
 #include <sys/printk.h>
 
+#include <dfu/mcuboot.h>
+
 void main(void)
 {
-       printk("Hello World! %s\n", CONFIG_BOARD);
+       int ret = -1;
+
+       printk("Hello World! 2 %s\n", CONFIG_BOARD);
+
+       /* The image of application needed be confirmed */
+       printk("Confirming the boot image\n");
+       ret = boot_write_img_confirmed();
+       if (ret < 0) {
+               printk("Error to confirm the image\n");
+       } else {
+               printk("Image is OK\n");
+       }
 }
*** Booting Zephyr OS build zephyr-v2.3.0-1003-g3e09400cc965  ***
[00:00:00.005,000] <inf> mcuboot: Starting bootloader
[00:00:00.007,000] <inf> mcuboot: Primary image: magic=good, swap_type=0x1, copy_done=0x3, image_ok=0x3
[00:00:00.007,000] <inf> mcuboot: Scratch: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
[00:00:00.007,000] <inf> mcuboot: Boot source: primary slot
[00:00:00.013,000] <inf> mcuboot: Swap type: none
*** Booting Zephyr OS build zephyr-v2.3.0-1003-g3e09400cc965  ***
Hello World! 2 disco_l475_iot1
Confirming the boot image
Error to confirm the image

So, full erase + flash MCUboot + flash Hello World is not working.
Are there fuse to unlock all flash without any restriction?

@github-actions
Copy link

This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.

@github-actions github-actions bot added the Stale label Sep 10, 2020
@erwango erwango added Waiting for response Waiting for author's response and removed Waiting for response Waiting for author's response labels Sep 16, 2020
@nandojve
Copy link
Member Author

I'm wait an EVB board to isolate WiFi and create a Shield.
Removing Stale.

@nandojve nandojve removed the Stale label Sep 30, 2020
@nandojve
Copy link
Member Author

nandojve commented Nov 2, 2020

WIFI Shield and serial iface: #29507
UpdateHub uses CoAP over UDP. This issue can be related to #29538

@erwango
Copy link
Member

erwango commented Nov 2, 2020

@nandojve now that there's a shield for eswifi, have you been able to reproduce this issue on other board ?

@nandojve
Copy link
Member Author

nandojve commented Nov 2, 2020

Hi @erwango , yes, I already tried UpdateHub and I got in trouble with frdm_k64f on early development using esWIFI with serial bus. Unfortunately I did not have enough time to look in deep but I've been suspecting that could be something related to UDP, after TagoIO's example start to work.
I have intention to test it again after #29507 and #29538 be merged.

@github-actions
Copy link

github-actions bot commented Jan 2, 2021

This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking area: Wi-Fi Wi-Fi bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 priority: low Low impact/importance bug Stale
Projects
None yet
Development

No branches or pull requests

5 participants