-
Notifications
You must be signed in to change notification settings - Fork 93
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
ble scan does not work after driver update #249
Comments
Oh, that's bad Maybe it's "just" something like in cda6146 There were some ROM functions which should not get used and it should use the replacement contained in the driver |
Seems like the driver contains a lot of replacements for ROM functions. I tried to remove most of these (not the ones which are unlikely to be involved) but it didn't help unfortunately
|
So if I remove the function from rom_functions.x and it links, it should be OK? |
Probably those functions could be removed from rom_functions.x ..... but in my tests with your code it didn't change anything unfortunately. From the crash it seems that the crash is in the rom's memcpy which got called from r_GF_Jacobian_Point_Addition256 (also rom) which probably got called from something in |
But in my stack
On my esp32c3 I get a different stack (see above). |
it's also in your exception message .... unfortunately, espflash doesn't know about the rom code and decodes the addresses wrong - I get the exact same crash I really have no idea what is going on there. The I also tested on ESP32-C2 and there it works fine |
I have my main project with a lot more code and esp-now,gpio where it does not crash just freeze after BLE scan start. For now I have made a branch on my |
That is interesting information - might help when looking deeper into it.
We try to update the drivers from time to time mainly to enable new chips (we keep all the drivers at the same version). I will try to look deeper into the drivers as soon as I get to it. There is also hope that the next driver update might fix it magically |
Thanks. |
I think I know what is wrong and how to fix it ..... Hopefully will be able to do the fix on Monday |
That will be great, thanks. |
Unfortunately the project doesn't seem to be online anymore. I have not found any examples or implementations yet (only using idf/std), this seemed to be the only starting point. |
Yes. It is working now. I do not have that project anymore, but it is similar with this one tils-relay |
That's a great starting point, thanks a lot! |
After the driver update on 27 June the ble scan will crash after hci start scan command.
Last know working version is revision abf6d4b (before driver updates)
To reproduce use project esp-ble-scan
There is commented lines in Cargo.toml for last known working configuration.
The text was updated successfully, but these errors were encountered: