Page 1 of 1

u-blox nina B302

Posted: Mon Dec 21, 2020 6:50 pm
by tcpipchip
https://micropython-nina-w102.blogspot. ... ython.html

The only problem is that the compiler didnt include ble and music

Re: u-blox nina B302

Posted: Mon Dec 21, 2020 8:10 pm
by tcpipchip
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'
>>>
:|

Re: u-blox nina B302

Posted: Wed Dec 23, 2020 10:06 am
by c45713
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