Attached is micropython firmware for the nRF52840

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.
User avatar
rdagger
Posts: 143
Joined: Tue Feb 28, 2017 6:16 pm
Contact:

Re: Attached is micropython firmware for the nRF52840

Post by rdagger » Sun Feb 10, 2019 6:35 pm

dhylands wrote:
Sun Feb 10, 2019 4:07 pm
Does the REPL work over USB with the nrf52840 dongle?
Yes, I made a serial connection over USB on /dev/ttyACM0 at 115200bps. If a program is running, you need to press Ctrl-C to stop the program and then any key to enter the REPL. Ctrl-D reloads.

User avatar
rdagger
Posts: 143
Joined: Tue Feb 28, 2017 6:16 pm
Contact:

Re: Attached is micropython firmware for the nRF52840

Post by rdagger » Tue Feb 19, 2019 12:57 am

I figured out how to use OpenOCD to program the nRF52840-dongle using only a Raspberry Pi as the debugging interface (no need for a J-link).

I made a YouTube tutorial if anyone is interested:
https://youtu.be/R5wub5ywzTU

User avatar
sebi
Posts: 48
Joined: Tue Mar 29, 2016 9:36 pm
Location: France

Re: Attached is micropython firmware for the nRF52840

Post by sebi » Fri Sep 13, 2019 6:28 pm

rdagger wrote:
Tue Feb 19, 2019 12:57 am
I figured out how to use OpenOCD to program the nRF52840-dongle using only a Raspberry Pi as the debugging interface (no need for a J-link).

I made a YouTube tutorial if anyone is interested:
https://youtu.be/R5wub5ywzTU
Nice video! (I also use OpenOCD but with a ST Link-V2.)
rdagger wrote:
Sat Feb 09, 2019 9:02 pm
dhylands wrote:
Sat Feb 09, 2019 7:16 pm

Code: Select all

nrfutil pkg generate --debug-mode --hw-version 52 --sd-req 0x00 --application nrf52840_xxaa.hex dfu.zip
I also tried nRF Connect but got the following error:
The bootloader update must be signed. The DFU operation has been cancelled.
To perform DFU update, I use `--dev-type 0x0052` (maybe similar to `--hw-version 52`??) to generate Adafruit nRF bootloader compatible packages (according to https://github.com/adafruit/Adafruit_nR ... util#usage).

User avatar
Angainor
Posts: 15
Joined: Thu Sep 24, 2020 9:14 am

Re: Attached is micropython firmware for the nRF52840

Post by Angainor » Thu Nov 12, 2020 7:24 am

Hi,

Sorry to revive this thread but I was in a similar process as yours and encountered issues along the way, maybe some of you could help:

Following instructions from start of this thread, I was able to

- compile Micro Python for nRF52840,
- flash it with Soft Device to a stock dongle (signed bootloader untouched) , usb dfu update from nRF Connect
- access the MP repl

However impossible to get the flash FS to work, no matter MP version or FS type
I detailled my process and issue there
viewtopic.php?f=12&t=9274

Any hint would be welcome.

Post Reply