-
Notifications
You must be signed in to change notification settings - Fork 1.3k
NRF52 build fails if MICROPY_PY_BLE_NUS enabled #524
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
Comments
I tried adding mp_hal_stdin_any to nrf/drivers/bluetooth/ble_uart.c. I added this function to ble_uart.c: bool mp_hal_stdin_any(void) { I attempted to base this on what was in nrf/mphalport.c but is not compiled when MICROPY_PY_BLE_NUS is enabled. |
The REPL/UART code changed with the migration to CircuitPython, which handles the UART abstraction differently. Migrating BLE UART support is at the top of my ToDo list now that the base nRF52 stuff is working ... we've been ignoring the SD until now. The reason the flag fails is because it relies on the MicroPython REPL abstraction layer which we don't use anymore. |
Thanks for the update and clarification. I'll look forward to trying it out. Thank you for all the work you have put into this. No rush on my part. I'll (try to) be patient ;-) |
I'll get this fixed this week and a PR sent out. I had the same EOL problem, and the OS X and iOS Bluefruit LE Connect apps now have an option to change the EOL character(s) because of that, which should help. The Android version is updated internally, but I need to schedule in some time with the app dev to do some final tests before pushing it out, but I'll try to get that wrapped up soon as well. |
Fixed in #528 |
Uh oh!
There was an error while loading. Please reload this page.
enabling MICROPY_PY_BLE_NUS in bluetooth_conf.h results in the following error.
It builds fine if this is left disabled.
$ make BOARD=feather52 SD=s132
Use make V=1, make V=2 or set BUILD_VERBOSE similarly in your environment to increase build verbosity.
Generating build-feather52-s132/genhdr/mpversion.h
GEN build-feather52-s132/genhdr/qstr.i.last
QSTR updated
GEN build-feather52-s132/genhdr/qstrdefs.generated.h
FREEZE freeze
LINK build-feather52-s132/firmware.elf
build-feather52-s132/supervisor/serial.o: In function
serial_bytes_available': serial.c:(.text.serial_bytes_available+0x0): undefined reference to
mp_hal_stdin_any'collect2: error: ld returned 1 exit status
Makefile:306: recipe for target 'build-feather52-s132/firmware.elf' failed
make: *** [build-feather52-s132/firmware.elf] Error 1
The text was updated successfully, but these errors were encountered: