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

ArduinoBLE on Giga R1 can only run on the main core #723

Closed
Gerriko opened this issue Sep 1, 2023 · 3 comments
Closed

ArduinoBLE on Giga R1 can only run on the main core #723

Gerriko opened this issue Sep 1, 2023 · 3 comments

Comments

@Gerriko
Copy link
Contributor

Gerriko commented Sep 1, 2023

I tried helping someone get ArduinoBLE to work on the M4 core but BLE.begin() crashes - it does not return 0 or 1.
I believe this is because of the restriction that Serial can only run on the main core and LBEE5KL1DX-883 (U5) uses UART7 (HCI).
See: https://forum.arduino.cc/t/how-to-use-bluetooth-in-co-processors-sketch/1163997/3

Is there any way to create an exception for UART7, or is there any way one can use software serial in this case.

@Gerriko
Copy link
Contributor Author

Gerriko commented Sep 1, 2023

Apologies - this issue is probably more related to the ArduinoBLE library.
Anyway, on a somewhat related topic about handling conditions in different cores on the Giga R1, I have noticed that with the Giga there is only one precompiler define (ARDUINO_GIGA), whereas for the Portenta, you have for #if define "ARDUINO_PORTENTA_H7_M7" and "ARDUINO_PORTENTA_H7_M4". Maybe 2 options are needed for the Giga too.

@Nocentinia
Copy link

However, it is absurd how the Arduino staff abandons us when these problems arise.
I have the same problem, when I use BLE with any other library the chip goes crazy and freezes.
then I wanted to try using the other core to manage the connection but it still doesn't work!!
and no arduino staff trying to fix things, it's embarrassing

@alranel
Copy link
Member

alranel commented Nov 7, 2023

I'm closing this one since it's being handled in the proper repository (arduino-libraries/ArduinoBLE#330). As of today, a pull request is available containing the fix.

@alranel alranel closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2023
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