[PCA10028/NRF51] - WebBLE getting files to the board

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
Posts: 12
Joined: Sat Nov 30, 2019 10:36 pm

[PCA10028/NRF51] - WebBLE getting files to the board

Post by bgolab » Sun Dec 08, 2019 8:31 am

I succesfuly built the BLE image for the nRF51822 board with BLUETOOTH_WEBBLUETOOTH_REPL enabled.
I use https://aykevl.nl/apps/nus/ to access the board.
The problem: how to transfer py scripts to the board e.g. ssd1306.py.
Since the UART-REPL is disabled now I was thinking about os.dupterm() but failed miserably probably due to my ignorance.
>>> import os
>>> from machine import UART, Pin
>>> u=UART(0, baudrate=115200)
>>> os.dupterm(u)

I tried to pass rx/tx pins as arguments but it seems they are not handled by the UART().
The UART-REPL simply does not work here.

The questions:
1. Is the dupterm() right way to go here (to be able to run ampy and copy the file regular way for nRF51 board)
2. Not sure what are the plan for adding more state-of-the-art capability:

I appreciate any suggestion how to solve this problem.

Thank you

Post Reply