espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.61k stars 7.27k forks source link

ESP32-S3FN8 - BLE service problem (IDFGH-9976) #11261

Open marbalon opened 1 year ago

marbalon commented 1 year ago

Answers checklist.

IDF version.

v4.4

Operating System used.

Windows

How did you build your project?

VS Code IDE

If you are using Windows, please specify command line type.

None

Development Kit.

Custom board.

Power Supply used.

USB

What is the expected behavior?

The BLE GATT service should be discoverable on every software restart.

What is the actual behavior?

I'm developing the app with GATT server and everything is working fine: the device is discoverable, and I can connect and communicate. But when I do the software restart looks like the device is not broadcasting its own name. Just for a test, I added an option to scan devices nearby to verify if BT is working. The device works fine - see devices but still not broadcasting his own name.

What is strange it is always after the first software restart. On the second, and third, the fourth software restart fixes the issue.

Steps to reproduce.

Nothing special is needed, just a first software restart (using esp_restart() function ,in our case after OTA upgrade or UART command). The problem does not appear on the ESP32-S3 with external flash - only on the ESP32-S3FN8.

Debug Logs.

No response

More Information.

No response

esp-zhp commented 11 months ago

@marbalon Is this issue still present in the latest version?Can you provide me with the complete log?

marbalon commented 11 months ago

Currently, I'm busy with other projects but I will try to post your logs when I switch to this project.

esp-zhp commented 11 months ago

Please test on the latest master branch, and also test on the branch where the issue occurred earlier.

According to your description, the issue only occurs on the ESP32-S3FN8. If you can provide an example that reproduces the problem, I would greatly appreciate it.

esp-zhp commented 11 months ago

I need all the logs after powering on and starting up

Alvin1Zhang commented 8 months ago

@marbalon Thanks for reporting, would you please help share if any updates for the issue? Thanks.