u-blox nina B302

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
tcpipchip
Posts: 10
Joined: Wed Aug 07, 2019 7:10 pm

u-blox nina B302

Post by tcpipchip » Mon Dec 21, 2020 6:50 pm

https://micropython-nina-w102.blogspot. ... ython.html

The only problem is that the compiler didnt include ble and music
Last edited by tcpipchip on Mon Dec 21, 2020 8:11 pm, edited 1 time in total.

tcpipchip
Posts: 10
Joined: Wed Aug 07, 2019 7:10 pm

Re: u-blox nina B302

Post by tcpipchip » Mon Dec 21, 2020 8:10 pm

btw, how can ask to micropython compiler to add the Modules BLE and MUSIC during compiling


MicroPython v1.13-266-g069557ede on 2020-12-21; MDK-USB-DONGLE with NRF52840
Type "help()" for more information.
>>> import ble
Traceback (most recent call last):
File "<stdin>", in <module>
ImportError: no module named 'ble'
>>> import music
Traceback (most recent call last):
File "<stdin>", in <module>
ImportError: no module named 'music'
>>>
:|

c45713
Posts: 51
Joined: Fri Dec 09, 2016 7:09 pm

Re: u-blox nina B302

Post by c45713 » Wed Dec 23, 2020 10:06 am

try this:

Code: Select all

make BOARD=nrf52840-mdk-usb-dongle SD=s140 CFLAGS_EXTRA="-DMICROPY_PY_MUSIC=1 -DMICROPY_PY_MACHINE_SOFT_PWM=1"
Followed by (flash SD and Application):

Code: Select all

make BOARD=nrf52840-mdk-usb-dongle SD=s140 NRFUTIL_PORT=/dev/ttyACM0 sd
Subsequent updates of the Application after initial SD flash, can be done by issuing "deploy":

Code: Select all

make BOARD=nrf52840-mdk-usb-dongle SD=s140 NRFUTIL_PORT=/dev/ttyACM0 deploy

Post Reply