Xiao NRF52840 board support with UF2 bootloader #10127
-
hello, |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 18 replies
-
I just got a MP image running based on the pca100056 board with changed pin assignment. The REPL is at the UART pins. At the moment I load through SDIO/SDCLK with a Segger JLink adapter. At the moment it looks as if entering the bootloader via double reset is gone. And machine.bootloader() is just a dummy. More work to do. |
Beta Was this translation helpful? Give feedback.
-
So I managed to compile a package and load it to the XIAO nrd52840 board. Instructions below. The files are in the branch https://github.com/robert-hh/micropython/tree/nrf_xiao ---------------- instructions --------------------
Sample mpconfigboard.mk:
Sample s140_7.3.0.ld file:
The S140 package v7.3.0 can be downloaded from the Nordic Semi site at: https://www.nordicsemi.com/Products/Development-software/S140/Download and has to be placed into nrf/drivers/bluetooth next to the other versions. Someone |
Beta Was this translation helpful? Give feedback.
-
@favnec5 So now there is some success in uploading .uf2 file to the upload drive. Instructions:
The config files are the same as in my previous post. Just the final packaging of the .uf2 file is different. |
Beta Was this translation helpful? Give feedback.
-
I tried also to use the internal flash for a file system with my nrf_xiao branch. It uses spiflash.py and flashbdev from this repository: https://github.com/robert-hh/SPI_Flash and the little mount script below. SPI(3) has to be used for the baudrate of 32MHz. The other SPI devices only support up to 8 MHz.
|
Beta Was this translation helpful? Give feedback.
-
Continuing my quest to get BLE uart working I succeeded to advertise the NUS with this "code":
I can connect and the little green led will go on. I have tried to activate BLE_NUS in the bluetooth conf.h like this *but I have no idea if this is what's missing and/or correct:
I then get a compilation following error:
I'm now completely stuck. There is really really few information concerning the uart_NUS, and absolutely no example to even start with. Using my sublime I did see ble_uart in the bluetooth drivers... so something must be there right? Do you/someone have some kind of hint/idea what I could do? |
Beta Was this translation helpful? Give feedback.
-
Since MICROPY_HW_USB_CDC is defined in the board's mpconfigport.h, these functions are enabled twice. You can set MICROPY_HW_USB_CDC to 0, at which time there is not REPL any more over USB, but using UART and maybe Bluetooth. |
Beta Was this translation helpful? Give feedback.
@favnec5 So now there is some success in uploading .uf2 file to the upload drive. Instructions:
Download and install u2fconv.py
Create a firmware for the SEEED nrf52840. to do so:
not match the bootloader.
The mpconfigboard.mk has to define SD=s140 and SOFTDEV_VERSION=7.x.x.
Create the .uf2 file with the command:
uf2conv.py -c -f 0xADA52840 -o firmware.uf2 firmware.hex
It must report that the start address is 0x27000. If you omit the -o option,
the output file will have the name flash.uf2.
Enable the upload mode by double reset push or calling machine.bootloader()
and co…