Page 4 of 4

Re: Attached is micropython firmware for the nRF52840

Posted: Sun Feb 10, 2019 6:35 pm
by rdagger
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.

Re: Attached is micropython firmware for the nRF52840

Posted: Tue Feb 19, 2019 12:57 am
by rdagger
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

Re: Attached is micropython firmware for the nRF52840

Posted: Fri Sep 13, 2019 6:28 pm
by sebi
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).

Re: Attached is micropython firmware for the nRF52840

Posted: Thu Nov 12, 2020 7:24 am
by Angainor
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.