Issues with nrf52 port
When enable Bluetooth LE REPL (MICROPY_PY_BLE_NUS (1)), get the following errors:
LINK build-pca10059-s140/firmware.elf
/home/deb/esp/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: build-pca10059-s140/drivers/usb/usb_cdc.o (symbol from plugin): in function usb_cdc_init': (.text+0x0): multiple definition of mp_hal_stdin_rx_chr'; build-pca10059-s140/drivers/bluetooth/ble_uart.o (symbol from plugin):(.text+0x0): first defined here
/home/deb/esp/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: build-pca10059-s140/drivers/usb/usb_cdc.o (symbol from plugin): in function usb_cdc_init': (.text+0x0): multiple definition of mp_hal_stdout_tx_strn'; build-pca10059-s140/drivers/bluetooth/ble_uart.o (symbol from plugin):(.text+0x0): first defined here
/home/deb/esp/gcc-arm-none-eabi/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld: build-pca10059-s140/drivers/usb/usb_cdc.o (symbol from plugin): in function usb_cdc_init': (.text+0x0): multiple definition of mp_hal_stdout_tx_strn_cooked'; build-pca10059-s140/drivers/bluetooth/ble_uart.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:497: build-pca10059-s140/firmware.elf] Error 1
Possibility to have Bluetooth and USB CDC REPL working simultaneously ?
My board has no ext. 32 kHz crystal and needs the following: CFLAGS += -DBLUETOOTH_LFCLK_RC to work properly, should this be an option in mpconfigboard.h ?
Micropython support for the SPIM — Serial peripheral interface master with EasyDMA ? Also, looked at the micropython examples, but was not able to find examples for controlling the peripherals in C/C++ - Pins, PWM, Timers … Any available ?
In, micropython/ports/nrf/modules/machine/adc.c in nrfx_saadc_simple_mode_set instead of NRF_SAADC_INPUT_DISABLED isn't supposed to be SAADC_OVERSAMPLE_OVERSAMPLE_Bypass ?
[nrf] Add board support for nRF52840 dongle (pca10059)
Please add support for the nRF52840 dongle pca10059.
Documentation here: https://www.nordicsemi.com/eng/Products/nRF52840-Dongle
I'm willing to do it, but I'm new to Micropython, so I don't have all the information I need.
Is there already an implementation that has Repl over native USB?
That would be the biggest change.
Changing the pin assignments from pca10056 shouldn't be too complicated.