BLE initializes sometimes for 2 seconds and sometimes more than 10. Does anyone know the solution to this problem?
micropython 1.12 / esp-idf 4.0
https://github.com/micropython/micropy ... sues/5489
BLE init long time problem.
Re: BLE init long time problem.
It's a bug in the ESP32 IDF. The issue you linked to has all the details, but the workaround means we have to pin everything to one core. Like I said on the issue, I think we should still do that, but this wasn't a change that we were prepared to make just before releasing v1.13. Now that v1.13 is released, hopefully #6343 gets merged soon. (In my testing, I no longer see this issue).
Re: BLE init long time problem.
Im have 1.13 (MP_TASK_COREID to code 0) with idf 4.0, Sometimes there is this problem, sometimes it is not...
Re: BLE init long time problem.
Not quite sure what you mean?
v1.13 doesn't have a fix for this.
The absolutely latest revision on master (literally merged a few hours ago) does.
What are you using?
Re: BLE init long time problem.
Ok, then what to do to use version 1.13 without this problem, compile the latest master but with or without pinned MP to core 0?
Re: BLE init long time problem.
Oh ok, I haven't noticed that latest master is already core = 0 ok thanks.
Re: BLE init long time problem.
How to fix this problem in v.1.12? Is the only solution to going to core 0? (sometimes I have a crash panic) I noticed that in the latest 1.14 for esp32 there is "MicroPython and NimBLE tasks to core 0" How can you do that only when bluetooth is on?