Search found 22 matches

by kak
Sun Oct 14, 2018 6:40 pm
Forum: Other Boards
Topic: [nRF52] Where is the umachines library module for the nRF52 boards? Does it even exist?
Replies: 6
Views: 5272

Re: [nRF52] Where is the umachines library module for the nRF52 boards? Does it even exist?

I think the main motivation for circuitpython was to have a version of micropython, that is easier to use for beginners, and is better adapted to Adafruit's own boards, even the ones with very small microcontrollers. Therefore, they're quick to adapt to new hardware, and add features, but they only ...
by kak
Sat Oct 13, 2018 4:15 pm
Forum: Other Boards
Topic: [nRF52] Where is the umachines library module for the nRF52 boards? Does it even exist?
Replies: 6
Views: 5272

Re: [nRF52] Where is the umachines library module for the nRF52 boards? Does it even exist?

Oh, and BTW: Viper seems to treat everything as signed integers by default, even constants. So if you want to use constants bigger than 0x7fffffff, you have to enclose them in an uint(). Example: ptr32(0x5000050C)[0] = uint(0x80000000) # turn P0_31 on p.s.: Short version for the REPL to switch LED 1...
by kak
Sat Oct 13, 2018 3:27 pm
Forum: Other Boards
Topic: [nRF52] Where is the umachines library module for the nRF52 boards? Does it even exist?
Replies: 6
Views: 5272

Re: [nRF52] Where is the umachines library module for the nRF52 boards? Does it even exist?

Here's an example using the viper code emitter and pointers, to blink the LED1 on the nRF52840 DK. It should work on all versions of Micropython, that have viper enabled. Doesn't need machine.mem. I tested it only on Circuitpython 4.0.0. # Circuitpython 4.0.0 # Blink nRF52840 DK LED1 using direct re...
by kak
Sat Oct 13, 2018 12:43 pm
Forum: Other Boards
Topic: [nRF5x] How to connect using WebBluetooth REPL?
Replies: 37
Views: 29343

Re: How to connect with Bluetooth REPL using nRF UART app?

Did you install the JLINK software for Linux from Segger?
https://www.segger.com/downloads/jlink/ ... tationPack

If not, use nRF Connect to flash.
by kak
Fri Oct 12, 2018 7:20 am
Forum: Other Boards
Topic: [nRF5x] How to connect using WebBluetooth REPL?
Replies: 37
Views: 29343

Re: How to connect with Bluetooth REPL using nRF UART app?

Here's what I did to get Bluetooth REPL running on a pca10059 dongle (beginning with a fresh git clone): git clone https://github.com/micropython/micropython.git cd micropython git submodule update --init make -C mpy-cross cd boards/nrf ./drivers/bluetooth/download_ble_stack.sh modify bluetooth_conf...
by kak
Thu Oct 11, 2018 8:25 pm
Forum: Other Boards
Topic: [nrf52] Module for register definitions like "stm"
Replies: 4
Views: 3418

Re: [nrf52] Module for register definitions like "stm"

Would you like to add that officially?
by kak
Thu Oct 11, 2018 5:02 pm
Forum: Other Boards
Topic: Attached is micropython firmware for the nRF52840
Replies: 33
Views: 23790

Re: Attached is micropython firmware for the nRF52840

Is this with native USB support, or only TTL serial?
by kak
Thu Oct 11, 2018 10:55 am
Forum: Other Boards
Topic: [nRF52] How do I change the RXI and TXO serial pin assignments in the nRF52840 build?
Replies: 4
Views: 4759

Re: How do I change the RXI and TXO serial pin assignments in the nRF52840 build?

Seems to be right, the pins are being set in ports/nrf/modules/machine/uart.c: nrfx_uart_config_t config; . . config.pseltxd = MICROPY_HW_UART1_TX; config.pselrxd = MICROPY_HW_UART1_RX; nrfx_uart_config_t config is from the nrf52 SDK: https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk...
by kak
Thu Oct 11, 2018 9:35 am
Forum: Other Boards
Topic: [nRF52] How do I change the RXI and TXO serial pin assignments in the nRF52840 build?
Replies: 4
Views: 4759

Re: How do I change the RXI and TXO serial pin assignments in the nRF52840 build?

If I had to guess, I'd say that the pin configuration of the uart is in micropython/ports/nrf/boards/pca10056/mpconfigboard.h // UART config #define MICROPY_HW_UART1_RX (8) #define MICROPY_HW_UART1_TX (6) #define MICROPY_HW_UART1_CTS (7) #define MICROPY_HW_UART1_RTS (5) #define MICROPY_HW_UART1_HWFC...
by kak
Thu Oct 11, 2018 9:27 am
Forum: Other Boards
Topic: Anyone working on a port to Nordics PCA10059 Dongle?
Replies: 11
Views: 9899

Re: Anyone working on a port to Nordics PCA10059 Dongle?

The DK has TxD at P0.06, and RxD at P0.08. The Dongle has LED1 at P0.06 and LED2_R at P0.08. It shouldn't be too complicated to solder wires to the series resistors of the LEDs. On the DK, the RxD and TxD pins of the nRF52840 are connected to the serial port of the onboard Segger debugger, that maps...