Zephyr port with working aioble on the Seeed Studio XIAO BLE NRF52840 SENSE board #17607
Replies: 7 comments 11 replies
-
I merged #17552, #17610, #17551, and #17599 onto 16f9d7f and tested with my XIAO BLE NRF52840 SENSE board; working well so far (though the |
Beta Was this translation helpful? Give feedback.
-
Hi @bikeNomad, and thank you for putting together this! NRF52 is a super low-power BLE platform. The Zephyr port of MicroPython seems like a good way forward on these devices. As you note it is still rough, but that is precisely why we need testing, fixes etc. to push it forward. Is there any chance you could provide a pre-built binary? I really like the XIAO BLE NRF52840 SENSE, due to the on-board sensors (and small size+batt charging). With the work you are doing here, I will consider it for future experiments in machine learning for these sensors (using https://github.com/emlearn/emlearn-micropython). |
Beta Was this translation helpful? Give feedback.
-
Sure, here's a pre-built .uf2 file. I'd be interested to see your ML work! |
Beta Was this translation helpful? Give feedback.
-
I got around to testing this a little bit now. First I noticed there seemed to be no fileystem. But I found your make_vfs.py script here, https://github.com/bikeNomad/micropython-xiao_ble_nrf52840_sense/blob/main/src/make_vfs.py These are OK
However the following all fail
@bikeNomad any idea why this could happen? I tried removing all the files in lib/ as well, no change. |
Beta Was this translation helpful? Give feedback.
-
Testing a bit more. I am able to set the on-board LEDs via |
Beta Was this translation helpful? Give feedback.
-
There appears to be a MR for this board into mainline now, #17679 |
Beta Was this translation helpful? Give feedback.
-
After more testing, I found that. Dynamic native C modules (natmod) currently crash/hang the board. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've wanted to play with Zephyr and recently got some of these boards so why not make a MicroPython port?
https://github.com/bikeNomad/micropython-xiao_ble_nrf52840_sense
So far I have only tested the
aioble
temp_sensor.py
demo program, but at least this should be a start.I found the Zephyr port a bit incomplete and had to add a number of config entries to get everything to work.
Along the way I also patched the Zephyr port's UART handling to add
mp_hal_stdio_poll()
that was needed to getinput()
working right. (submitted a PR: #17606).I also applied @dpgeorge 's PR #17599 to get the
machine.Pin.value()
working right.Unfortunately, the
zsensor.Sensor
implementation isn't yet working with the on-board LSM6DS3TR-C IMU (issue #17597)Beta Was this translation helpful? Give feedback.
All reactions