Search found 129 matches

by WhiteHare
Mon Dec 03, 2018 7:30 pm
Forum: Other Boards
Topic: [nRF52] How to get rshell to work with an nRF52?
Replies: 30
Views: 18621

Re: [nRF52] How to get rshell to work with an nRF52?

I noticed Mouser now has the nRF52840-Dongle in stock for $10. I've been waiting for a supported BLE MicroPython chip. Is rshell compatible? Are prebuilt binaries available? How does the MicroPython port compare to the CircuitPython port? AFAIK, there still is no micropython release for the dongle....
by WhiteHare
Tue Nov 06, 2018 6:04 am
Forum: Other Boards
Topic: [nRF52] How do I increase the amount of flash allocated to micropython's micro file system?
Replies: 8
Views: 6658

Re: [nRF52] How do I increase the amount of flash allocated to micropython's micro file system?

WhiteHare wrote:
Tue Oct 30, 2018 6:25 pm
Yet, the nRF52840 comes standard with 512K of flash memory
Correction: I misquoted the spec. Actually, the nRF52840 comes with 1 megabyte of flash memory, not 512K of flash.
by WhiteHare
Mon Nov 05, 2018 10:58 pm
Forum: Other Boards
Topic: [nRF52] Any examples on interrupt handling for the nRF52?
Replies: 1
Views: 2391

[nRF52] Any examples on interrupt handling for the nRF52?

I did read the generic documentation on interrupt handling (https://docs.micropython.org/en/latest/reference/isr_rules.html), but I'm having trouble imagining how that works with the nRF52. One or more demo code examples would be helpful. I've made some further improvements to my OTA code, but to ge...
by WhiteHare
Sat Nov 03, 2018 1:04 am
Forum: General Discussion and Questions
Topic: Use micropython to do dead simple "over-the-air" code updates
Replies: 34
Views: 25686

Re: Use micropython to do dead simple "over-the-air" code updates

Thanks! Now that we've solved that, I added your code back into the official github release: https://github.com/rabbithat/NRF52840_M ... TA_Updates
by WhiteHare
Fri Nov 02, 2018 7:39 pm
Forum: Other Boards
Topic: Please could you try this code on nRF* hardware [SOLVED]
Replies: 7
Views: 4444

Re: Please could you try this code on nRF* hardware

dhylands wrote:
Fri Nov 02, 2018 4:45 pm
Check to see if MICROPY_PY_ARRAY_SLICE_ASSIGN is set to 1 in the mpconfigport/baord.h file
Good news: that worked. However, for the benefit of other readers, I think you probably meant the mpconfigport.h file.

:D
by WhiteHare
Fri Nov 02, 2018 3:59 pm
Forum: Other Boards
Topic: Please could you try this code on nRF* hardware [SOLVED]
Replies: 7
Views: 4444

Re: Please could you try this code on nRF* hardware

Here's the results on an nRF52832-DK: >>> MicroPython v1.9.4-651-g0f6f86ca4-dirty on 2018-10-24; PCA10040 with NRF52832 Type "help()" for more information. >>> radioBuffer=bytearray(256) >>> mv = memoryview(radioBuffer) >>> def copyStringToRadioBuffer(s): ... l = len(s) ... mv[: l] = s.encode('utf8'...
by WhiteHare
Fri Nov 02, 2018 1:08 pm
Forum: Other Boards
Topic: Please could you try this code on nRF* hardware [SOLVED]
Replies: 7
Views: 4444

Re: Please could you try this code on nRF* hardware

Not sure if this helps or not, but here's the result on a BBC micro:bit (which is an nRF51822): >>> radioBuffer = bytearray(256) >>> mv = memoryview(radioBuffer) Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'memoryview' is not defined >>> Is memoryview a par...
by WhiteHare
Fri Nov 02, 2018 12:19 am
Forum: Other Boards
Topic: [nRF52] How do I increase the amount of flash allocated to micropython's micro file system?
Replies: 8
Views: 6658

Re: [nRF52] How do I increase the amount of flash allocated to micropython's micro file system?

dhylands wrote:
Fri Nov 02, 2018 12:15 am
You can use frozen files, or you'll need to use a different filesystem.
What other file system is there that I can use?
by WhiteHare
Thu Nov 01, 2018 11:19 pm
Forum: Other Boards
Topic: [nRF52] How do I increase the amount of flash allocated to micropython's micro file system?
Replies: 8
Views: 6658

Re: [nRF52] How do I increase the amount of flash allocated to micropython's micro file system?

Sadly, I'm now up against this limit. I'm more or less halted until it can get resolved.

Who knows how to fix it? You? Glenn Rub? Somebody else?
by WhiteHare
Thu Nov 01, 2018 5:26 pm
Forum: General Discussion and Questions
Topic: Use micropython to do dead simple "over-the-air" code updates
Replies: 34
Views: 25686

Re: Use micropython to do dead simple "over-the-air" code updates

OK, until that gets sorted, I reverted to the prior copyStringToRadioBuffer definition for the current files posted on GitHub. That way anyone downloading the files should have something that works. I also made a few upgrades: 1. Rather than running open loop and transmitting each packet 3 times, th...