Search found 129 matches

by WhiteHare
Fri Oct 26, 2018 2:25 pm
Forum: Other Boards
Topic: [nRF52] seems to be a micropython bug of some kind?
Replies: 3
Views: 2258

Re: [nRF52] seems to be a micropython bug of some kind?

Understood. I don't think I can do much better at the moment, so for now I'm going to try working around it by sending only shorter strings instead and then stitching them together on the receiving end. Perhaps later the problem will manifest in a way that's easier to reduce to something that can be...
by WhiteHare
Fri Oct 26, 2018 2:04 pm
Forum: Other Boards
Topic: nRF52840 - HolyIot Board Definition
Replies: 12
Views: 6899

Re: nRF52840 - HolyIot Board Definition

I haven't looked into what micropython's pin naming convention is, so I'm curious what you find out. I can say for sure though that it can vary from one platform to another (e.g. mbed's pin naming convention is different than what the Segger Embedded IDE does).
by WhiteHare
Fri Oct 26, 2018 1:50 pm
Forum: Other Boards
Topic: Attached is micropython firmware for the nRF52840
Replies: 33
Views: 23601

Re: Attached is micropython firmware for the nRF52840

If you read the github post under ports/nrf carefully, you'll notice that it says that if you tack on an "sd" at the end of the make incantation, then the make will include bluetooth, provided that you also set the configuration file flags correctly. So, I'd recommend a careful reading of that, plus...
by WhiteHare
Fri Oct 26, 2018 1:38 pm
Forum: Other Boards
Topic: nRF52840 - HolyIot Board Definition
Replies: 12
Views: 6899

Re: nRF52840 - HolyIot Board Definition

Good question. I'm guessing the answer is yes, because the default for the hardware is no flow control (see 6.33.10.13 CONFIG in the Nordic nRF52840 datasheet). So, if you defeat whatever micropython code enables it, it should default to no flow control on the uart.
by WhiteHare
Fri Oct 26, 2018 1:17 pm
Forum: Other Boards
Topic: Attached is micropython firmware for the nRF52840
Replies: 33
Views: 23601

Re: Attached is micropython firmware for the nRF52840

Since you are able to do the build, there's nothing extra that I'm aware of.
by WhiteHare
Fri Oct 26, 2018 1:01 pm
Forum: Other Boards
Topic: Attached is micropython firmware for the nRF52840
Replies: 33
Views: 23601

Re: Attached is micropython firmware for the nRF52840

Since you are able to do the build, just proceed as you would normally.
by WhiteHare
Thu Oct 25, 2018 3:11 pm
Forum: Other Boards
Topic: [nRF52] seems to be a micropython bug of some kind?
Replies: 3
Views: 2258

[nRF52] seems to be a micropython bug of some kind?

Radio Buffer = bytearray(b'Now is the time for all good men to come to the aid of their party.\x00RXIDLE mode\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x 00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x 00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...
by WhiteHare
Thu Oct 25, 2018 12:31 pm
Forum: Other Boards
Topic: Attached is micropython firmware for the nRF52840
Replies: 33
Views: 23601

Re: Attached is micropython firmware for the nRF52840

I haven't tried the particular modules you linked to, but, generally speaking, you'll most likely need a programmer to program them using pins SWDIO and SWDCLK. There are various programmers available, including really cheap $2 ones, but not all of them are easy to setup for use. Probably the easies...
by WhiteHare
Wed Oct 24, 2018 3:09 am
Forum: General Discussion and Questions
Topic: Is there a micropython command that can force a reboot?
Replies: 1
Views: 1608

Is there a micropython command that can force a reboot?

So, for instance, after my OTA update re-writes main.py, I'll want to do a reboot so that the updated code becomes effective. Is there a generic command for forcing a reboot, or is it something hardware specific that I need to figure out on my own?
by WhiteHare
Wed Oct 24, 2018 12:36 am
Forum: General Discussion and Questions
Topic: Can MicroPython run from a file other than main.py?
Replies: 5
Views: 3384

Re: Can MicroPython run from a file other than main.py?

OK, I ran an experiment, and it couldn't be easier: it appears main.py can re-write itself without issue. The changes take effect only after a re-boot.

:D